Skip to main content

GitHub

invenio-config-kth

Usage

After installation, you are ready to go:

  • Create new communities will be restricted to users with role "community-manager"
  • Publishing records will be restricted to community admins (Curator, Manager, Owner)
  • you can switch new creation to off if you turn CONFIG_KTH_READ_ONLY_MODE = True

Installation

From your instance active venv:

pip install invenio-config-kth

As default, you can add role name community-manager to user programmatically in invenio:

# Create a role
invenio roles create community-manager # This needed to be added once if role doesn't exists
# Add community-manager role to an user, by its emails
invenio roles add <user_email> community-manager

you can also pre-add your list of emails as controlled vocabularies:

There are possibility to change the default role name in invenio_congig_kth/config.py

CONFIG_KTH_COMMUNITY_MANAGER_ROLE = "community-manager"

Or turn the read only mode:

CONFIG_KTH_READ_ONLY_MODE = False

Maintainers

Setup dev env

after cloning the repo:

make install
make test

Run tests

make test

When running tests you will get a warning from black formatter, should bump pytest-black version when it's done

Upload to pypi

make package-create
make package-upload USER="" PASS=""
  • make package-create command will:
  1. remove old dist folder
  2. auto increment package version
  3. zip the package into dist dir
  4. check if the package pass twin checks

You can change version increment to major or minor by adding ARG:

  • make package-create ARG="-ma" increment major version

  • make package-create ARG="-mi" increment minor version

  • make package-create increment patch version

  • make package-check # verify if the package pass twine checks

  • make package-upload USER="" PASS="" # will and upload to pypi will prompt for username and pass

or manually: twine upload -u -p dist/* --verbose

Changes

Version 1.0.0

  • Initial public release 2022.11.07

Metadata

Release files for invenio-config-kth 1.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for invenio-config-kth 1.2.8
File Size Uploaded
invenio-config-kth-1.2.8.tar.gz 10.2 kB Details

Release files / invenio-config-kth-1.2.8.tar.gz

Download URL invenio-config-kth-1.2.8.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5823e447ee8f6fbb365363488882983f2f127db865b787709e80c3f59438191e
BLAKE2b-256 checksum
How to use checksums
8be7c90c3ee689f305589cdbdd10b57bd7890d3c7a609b42f6c70d0dace27c76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.15

Release history Release notifications | RSS feed

This release

1.2.8 This release

1 release file

1.2.7

1 release file

1.2.6

1 release file

1.2.5

1 release file

1.1.5

1 release file

1.1.4

1 release file

1.0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page