Skip to main content

python-package-starter

Project description

python-package-starter

CI

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

Guide to Python module Python packaging user guide

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_package_starter-2.0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_package_starter-2.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file python_package_starter-2.0.2.tar.gz.

File metadata

  • Download URL: python_package_starter-2.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for python_package_starter-2.0.2.tar.gz
Algorithm Hash digest
SHA256 2e997635941b9ceb34b87371b92933a685b89a528e1b29908ecd12a46082e92f
MD5 52e81d7ed1fa3faf4fb9fa6dbab37e63
BLAKE2b-256 9f8bf6e54bad7cd894e1aa8ffdd6f715ba321f4b07a796bfe9f8acd93deed5cf

See more details on using hashes here.

File details

Details for the file python_package_starter-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for python_package_starter-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a880a8c732f2d4d035e7ff2e96e8e0147f5a859fff7b141608f25f2334e6b26
MD5 109014aa3209f4e5f954989850da2bc9
BLAKE2b-256 78098a46add215169d10dbcfbed3bbca9399d13eba271e422db4b9594f6d6823

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page