Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 7a6dacb

Browse files
author
Mangled Deutz
committed
Cleaner, simplified requirements expressions
Test, style are expressed separately. No longer a need for -tox specific requirements. Separate folder for requirements files. Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
1 parent 223f444 commit 7a6dacb

File tree

15 files changed

+24
-35
lines changed

15 files changed

+24
-35
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ python:
77
install:
88
## This below should be separated when core lives elsewhere
99
# Install core tests reqs
10-
- pip install -rdepends/docker-registry-core/tests/requirements-tests.txt
11-
- pip install -rdepends/docker-registry-core/tests/requirements-style.txt
10+
- pip install -rdepends/docker-registry-core/requirements/test.txt
11+
- pip install -rdepends/docker-registry-core/requirements/style.txt
1212
# Install core itself
1313
- pip install depends/docker-registry-core/
1414

1515
# Install our tests requirements, and ourselves
16-
- pip install -rtests/requirements.txt
16+
- pip install -rrequirements/test.txt
1717
- pip install .
1818

1919
# XXX should run the core tests as well

MANIFEST.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
include requirements.txt
2-
include tests/requirements.txt
1+
include requirements/main.txt
2+
include requirements/test.txt
3+
include requirements/style.txt
34
include README.md
45
include LICENSE

depends/docker-registry-core/.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ python:
77
- "3.4"
88

99
install:
10-
- pip install -rtests/requirements-test.txt
11-
- pip install -rtests/requirements-style.txt
10+
- pip install -rrequirements/test.txt
11+
- pip install -rrequirements/style.txt
1212
- pip install .
1313

1414
script: flake8 . && python setup.py nosetests
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
include requirements.txt
2-
include tests/requirements-tests.txt
3-
include tests/requirements-style.txt
1+
include requirements/main.txt
2+
include requirements/test.txt
3+
include requirements/style.txt
44
include README.md
55
include LICENSE

depends/docker-registry-core/setup.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222

2323
import sys
2424

25-
from docker_registry import core # noqa
25+
import docker_registry.core as core
2626

2727
if sys.version_info < (2, 6):
2828
raise Exception("Docker registry requires Python 2.6 or higher.")
2929

30-
requirements_txt = open('./requirements.txt')
30+
requirements_txt = open('./requirements/main.txt')
3131
requirements = [line for line in requirements_txt]
3232

3333
ver = sys.version_info
@@ -45,7 +45,8 @@
4545
author_email=core.__email__,
4646
maintainer=core.__maintainer__,
4747
maintainer_email=core.__email__,
48-
url='https://github.com/dotclout/docker-registry',
48+
keywords="docker registry core",
49+
url='https://github.com/dotcloud/docker-registry',
4950
description="Docker registry core package",
5051
long_description=open('./README.md').read(),
5152
# download_url=d,
@@ -72,8 +73,6 @@
7273
'docker_registry.drivers', 'docker_registry.testing'],
7374
install_requires=requirements,
7475
zip_safe=True,
75-
tests_require="%s\n%s" % (
76-
open('./tests/requirements-tests.txt').read(),
77-
open('./tests/requirements-style.txt').read()),
76+
tests_require=open('./requirements/test.txt').read(),
7877
test_suite='nose.collector'
7978
)

depends/docker-registry-core/tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ exclude = .tox,.git,*.egg,build
99
ignore = H304
1010

1111
[testenv]
12-
deps = -rrequirements.txt
13-
-rtests/requirements-tests.txt
12+
deps = -rrequirements/main.txt
13+
-rrequirements/test.txt
1414
commands = python setup.py nosetests
1515

1616
[testenv:flake8]
17-
deps = -rtests/requirements-style.txt
17+
deps = -rrequirements/style.txt
1818
commands = flake8 {toxinidir}
File renamed without changes.

0 commit comments

Comments
 (0)