Readme
Python#
simple setup.py#
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="package_name",
version="0.1.2",
author="Abolfazl Amiri",
author_email="aa.smpro@gmail.com",
description="simple description",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/aasmpro/simplesm",
packages=setuptools.find_packages(),
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3 :: Only"
],
)
packaging for pypi#
install twine:
pip3 install twine
python3 setup.py sdist bdist_wheel
looking what is inside package:
tar tzf package-1.2.3.tar.gz
twine check dist/*
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*
resources#
this is helpful!