aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index a4f43c3..490bf1d 100755
--- a/setup.py
+++ b/setup.py
@@ -11,6 +11,25 @@ from distutils.errors import DistutilsError
11from setuptools import setup, find_packages 11from setuptools import setup, find_packages
12 12
13 13
14class Release(Command):
15
16 user_options = []
17 description = "build and test package with linting"
18
19 def initialize_options(self):
20 pass
21
22 def finalize_options(self):
23 pass
24
25 def run(self):
26 self.run_command("test")
27
28 # Flake8 should examine tests too
29 self.distribution.packages = find_packages()
30 self.run_command("flake8")
31
32
14class TestsWithCoverage(test): 33class TestsWithCoverage(test):
15 34
16 description = "run unit tests with coverage" 35 description = "run unit tests with coverage"
@@ -139,6 +158,7 @@ setup(
139 cmdclass={ 158 cmdclass={
140 "test": TestsWithCoverage, 159 "test": TestsWithCoverage,
141 "pypi_release": PyPiReleaseCommand, 160 "pypi_release": PyPiReleaseCommand,
161 "release": Release,
142 }, 162 },
143 entry_points={ 163 entry_points={
144 "console_scripts": [ 164 "console_scripts": [