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.
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.gitLinux
virtualenv env
. env/bin/activate
pip install -e .Windows
virtualenv env
env\Scripts\activate
pip install -e .pip install -r requirements-build.txt
# run the python tests
tox -r
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/*