Skip to content

Latest commit

 

History

History
107 lines (76 loc) · 2.34 KB

File metadata and controls

107 lines (76 loc) · 2.34 KB

DEVELOPMENT BINNACLE

Tools used

Dependencies

Development dependencies

Set up local development

Run development local:

    cd sync-py
    pipenv install --dev -e .
    pipenv graph

 Versioning

  1. Install bump2version: pip install --upgrade bump2version

  2. 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

Publish on test.pypi.org

1.Create dist files:

pipenv run python setup.py sdist bdist_wheel

2.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

Test from test.pypi.org

  1. Pipfile
[[source]]
name = "test"
url = "https://test.pypi.org/simple"
verify_ssl = true

[dev-packages]
python-dotenv = "*"

[packages]
sync-py = {index = "test",version = "*"}

# .
# .
# .
# Omitted
  1. Install and updatepipenv install --dev and pipenv update

  2. Run pipevn run python path-to/test.py

Publish on pypi.org

1.Create dist files:

pipenv run python setup.py sdist bdist_wheel

2.Check dist files:

twine check dist/*

3.Publish on pypi.org:

twine upload dist/*

TODO

 External documentation used

  1. Distributing packages Official documentation

  2. Real python blog - How to Publish an Open-Source Python Package to PyPI

  3. Pipenv documentation

  4. Getting Started With Testing in Python