generate-pyproject
Before you begin
Please refer to the example-code if you are planning on writing a Python package and distribute it to https://pypi.org
Usage
Install this package:
pip install ops-py-generate-pyproject
Export the VERSION and PROJECT_NAME environment variables
The PyPI project name and version, e.g.:
export VERSION=1.2.3
export PROJECT_NAME=my-fabulous-projects
Run the code
Be sure to be in the directory where the src dir of you code is located. Then run the following:
python3 -m generate_pyproject.generate_pyproject
When executing the above code, the following files should then be generated in the src/my-fabulous-projects directory:
setup.pypyproject.toml
Build the pip package
Be sure to be inside the src directory and then run:
python -m build
Upload to pypi.org
Be sure to be inside the src directory and then run:
python -m twine upload --verbose dist/*
Metadata
Release files for ops-py-generate-pyproject 2.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ops-py-generate-pyproject-2.2.3.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ops_py_generate_pyproject-2.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / ops-py-generate-pyproject-2.2.3.tar.gz
| Download URL | ops-py-generate-pyproject-2.2.3.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eeca406481e44b96665e8a459a31aa0d8e605f458a183227399a6926bbd3cac7
|
|
BLAKE2b-256 checksum How to use checksums |
fba848df857783e7faea4eee2bce6a2c9c4f875c8834976139d7ba3e3621fe8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / ops_py_generate_pyproject-2.2.3-py3-none-any.whl
| Download URL | ops_py_generate_pyproject-2.2.3-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4daa3e63df7ee79913b1f7d2173efd501a04ca2e92592efe76a7041056f7d86
|
|
BLAKE2b-256 checksum How to use checksums |
a132c769cdbb1e19c3869a15daa8771cfaca5ad3fe876c6bb47e1218eb8eba0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|