Skip to content

ablil/python-package-starter

Repository files navigation

python-package-starter

CI

Develop locally

Start a new virtual env

poetry shell

Install all dependencies (declared on pyproject.toml) from all groups

poetry install

# only main group
poetry install --only main

# without test group
poetry install --without test

Add new dependency

# add dep to main group
poetry add requests

# add dep to dev group
poetry add black --group dev

# add dep to test group
poetry add pytest --group test

Build and publish

Publish package

> poetry publish --build -r testpypi
> poetry publish --build

Authenticate to PyPI

> poetry config pypi-token.testpypi $PYPI_TOKEN_TEST
> poetry config pypi-token.pypi $PYPI_TOKEN

Referencs

Guide to Python module Python packaging user guide

About

Python package template

Topics

Resources

License

Stars

Watchers

Forks