summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup.cfg3
-rw-r--r--setup.py3
-rw-r--r--tox.ini13
3 files changed, 18 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index 831bd62..218ddcc 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -8,6 +8,9 @@ universal=1
requires-dist =
enum34; python_version<"3.4"
configparser; python_version<"3.2"
+ pyflakes >= 0.8.1, != 1.2.0, != 1.2.1, != 1.2.2, < 1.3.0
+ pycodestyle >= 2.0.0, < 2.1.0
+ mccabe >= 0.5.0, < 0.6.0
[pytest]
norecursedirs = .git .* *.egg* old docs dist build
diff --git a/setup.py b/setup.py
index 9afe94a..0df57b7 100644
--- a/setup.py
+++ b/setup.py
@@ -115,7 +115,8 @@ setuptools.setup(
PEP8_PLUGIN('comparison_to_singleton'),
PEP8_PLUGIN('comparison_negative'),
PEP8_PLUGIN('comparison_type'),
- PEP8_PLUGIN('ambiguous_identifier'),
+ # NOTE(sigmavirus24): Add this back once PyCodestyle 2.1.0 is out
+ # PEP8_PLUGIN('ambiguous_identifier'),
PEP8_PLUGIN('python_3000_has_key'),
PEP8_PLUGIN('python_3000_raise_comma'),
PEP8_PLUGIN('python_3000_not_equal'),
diff --git a/tox.ini b/tox.ini
index beeb2e3..58e7072 100644
--- a/tox.ini
+++ b/tox.ini
@@ -108,6 +108,19 @@ deps =
commands =
python setup.py check -r -s
+[testenv:release]
+skipsdist = true
+basepython = python3
+skip_install = true
+use_develop = false
+deps =
+ wheel
+ setuptools
+ twine >= 1.5.0
+commands =
+ python setup.py -q sdist bdist_wheel
+ twine upload --skip-existing dist/*
+
# Flake8 Configuration
[flake8]
# Ignore some flake8-docstrings errors