Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 0d22ed3

Browse files
committed
Merge pull request #248 from ethereum/split_requirements
split requirements
2 parents 98bef63 + 6d5a70d commit 0d22ed3

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ env:
44
- TOX_ENV=py27
55

66
install:
7-
- pip install tox coveralls
87
- pip install -r requirements.txt
8+
- pip install -r dev_requirements.txt
99

1010
script:
1111
- coverage run --source ethereum setup.py test

dev_requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
tox
2+
coveralls
3+
pytest
4+
pytest-timeout
5+
https://github.com/ethereum/serpent/tarball/develop

requirements.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
bitcoin
22
pysha3
3-
pytest
4-
pytest-timeout
53
repoze.lru
64
structlog>=15.0.0
7-
coveralls
85
https://github.com/ethereum/pyrlp/tarball/develop
9-
https://github.com/ethereum/serpent/tarball/develop
106
https://github.com/ethereum/ethash/tarball/master

setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,27 @@ def run_tests(self):
2929

3030
cmdclass = dict(test=PyTest)
3131

32+
# requirements
3233
install_requires = set(x.strip() for x in open('requirements.txt'))
33-
3434
install_requires_replacements = {
3535
'https://github.com/ethereum/pyrlp/tarball/develop': 'rlp>=0.3.7',
36-
'https://github.com/ethereum/serpent/tarball/develop': 'ethereum-serpent>=1.8.1',
3736
'https://github.com/ethereum/ethash/tarball/master': 'pyethash'}
38-
3937
install_requires = [install_requires_replacements.get(r, r) for r in install_requires]
4038

39+
# dev requirements
40+
tests_require = set(x.strip() for x in open('dev_requirements.txt'))
41+
tests_require_replacements = {
42+
'https://github.com/ethereum/serpent/tarball/develop': 'ethereum-serpent>=1.8.1'}
43+
tests_require = [tests_require_replacements.get(r, r) for r in tests_require]
44+
45+
4146
setup(name="ethereum",
4247
packages=find_packages("."),
4348
description='Next generation cryptocurrency network',
4449
long_description=readme,
4550
url='https://github.com/ethereum/pyethereum/',
4651
install_requires=install_requires,
52+
tests_require=tests_require,
4753
entry_points=dict(console_scripts=console_scripts),
4854
version='0.9.64',
4955
cmdclass=cmdclass

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ setenv =
99
commands = coverage run --source=pyethereum setup.py test
1010
deps =
1111
-r{toxinidir}/requirements.txt
12+
-r{toxinidir}/dev_requirements.txt

0 commit comments

Comments
 (0)