Skip to main content

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


Download files

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

Source Distribution

ops-py-generate-pyproject-2.2.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

ops_py_generate_pyproject-2.2.3-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file ops-py-generate-pyproject-2.2.3.tar.gz.

File metadata

File hashes

Hashes for ops-py-generate-pyproject-2.2.3.tar.gz
Algorithm Hash digest
SHA256 eeca406481e44b96665e8a459a31aa0d8e605f458a183227399a6926bbd3cac7
MD5 0f1891e037df0de282cae959b16b1cd2
BLAKE2b-256 fba848df857783e7faea4eee2bce6a2c9c4f875c8834976139d7ba3e3621fe8b

See more details on using hashes here.

File details

Details for the file ops_py_generate_pyproject-2.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ops_py_generate_pyproject-2.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c4daa3e63df7ee79913b1f7d2173efd501a04ca2e92592efe76a7041056f7d86
MD5 ad312e3afd28705e7762b08a623c800b
BLAKE2b-256 a132c769cdbb1e19c3869a15daa8771cfaca5ad3fe876c6bb47e1218eb8eba0d

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