Javier Jardón pushed to branch bst-1.2 at BuildStream / buildstream
Commits:
3 changed files:
Changes:
| ... | ... | @@ -21,3 +21,6 @@ recursive-include tests *.expected |
| 21 | 21 |
|
| 22 | 22 |
# Protocol Buffers
|
| 23 | 23 |
recursive-include buildstream/_protos *.proto
|
| 24 |
+ |
|
| 25 |
+# Requirements files
|
|
| 26 |
+dev-requirements.txt
|
| 1 |
+# Pin coverage to 4.2 for now, we're experiencing
|
|
| 2 |
+# random crashes with 4.4.2
|
|
| 3 |
+coverage == 4.4.0
|
|
| 4 |
+pep8
|
|
| 5 |
+pylint >= 1.8 , < 2
|
|
| 6 |
+pytest >= 3.1.0
|
|
| 7 |
+pytest-cov
|
|
| 8 |
+pytest-datafiles
|
|
| 9 |
+pytest-env
|
|
| 10 |
+pytest-pep8
|
|
| 11 |
+pytest-pylint
|
|
| 12 |
+# Provide option to run tests in parallel, less reliable
|
|
| 13 |
+pytest-xdist
|
| ... | ... | @@ -218,6 +218,15 @@ def get_cmdclass(): |
| 218 | 218 |
return cmdclass
|
| 219 | 219 |
|
| 220 | 220 |
|
| 221 |
+#####################################################
|
|
| 222 |
+# Gather requirements #
|
|
| 223 |
+#####################################################
|
|
| 224 |
+setup_requires = set(['pytest-runner'])
|
|
| 225 |
+with open('dev-requirements.txt') as dev_reqs:
|
|
| 226 |
+ dev_requires = set([line for line in dev_reqs.read().split('\n')
|
|
| 227 |
+ if not line.strip().startswith('#')])
|
|
| 228 |
+ |
|
| 229 |
+ |
|
| 221 | 230 |
#####################################################
|
| 222 | 231 |
# Main setup() Invocation #
|
| 223 | 232 |
#####################################################
|
| ... | ... | @@ -260,18 +269,6 @@ setup(name='BuildStream', |
| 260 | 269 |
'grpcio >= 1.10',
|
| 261 | 270 |
],
|
| 262 | 271 |
entry_points=bst_install_entry_points,
|
| 263 |
- setup_requires=['pytest-runner'],
|
|
| 264 |
- tests_require=['pep8',
|
|
| 265 |
- # Pin coverage to 4.2 for now, we're experiencing
|
|
| 266 |
- # random crashes with 4.4.2
|
|
| 267 |
- 'coverage == 4.4.0',
|
|
| 268 |
- 'pytest-datafiles',
|
|
| 269 |
- 'pytest-env',
|
|
| 270 |
- 'pytest-pep8',
|
|
| 271 |
- 'pytest-pylint',
|
|
| 272 |
- 'pytest-cov',
|
|
| 273 |
- # Provide option to run tests in parallel, less reliable
|
|
| 274 |
- 'pytest-xdist',
|
|
| 275 |
- 'pytest >= 3.1.0',
|
|
| 276 |
- 'pylint >= 1.8 , < 2'],
|
|
| 272 |
+ setup_requires=list(setup_requires),
|
|
| 273 |
+ tests_require=list(dev_requires - setup_requires),
|
|
| 277 | 274 |
zip_safe=False)
|
