An example package
Project description
wenyang
A Python package example
steps:
- Give your package a unique name {package.name} in PyPI. You can check with
pip search
. - Create a new repository {package.name} on github as https://github.com/{github.username}/{package.name}
git clone https://github.com/{github.username}/{package.name}
then you will get folder {package.name} as the {root}- Create README.md for the package if you did not init your repository with a README.md
- Read https://packaging.python.org/tutorials/packaging-projects/
- Create empty package as {root}/{package.name}
- Create {root}/setup.py
- Generate distribution packages
python3 -m pip install --upgrade setuptools wheel
python3 setup.py sdist bdist_wheel
- Upload the distribution archives
python3 -m pip install --upgrade twine
python3 -m twine upload dist/*
- Check the package on https://pypi.org/project/wenyang/0.0.1/
references:
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
wenyang-0.0.2.tar.gz
(1.7 kB
view hashes)