mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Do "twine check" on CI process
This commit is contained in:
parent
0e271f28a4
commit
7167b689b9
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
tool: [docslint, flake8, mypy]
|
tool: [docslint, flake8, mypy, twine]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
12
tox.ini
12
tox.ini
@ -1,6 +1,6 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 2.4.0
|
minversion = 2.4.0
|
||||||
envlist = docs,flake8,mypy,coverage,py{35,36,37,38,39},du{12,13,14,15}
|
envlist = docs,flake8,mypy,twine,coverage,py{35,36,37,38,39},du{12,13,14,15}
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
@ -88,6 +88,16 @@ extras =
|
|||||||
commands =
|
commands =
|
||||||
python utils/doclinter.py CHANGES CONTRIBUTING.rst README.rst doc/
|
python utils/doclinter.py CHANGES CONTRIBUTING.rst README.rst doc/
|
||||||
|
|
||||||
|
[testenv:twine]
|
||||||
|
basepython = python3
|
||||||
|
description =
|
||||||
|
Lint package.
|
||||||
|
deps =
|
||||||
|
twine
|
||||||
|
commands =
|
||||||
|
python setup.py release bdist_wheel sdist
|
||||||
|
twine check dist/*
|
||||||
|
|
||||||
[testenv:bindep]
|
[testenv:bindep]
|
||||||
description =
|
description =
|
||||||
Install binary dependencies.
|
Install binary dependencies.
|
||||||
|
@ -11,7 +11,6 @@ for stable releases
|
|||||||
* ``git commit -am 'Bump to X.Y.Z final'``
|
* ``git commit -am 'Bump to X.Y.Z final'``
|
||||||
* ``make clean``
|
* ``make clean``
|
||||||
* ``python setup.py release bdist_wheel sdist``
|
* ``python setup.py release bdist_wheel sdist``
|
||||||
* ``twine check dist/Sphinx-*``
|
|
||||||
* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]``
|
* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]``
|
||||||
* open https://pypi.org/project/Sphinx/ and check there are no obvious errors
|
* open https://pypi.org/project/Sphinx/ and check there are no obvious errors
|
||||||
* ``sh utils/bump_docker.sh X.Y.Z``
|
* ``sh utils/bump_docker.sh X.Y.Z``
|
||||||
@ -38,7 +37,6 @@ for first beta releases
|
|||||||
* ``git commit -am 'Bump to X.Y.0 beta1'``
|
* ``git commit -am 'Bump to X.Y.0 beta1'``
|
||||||
* ``make clean``
|
* ``make clean``
|
||||||
* ``python setup.py release bdist_wheel sdist``
|
* ``python setup.py release bdist_wheel sdist``
|
||||||
* ``twine check dist/Sphinx-*``
|
|
||||||
* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]``
|
* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]``
|
||||||
* open https://pypi.org/project/Sphinx/ and check there are no obvious errors
|
* open https://pypi.org/project/Sphinx/ and check there are no obvious errors
|
||||||
* ``git tag vX.Y.0b1``
|
* ``git tag vX.Y.0b1``
|
||||||
@ -67,7 +65,6 @@ for other beta releases
|
|||||||
* ``git commit -am 'Bump to X.Y.0 betaN'``
|
* ``git commit -am 'Bump to X.Y.0 betaN'``
|
||||||
* ``make clean``
|
* ``make clean``
|
||||||
* ``python setup.py release bdist_wheel sdist``
|
* ``python setup.py release bdist_wheel sdist``
|
||||||
* ``twine check dist/Sphinx-*``
|
|
||||||
* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]``
|
* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]``
|
||||||
* open https://pypi.org/project/Sphinx/ and check there are no obvious errors
|
* open https://pypi.org/project/Sphinx/ and check there are no obvious errors
|
||||||
* ``git tag vX.Y.0bN``
|
* ``git tag vX.Y.0bN``
|
||||||
@ -95,7 +92,6 @@ for major releases
|
|||||||
* ``git commit -am 'Bump to X.Y.0 final'``
|
* ``git commit -am 'Bump to X.Y.0 final'``
|
||||||
* ``make clean``
|
* ``make clean``
|
||||||
* ``python setup.py release bdist_wheel sdist``
|
* ``python setup.py release bdist_wheel sdist``
|
||||||
* ``twine check dist/Sphinx-*``
|
|
||||||
* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]``
|
* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]``
|
||||||
* open https://pypi.org/project/Sphinx/ and check there are no obvious errors
|
* open https://pypi.org/project/Sphinx/ and check there are no obvious errors
|
||||||
* ``sh utils/bump_docker.sh X.Y.Z``
|
* ``sh utils/bump_docker.sh X.Y.Z``
|
||||||
|
Loading…
Reference in New Issue
Block a user