Skip to content
/ pypi_template Public template
generated from fastai/nbdev_template

A minimal template for creating a pypi package

License

Notifications You must be signed in to change notification settings

fastai/pypi_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 clone your new repo
  • Edit settings.ini and 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 ~/.pypirc with 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 requirements line in settings.ini
  • Run make release in the root of your repo. This will automatically:
    • Publish to pypi
    • Publish to Anaconda
    • Increment your version number