File tree Expand file tree Collapse file tree 3 files changed +39
-14
lines changed Expand file tree Collapse file tree 3 files changed +39
-14
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,18 @@ docs:
59
59
$(MAKE ) -C docs html
60
60
open docs/_build/html/index.html
61
61
62
- release : clean
63
- python setup.py sdist upload
64
- python setup.py bdist_wheel upload
65
-
66
62
dist : clean
67
- python setup.py sdist
68
- python setup.py bdist_wheel
63
+ python setup.py sdist bdist_egg bdist_wheel
69
64
ls -l dist
65
+
66
+ release-test : dist
67
+ twine upload -r test dist/*
68
+ echo " Review https://testpypi.python.org/pypi/planemo"
69
+
70
+ release :
71
+ @while [ -z " $$ CONTINUE" ]; do \
72
+ read -r -p " Have you executed release-test and reviewed results? [y/N]: " CONTINUE; \
73
+ done ; \
74
+ [ $$ CONTINUE = " y" ] || [ $$ CONTINUE = " Y" ] || (echo " Exiting." ; exit 1; )
75
+ @echo " Releasing"
76
+ twine upload dist/*
Original file line number Diff line number Diff line change 10
10
11
11
# For release
12
12
wheel
13
+ twine
Original file line number Diff line number Diff line change @@ -10,21 +10,38 @@ Release Checklist
10
10
This release checklist is based on the `Pocoo Release Management Workflow
11
11
<http://www.pocoo.org/internal/release-management/> `_.
12
12
13
+ This assumes ``~/.pypirc `` file exists with the following fields (variations)
14
+ are fine.
15
+
16
+ ```
17
+ [distutils]
18
+ index-servers =
19
+ pypi
20
+ test
21
+
22
+ [pypi]
23
+ username:<username>
24
+ password:<password>
25
+
26
+ [test]
27
+ repository:https: //testpypi.python.org/pypi
28
+ username:<username>
29
+ password:<password>
30
+ ```
31
+
13
32
* Review ``git status `` for missing files.
14
33
* Verify the latest Travis CI builds pass.
15
- * ``make lint && make test ``
16
- * Update version info in ``planemo/__init__.py `` (drop ``-dev `` suffix).
34
+ * ``make clean && make lint && make test ``
35
+ * Update version info in ``planemo/__init__.py `` (drop ``.dev0 `` suffix).
17
36
* Update release date and description in ``HISTORY.rst ``.
18
37
* ``make docs `` and review changelog.
19
38
* ``git commit ``
20
- * ``python2.7 setup.py bdist_wheel bdist_egg sdist upload ``
21
- * `` python2.6 setup.py bdist_egg upload `` (TODO)
22
- * Check PyPI release page for obvious errors (https://pypi.python.org/pypi/planemo)
39
+ * ``make release-test ``
40
+ * Review ` Test PyPI < https://testpypi.python.org/pypi/planemo >`_ for errors (install with `` pip install -i https://testpypi.python.org/pypi planemo ``).
41
+ * `` make release``
23
42
* ``git tag <release> ``
24
- * Update version info in ``planemo/__init__.py `` (n+1-dev ).
43
+ * Update version info in ``planemo/__init__.py `` (n+1.dev0 ).
25
44
* ``git commit ``
26
45
* ``git push origin ``
27
46
* ``git push --tags origin ``
28
47
* Update planemo homebrew recipe to new version.
29
-
30
- This requires ``~/.pypirc `` file.
You can’t perform that action at this time.
0 commit comments