Metadata-Version: 2.1
Name: cuizhanming-python-project1
Version: 0.1.11
Summary: 
Author: Z
Author-email: i@cui.guru
Requires-Python: >=3.13,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: requests (>=2.32.3,<3.0.0)
Description-Content-Type: text/markdown


## Dependency Management

I choose to use `Poetry` a modern Python dependency management tool. 
[Following this tutorial](https://www.twilio.com/en-us/blog/introduction-python-dependency-management-poetry-package)

### Commands for developing this project: 

```shell
# 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

```shell
poetry build

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

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


