Skip to main content

No project description provided

Project description

Dependency Management

I choose to use Poetry a modern Python dependency management tool. Following this tutorial

Commands for developing this project:

# Create a python project with poetry-managed dependencies
poetry new python-projectX

# Create virsual environment for this project
poetry shell
poetry env list
poetry env use python3

# Add new dependency
poetry add requests
# Add dependencies grouped by environments
poetry add --group dev pytest
# OR:
poetry add pytest --dev

# Update poetry itself
poetry self update
# Upgrade dependencies
poetry update requests
poetry update 

# Check dependencies
poetry show numpy

# Resolve dependencies and create lock file
poetry install

# Apply poetry to existing non-poetry project
poetry init
# Apply different Python version for the virtual environment
poetry env use python3.7
poetry env list
# Generate a requirements.txt
poetry export > requirements.txt

Commands for build and publish this project

poetry build

poetry config pypi-token.pypi <pypi-token>

poetry publish
poetry publish --repository <other-than-pypi>

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

cuizhanming_python_project1-0.1.11.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

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

cuizhanming_python_project1-0.1.11-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file cuizhanming_python_project1-0.1.11.tar.gz.

File metadata

File hashes

Hashes for cuizhanming_python_project1-0.1.11.tar.gz
Algorithm Hash digest
SHA256 1cc96ab1a1a5d689a18196c2072e35f266da9a77b65863ea2ca06821175d1561
MD5 4d7fa95f8f33be911a7e4b096ac70b13
BLAKE2b-256 824a0331bf4b141367a17f844f13391f7af6949b26d49d255c6edf56f6748dce

See more details on using hashes here.

Provenance

The following attestation bundles were made for cuizhanming_python_project1-0.1.11.tar.gz:

Publisher: release.yml on cuizhanming/python-projects

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cuizhanming_python_project1-0.1.11-py3-none-any.whl.

File metadata

File hashes

Hashes for cuizhanming_python_project1-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 3c86bd07fc64f23fb980a98353893fb9f6f3079c4ccbc6fc418ef886d9115360
MD5 2ea525916895be78c698af8db47d22e1
BLAKE2b-256 b567e14d36863a06cd29963708be1707eede80887acee08f7d651d1658faf60d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cuizhanming_python_project1-0.1.11-py3-none-any.whl:

Publisher: release.yml on cuizhanming/python-projects

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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