Skip to content

wuhaifengdhu/python-module-starter

Repository files navigation

pypi starter project

Build Status codecov

This is a template repository that you can use to quickly create a python application that can be built, tested, and released as an internal python module.

Setting up a new repository from this template

Create a directory and pull all the files in this template into it

mkdir new_repo_name
cd new_repo_name
git init
git pull https://github.com/wuhaifengdhu/python-module-starter.git

Build

Linux

virtualenv env
. env/bin/activate
pip install -e .

Windows

virtualenv env
env\Scripts\activate
pip install -e .

Tox Tests and Build the Wheels

pip install -r requirements-build.txt
# run the python tests
tox -r

upload to pypi

  • Register your account in pypi
  • Create file .pypirc in your home folder with 600.
index-servers =
  pypi
  pypitest

[pypi]
repository=https://upload.pypi.org/legacy/
username=your_username
password=your_password

[pypitest]
repository=https://test.pypi.org/legacy/
username=your_username
password=your_password
  • Upload your repository
python setup.py bdist_wheel --universal
twine upload dist/*

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages