From cfac7463c19c7dff808d052785b551984f4072c0 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Mon, 26 Nov 2018 17:30:27 +0100 Subject: [PATCH] Fix deprecation warning for PyPI description check --- .travis.yml | 2 +- tox.ini | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index fa3e8629..0667afe1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,7 +51,7 @@ matrix: stage: docs env: TOXENV=docs - python: "3.7" - env: TOXENV=readme + env: TOXENV=pypi-description - python: "3.7" env: TOXENV=changelog diff --git a/tox.ini b/tox.ini index b9a8fd75..59d0e418 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = typing,lint,py27,py34,py35,py36,py37,pypy,pypy3,manifest,docs,readme,changelog,coverage-report +envlist = typing,lint,py27,py34,py35,py36,py37,pypy,pypy3,manifest,docs,pypi-description,changelog,coverage-report [testenv] @@ -61,11 +61,15 @@ skip_install = true commands = check-manifest -[testenv:readme] +[testenv:pypi-description] basepython = python3.7 -deps = readme_renderer skip_install = true -commands = python setup.py check -r -s +deps = + twine + pip >= 18.0.0 +commands = + pip wheel -w {envtmpdir}/build --no-deps . + twine check {envtmpdir}/build/* [testenv:changelog]