Skip to content

Commit f2e0802

Browse files
committed
refactor: split requirements
1 parent 0f23004 commit f2e0802

File tree

6 files changed

+23
-18
lines changed

6 files changed

+23
-18
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include CMakeLists.txt
22
include NinjaUrls.cmake
3-
include requirements-dev.txt
3+
include requirements-test.txt
44
include HISTORY.rst
55
include README.rst
66
include LICENSE_Apache_20

requirements-deploy.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
twine
2+
3+
# need to pin cryptography for manylinux1 builds & s390x/ppc64le builds
4+
# cryptography only provides manylinux2010 wheels since 3.4.0
5+
# because of the lack of a decent rust compiler on manylinux1
6+
# For s390x/ppc64le builds, cryptography never provided wheels, the requirements to
7+
# build from source are a relaxed when building the 3.3 series
8+
cryptography~=3.3.2 ; sys_platform=="linux" and platform_machine in "i386, i486, i586, i686, x86_64, s390x, ppc64le"

requirements-dev.txt

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
1-
codecov>=2.0.5
2-
coverage>=4.2
3-
4-
# need to pin cryptography for manylinux1 builds
5-
# cryptography only provides manylinux2010 wheels since 3.4.0
6-
# because of the lack of a decent rust compiler on manylinux1
7-
cryptography~=3.3.2 ; sys_platform=="linux" and platform_machine in "i386, i486, i586, i686, x86_64"
8-
flake8>=3.0.4
9-
pytest>=4.5.0
10-
pytest-cov>=2.7.1
11-
pytest-runner>=5.1
12-
pytest-virtualenv>=1.7.0
1+
-r requirements-test.txt
2+
-r requirements-repair.txt
3+
-r requirements-deploy.txt
134
scikit-build>=0.10.0
145
setuptools>=28.0.0
15-
twine
16-
virtualenv>=15.0.3
176
wheel>=0.34
18-
wheeltools

requirements-repair.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
git+https://github.com/jcfr/wheeltools.git@wheeltools-2018-10-28-a2f174d0e

requirements-test.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
codecov>=2.0.5
2+
coverage>=4.2
3+
flake8>=3.0.4
4+
pytest>=4.5.0
5+
pytest-cov>=2.7.1
6+
pytest-runner>=5.1
7+
pytest-virtualenv>=1.7.0
8+
virtualenv>=15.0.3

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def parse_requirements(filename):
2626

2727

2828
requirements = []
29-
dev_requirements = parse_requirements('requirements-dev.txt')
29+
test_requirements = parse_requirements('requirements-test.txt')
3030

3131
# Require pytest-runner only when running tests
3232
pytest_runner = (['pytest-runner>=2.0,<3dev']
@@ -79,6 +79,6 @@ def parse_requirements(filename):
7979
keywords='ninja build c++ fortran cross-platform cross-compilation',
8080

8181
install_requires=requirements,
82-
tests_require=dev_requirements,
82+
tests_require=test_requirements,
8383
setup_requires=setup_requires
8484
)

0 commit comments

Comments
 (0)