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: ...@@ -75,7 +75,7 @@ upload:
script: script:
- mv "$pypirc" $HOME/.pypirc - mv "$pypirc" $HOME/.pypirc
- pipenv run build - pipenv run build
- pipenv run upload - pipenv run upload dist/*
variables: *variables variables: *variables
cache: *cache cache: *cache
rules: rules:
......
...@@ -13,7 +13,7 @@ template = {editable = true,path = "."} ...@@ -13,7 +13,7 @@ template = {editable = true,path = "."}
lint = "pre-commit run --all-files" lint = "pre-commit run --all-files"
build = "python setup.py bdist_wheel" build = "python setup.py bdist_wheel"
clean = "git clean -fdX" clean = "git clean -fdX"
upload = "sh -c 'twine upload dist/*'" upload = "twine upload"
bats = "bats -t tests/" bats = "bats -t tests/"
check = "sh -c 'rm -rf dist/ && python setup.py bdist_wheel && twine check dist/*'" check = "sh -c 'rm -rf dist/ && python setup.py bdist_wheel && twine check dist/*'"
doctest = "sh -c 'python -m doctest template/*.py'" doctest = "sh -c 'python -m doctest template/*.py'"
...@@ -77,8 +77,10 @@ Release ...@@ -77,8 +77,10 @@ Release
Release requires `Pipenv <https://docs.pipenv.org>`_. To bump the version run 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 :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 commit and tag the changes, then run :code:`git push --follow-tags` to push the
PyPI and :code:`git push --follow-tags` to push the git commit and tag. 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 License
------- -------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment