From 921633b833317585de9caa06bb3108212bc415d8 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 24 Jan 2017 22:12:36 +0200
Subject: [PATCH] - Moved the setup.py metadata check back to the Tox test
 environment, left just the restructuredtext check in the Tox docs
 environment.

---
 tox.ini | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tox.ini b/tox.ini
index fb483a0..51d46d1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -20,6 +20,7 @@ deps =
     six
 commands =
     check-manifest --ignore tox.ini,tests*
+    python setup.py setup.py check --metadata --strict
     flake8 .
     python -m doctest template/filters.py template/__init__.py
     ./tests.sh
@@ -27,7 +28,7 @@ commands =
 [testenv:docs]
 basepython = python
 deps = readme_renderer
-commands = python setup.py check -m -r -s
+commands = python setup.py check --restructuredtext --strict
 
 [testenv:release]
 basepython = python
@@ -38,5 +39,6 @@ deps =
     wheel
 commands =
     sh -c 'git tag "v$(cat VERSION)" && git push --tags'
+    sh -c 'rm -rf dist/'
     python setup.py bdist_wheel
     twine upload --skip-existing dist/*.whl
-- 
GitLab