/namespaced-libraries-monorepo

Example of a collection of Python namespaced libraries (PEP 420) in a monorepo

Primary LanguagePythonMIT LicenseMIT

namespaced-libraries-monorepo

Example of a collection of Python namespaced libraries (PEP 420) in a monorepo. See Package namespacing for Python library collection.

Examples

Installing all development dependencies

pip install pipenv
pipenv install -d
pipenv run inv install-subpackage-dependencies

Installing dependencies for one sub-package only

pipenv run inv install-subpackage-dependencies --name flask_utils

Building all sub-packages

pipenv run inv build

Result in dist:

company_utils.constants-1.0.0-py3-none-any.whl
company_utils.flask-1.0.1-py3-none-any.whl
company_utils.logging-2.3.1-py3-none-any.whl

Resetting the repository

git clean -fxd .

Switching to a different Python version

pipenv run inv switch-python-version 3.7