python-package-starter
This is a ready to use starter for Python packages, clone it and make sure to update:
- pyproject.toml
- README.md
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
Build package
poetry build
Publish package
poetry publish
Authenticate to PyPI
poetry config pypi-token.pypi $PYPI_TOKEN
Referencs
Release files for python-package-starter 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_package_starter-2.0.2.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_package_starter-2.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / python_package_starter-2.0.2.tar.gz
| Download URL | python_package_starter-2.0.2.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e997635941b9ceb34b87371b92933a685b89a528e1b29908ecd12a46082e92f
|
|
BLAKE2b-256 checksum How to use checksums |
9f8bf6e54bad7cd894e1aa8ffdd6f715ba321f4b07a796bfe9f8acd93deed5cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-1021-azure
|
Release files / python_package_starter-2.0.2-py3-none-any.whl
| Download URL | python_package_starter-2.0.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a880a8c732f2d4d035e7ff2e96e8e0147f5a859fff7b141608f25f2334e6b26
|
|
BLAKE2b-256 checksum How to use checksums |
78098a46add215169d10dbcfbed3bbca9399d13eba271e422db4b9594f6d6823
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-1021-azure
|