/
📤
Release a Python package
Search
Duplicate
Try Notion
📤
Release a Python package
Create the setup.cfg file
It should look something like this:
╰─❯ cat setup.cfg [metadata] name = evmosproto version = 1.0.4 description = Evmos protobuf compiled files. long_description = file: README.md long_description_content_type = text/markdown url = https://github.com/hanchon-live/evmosproto author = Hanchon author_email = guillermo.paoletti@gmail.com license = MIT license_file = LICENSE classifiers = License :: OSI Approved :: MIT License Operating System :: OS Independent Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 [options] packages = find: install_requires = google==3.0.0 grpc-tools==0.0.1 grpcio==1.41.0 grpcio-tools==1.41.0 protobuf==3.18.1 six==1.16.0 python_requires = >=3.6 [autopep8] max_line_length = 120 [flake8] max_line_length = 120 [yapf] column_limit = 120 based_on_style = pep8
Bash
Create the setup.py file:
╰─❯ cat setup.py from setuptools import setup setup()
Bash
Build and upload the package
pip install wheel twine python setup.py sdist bdist_wheel twine upload -r pypi dist/<package>*
Bash