@@ -40,7 +40,7 @@ git flow release start ${new_version}
4040
4141``` shell
4242pip wheel -w dist --no-deps --no-cache-dir --use-pep517 -v .
43- mamba env create -n test -f requirements.yaml
43+ mamba env create --force - n test -f requirements.yaml
4444mamba activate test
4545pip install --no-deps --no-cache-dir --use-pep517 -v dist/gimmemotifs* .whl
4646
@@ -52,14 +52,23 @@ pytest -vvv --disable-pytest-warnings
5252
5353## 5. Upload to pypi testing server
5454
55+ For more info, see https://packaging.python.org/en/latest/tutorials/packaging-projects/#generating-distribution-archives
56+
5557```
56- # Check for warnings or errors
57- $ python setup.py check -r -s
58- # Create distribution
59- $ python setup.py sdist
58+ # Create the source distribution
59+ $ python3 -m pip install --upgrade build
60+ $ python3 -m build
61+
62+ # Test the source distribution
63+ $ pip install --no-deps --no-cache-dir --use-pep517 -v dist/gimmemotifs*.tar.gz
64+ $ rm ~/.config/gimmemotifs/gimmemotifs.cfg
65+ $ gimme -h
66+ $ pytest -vvv --disable-pytest-warnings
67+
6068# Upload to pypi testing server
61- $ twine upload -r testpypi dist/gimmemotifs-${version}.tar.gz
62- ```
69+ $ python3 -m pip install --upgrade twine
70+ $ python3 -m twine upload --repository testpypi dist/*
71+ ```
6372
6473## 6. Finish release
6574
@@ -77,8 +86,7 @@ git push --follow-tags origin develop master
7786## 8. Upload to PyPi.
7887
7988``` shell
80- python setup.py sdist
81- twine upload dist/gimmemotifs-${new_version} .tar.gz
89+ twine upload dist/*
8290```
8391
8492## 9. Finalize the release on Github.
0 commit comments