- Python: 3.7
- Pipenv: 2018.11.26
- Twine : 3.1.1
- bumb2version : 1.0.0
- requests : 2.23.0
- python-dotenv : 0.12.0
Run development local:
cd sync-py
pipenv install --dev -e .
pipenv graph-
Install bump2version:
pip install --upgrade bump2version -
Then run the respective version update:
- Major:
pipenv run bump2version major// 0.1.0 --> 1.0.0 - Minor:
pipenv run bump2version minor// 0.1.0 --> 0.2.0 - Patch:
pipenv run bump2version patch// 0.1.0 --> 0.1.1
1.Create dist files:
pipenv run python setup.py sdist bdist_wheel2.Check dist files:
twine check dist/*3.Publish on test.pypi.org:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*Don't forget to increase the version
- Pipfile
[[source]]
name = "test"
url = "https://test.pypi.org/simple"
verify_ssl = true
[dev-packages]
python-dotenv = "*"
[packages]
sync-py = {index = "test",version = "*"}
# .
# .
# .
# Omitted-
Install and update
pipenv install --devandpipenv update -
Run
pipevn run python path-to/test.py
1.Create dist files:
pipenv run python setup.py sdist bdist_wheel2.Check dist files:
twine check dist/*3.Publish on pypi.org:
twine upload dist/*- Add version one version manager (https://packaging.python.org/guides/single-sourcing-package-version/#single-sourcing-the-version)
- Add properly test