pypi_template
pypi_template copied to clipboard
A minimal template for creating a pypi package
pypi template
A minimal template for creating a pypi package
Use this template to more easily create a project project to submit to pypi and conda.
How to use the template:
- Click here to create a new repo (you need to be logged in to GitHub for this link to work), and follow the instructions to create a new repo from this template
git cloneyour new repo- Edit
settings.iniand fill out all the requested information (you can ignore parts starting with%) - Install fastrelease, twine, and conda-build
- Register at pypi and Anaconda
- Create a file called
~/.pypircwith your pypi login details, as follows:
[pypi]
username = your_pypi_username
password = your_pypi_password
- Write your Python library!
- Add any package requirements to the
requirementsline insettings.ini - Run
make releasein the root of your repo. This will automatically:- Publish to pypi
- Publish to Anaconda
- Increment your version number