Skip to content
Snippets Groups Projects
Commit 1944abf0 authored by nimrod's avatar nimrod
Browse files

More generic upload Pipenv script.

parent d3d8cabb
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ upload:
script:
- mv "$pypirc" $HOME/.pypirc
- pipenv run build
- pipenv run upload
- pipenv run upload dist/*
variables: *variables
cache: *cache
rules:
......
......@@ -13,7 +13,7 @@ template = {editable = true,path = "."}
lint = "pre-commit run --all-files"
build = "python setup.py bdist_wheel"
clean = "git clean -fdX"
upload = "sh -c 'twine upload dist/*'"
upload = "twine upload"
bats = "bats -t tests/"
check = "sh -c 'rm -rf dist/ && python setup.py bdist_wheel && twine check dist/*'"
doctest = "sh -c 'python -m doctest template/*.py'"
......@@ -77,8 +77,10 @@ Release
Release requires `Pipenv <https://docs.pipenv.org>`_. To bump the version run
:code:`pipenv run bumpversion major|minor|patch` to update the version and git
commit and tag. Then run :code:`pipenv run upload` to upload the new version to
PyPI and :code:`git push --follow-tags` to push the git commit and tag.
commit and tag the changes, then run :code:`git push --follow-tags` to push the
git commit and tag. The GitLab CI will then build and upload a release to PyPI.
To manually upload to PyPI run :code:`pipenv run build` to build the Python
package and :code:`pipenv run upload -s dist/*` to upload a signed version.
License
-------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment