diff options
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 41 |
1 files changed, 27 insertions, 14 deletions
@@ -52,23 +52,32 @@ class TestsWithCoverage(test): | |||
52 | self.missed_coverage_goals = True | 52 | self.missed_coverage_goals = True |
53 | self.announce( | 53 | self.announce( |
54 | "Coverage: {!r} coverage is {}%, goal is {}%".format( | 54 | "Coverage: {!r} coverage is {}%, goal is {}%".format( |
55 | rel_path, coverage_percent, self.coverage_goal), log.ERROR) | 55 | rel_path, coverage_percent, self.coverage_goal |
56 | ), | ||
57 | log.ERROR, | ||
58 | ) | ||
56 | 59 | ||
57 | missed_branches = analysis.numbers.n_missing_branches | 60 | missed_branches = analysis.numbers.n_missing_branches |
58 | if missed_branches != self.missed_branches_goal: | 61 | if missed_branches != self.missed_branches_goal: |
59 | self.missed_coverage_goals = True | 62 | self.missed_coverage_goals = True |
60 | self.announce( | 63 | self.announce( |
61 | "Coverage: {!r} missed branch count is {}, goal is {}".format( | 64 | "Coverage: {!r} missed branch count is {}, goal is {}".format( |
62 | rel_path, missed_branches, self.missed_branches_goal), | 65 | rel_path, missed_branches, self.missed_branches_goal |
63 | log.ERROR) | 66 | ), |
67 | log.ERROR, | ||
68 | ) | ||
64 | 69 | ||
65 | partially_covered_branches = analysis.numbers.n_partial_branches | 70 | partially_covered_branches = analysis.numbers.n_partial_branches |
66 | if partially_covered_branches != self.partial_branches_goal: | 71 | if partially_covered_branches != self.partial_branches_goal: |
67 | self.missed_coverage_goals = True | 72 | self.missed_coverage_goals = True |
68 | self.announce( | 73 | self.announce( |
69 | "Coverage: {!r} partial branch count is {}, goal is {}".format( | 74 | "Coverage: {!r} partial branch count is {}, goal is {}".format( |
70 | rel_path, partially_covered_branches, | 75 | rel_path, |
71 | self.partial_branches_goal), log.ERROR) | 76 | partially_covered_branches, |
77 | self.partial_branches_goal, | ||
78 | ), | ||
79 | log.ERROR, | ||
80 | ) | ||
72 | 81 | ||
73 | def run(self): | 82 | def run(self): |
74 | from coverage import Coverage | 83 | from coverage import Coverage |
@@ -114,13 +123,20 @@ class PyPiReleaseCommand(Command): | |||
114 | def configure_environment(self): | 123 | def configure_environment(self): |
115 | log.info("Configuring release environment") | 124 | log.info("Configuring release environment") |
116 | subprocess.check_call(["python3", "-m", "venv", ".release/py3"]) | 125 | subprocess.check_call(["python3", "-m", "venv", ".release/py3"]) |
117 | self.venv_run("pip", "install", "-U", | 126 | self.venv_run( |
118 | "pip", "setuptools", "virtualenv", "twine") | 127 | "pip", "install", "-U", "pip", "setuptools", "virtualenv", "twine" |
128 | ) | ||
119 | 129 | ||
120 | def build_py3_artifact(self): | 130 | def build_py3_artifact(self): |
121 | log.info("Building Python 3 Artifact") | 131 | log.info("Building Python 3 Artifact") |
122 | self.venv_run("python", "setup.py", | 132 | self.venv_run( |
123 | "release", "bdist_wheel", "--python-tag", "py3") | 133 | "python", |
134 | "setup.py", | ||
135 | "release", | ||
136 | "bdist_wheel", | ||
137 | "--python-tag", | ||
138 | "py3", | ||
139 | ) | ||
124 | 140 | ||
125 | def build_sdist_artifact(self): | 141 | def build_sdist_artifact(self): |
126 | log.info("Building Source Dist Artifact") | 142 | log.info("Building Source Dist Artifact") |
@@ -172,10 +188,7 @@ setup( | |||
172 | "setuptools>=36.0.1", | 188 | "setuptools>=36.0.1", |
173 | "coverage>=4.1,<5", | 189 | "coverage>=4.1,<5", |
174 | ], | 190 | ], |
175 | install_requires=[ | 191 | install_requires=["requests>=2,<3", "blowfish>=0.6.1,<1.0",], |
176 | "requests>=2,<3", | ||
177 | "blowfish>=0.6.1,<1.0", | ||
178 | ], | ||
179 | python_requires=">=3.5", | 192 | python_requires=">=3.5", |
180 | classifiers=[ | 193 | classifiers=[ |
181 | "Development Status :: 5 - Production/Stable", | 194 | "Development Status :: 5 - Production/Stable", |
@@ -191,5 +204,5 @@ setup( | |||
191 | "Programming Language :: Python :: 3 :: Only", | 204 | "Programming Language :: Python :: 3 :: Only", |
192 | "Topic :: Internet :: WWW/HTTP", | 205 | "Topic :: Internet :: WWW/HTTP", |
193 | "Topic :: Multimedia :: Sound/Audio :: Players", | 206 | "Topic :: Multimedia :: Sound/Audio :: Players", |
194 | ] | 207 | ], |
195 | ) | 208 | ) |