diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index ef4487e0..de116984 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -26,6 +26,9 @@ jobs: - python-version: "3.11" env: TOXENV: black + - python-version: "3.11" + env: + TOXENV: twinecheck steps: - uses: actions/checkout@v2 diff --git a/NEWS b/NEWS index 6a8994b2..a80a74b0 100644 --- a/NEWS +++ b/NEWS @@ -3,12 +3,18 @@ History ------- +1.8.1 (2023-04-18) +~~~~~~~~~~~~~~~~~~ + +* Remove a Sphinx reference from NEWS to fix the PyPI description +* Add a ``twine check`` CI check to detect such problems + 1.8.0 (2023-04-18) ~~~~~~~~~~~~~~~~~~ * Add support for JMESPath: you can now create a selector for a JSON document - and call ``Selector.jmespath()``. See :ref:`the documentation - ` for more information and examples. + and call ``Selector.jmespath()``. See `the documentation`_ for more + information and examples. * Selectors can now be constructed from ``bytes`` (using the ``body`` and ``encoding`` arguments) instead of ``str`` (using the ``text`` argument), so that there is no internal conversion from ``str`` to ``bytes`` and the memory @@ -22,6 +28,8 @@ History * ``jmespath`` * ``typing_extensions`` (on Python 3.7) + .. _the documentation: https://parsel.readthedocs.io/en/latest/usage.html + 1.7.0 (2022-11-01) ~~~~~~~~~~~~~~~~~~ diff --git a/tox.ini b/tox.ini index 19685b28..c9839477 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = security,flake8,typing,pylint,black,docs,py37,py38,py39,py310,pypy3.9 +envlist = security,flake8,typing,pylint,black,docs,twinecheck,py37,py38,py39,py310,pypy3.9 [testenv] usedevelop = True @@ -59,3 +59,12 @@ commands = sphinx-build -W -b html . {envtmpdir}/html sphinx-build -b latex . {envtmpdir}/latex sphinx-build -b epub . {envtmpdir}/epub + +[testenv:twinecheck] +basepython = python3 +deps = + twine==4.0.2 + build==0.10.0 +commands = + python -m build --sdist + twine check dist/*