Generate needed pyproject files to use with setuptools
Project description
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.py
pyproject.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/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ops-py-generate-pyproject-2.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeca406481e44b96665e8a459a31aa0d8e605f458a183227399a6926bbd3cac7 |
|
MD5 | 0f1891e037df0de282cae959b16b1cd2 |
|
BLAKE2b-256 | fba848df857783e7faea4eee2bce6a2c9c4f875c8834976139d7ba3e3621fe8b |
Hashes for ops_py_generate_pyproject-2.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4daa3e63df7ee79913b1f7d2173efd501a04ca2e92592efe76a7041056f7d86 |
|
MD5 | ad312e3afd28705e7762b08a623c800b |
|
BLAKE2b-256 | a132c769cdbb1e19c3869a15daa8771cfaca5ad3fe876c6bb47e1218eb8eba0d |