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

Commit 223f444

Browse files
author
Mangled Deutz
committed
Entirely trivial cleanup
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
1 parent 4963f28 commit 223f444

File tree

9 files changed

+17
-31
lines changed

9 files changed

+17
-31
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,3 @@ script: SETTINGS_FLAVOR=test DOCKER_REGISTRY_CONFIG=config_sample.yml flake8 . &
2222
before_install:
2323
- sudo apt-get update
2424
- sudo apt-get install libevent-dev liblzma-dev
25-
26-
# build-essential python-dev

depends/docker-registry-core/setup.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,3 @@ cover-package=docker_registry
77
cover-erase=1
88
cover-html=1
99
cover-html-dir=reports
10-
11-
[flake8]
12-
ignore = H304
13-
exclude = .tox,.git,*.egg,build

depends/docker-registry-core/tests/test_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
from docker_registry import testing
17+
import docker_registry.testing as testing
1818

1919

2020
class TestQueryDumb(testing.Query):

docker_registry/lib/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# -*- coding: utf-8 -*-

docker_registry/lib/cache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# -*- coding: utf-8 -*-
22

33
import logging
4-
54
import redis
65

76
from docker_registry.core import lru

requirements.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1+
blinker==1.3
12
Flask==0.10.1
23
Flask-cors==1.3.0
4+
gevent==1.0.1
5+
gunicorn==18.0
6+
PyYAML==3.11
37
requests==2.3.0
48
rsa==3.1.4
5-
PyYAML==3.11
6-
blinker==1.3
7-
gevent==1.0.1
89
sqlalchemy==0.9.4
9-
bugsnag==2.0.1
10-
gunicorn==18.0
11-
docker-registry-core>=1,<2

setup.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,3 @@ cover-erase=1
88
cover-html=1
99
cover-html-dir=reports
1010
ignore-files=(?:workflow|base)[.]py
11-
12-
[flake8]
13-
ignore = H102,H304
14-
exclude = .tox,.git,*.egg,build

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,20 @@
1414
ver = sys.version_info
1515

1616
if ver[0] == 2:
17+
# Python 2 requires lzma backport
1718
requirements.insert(0, 'backports.lzma>=0.0.2')
1819
if ver[1] <= 6:
20+
# Python 2.6 requires additional libraries
1921
requirements.insert(0, 'argparse>=1.2.1')
2022
requirements.insert(0, 'importlib>=1.0.3')
2123

24+
# Require core (the reason this is out of req.txt is to ease tox)
25+
requirements.insert(0, 'docker-registry-core>=1,<2')
26+
27+
# Explicit packages list to avoid setup_tools funkyness
2228
packages = ['docker_registry',
2329
'docker_registry.drivers',
30+
'docker_registry.server',
2431
'docker_registry.lib',
2532
'docker_registry.storage',
2633
'docker_registry.lib.index']

tox.ini

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
# py26 support: .format calls to cleanup in lib/index/db
2-
# py34 support: upgrade flask required
1+
# py34 support: flask is borked
32

43
[tox]
54
envlist = flake8, py26, py27
65
# py26,py32,py33,py34
76
# skipsdist = True
87

98
[flake8]
10-
ignore = H102,H304
11-
exclude = .tox,.git,*.egg,build
9+
ignore = H102,H304
10+
exclude = .tox,.git,*.egg,build
1211

1312
[testenv]
14-
# XXX cryptography, clang, latest OSX, drugs and rock and roll:
13+
# XXX clang, latest OSX:
1514
# http://bruteforce.gr/bypassing-clang-error-unknown-argument.html
1615
# XXX you might also need extra includes (for lzma-dev / xz) if you are on OSX
1716
# XXX and you might also need extra linkage (for gevent), same reason
@@ -31,9 +30,6 @@ deps = ./depends/docker-registry-core/
3130

3231
commands = python setup.py nosetests
3332

34-
#commands = nosetests -w tests
35-
# commands = nosetests -w tests --ignore-files=workflow.py --ignore-files=base.py --with-coverage --cover-package=docker_registry.lib,docker_registry.drivers,docker_registry.storage --cover-inclusive --cover-min-percentage=40 --cover-erase --cover-html --cover-html-dir=reports
36-
3733
[testenv:flake8]
3834
# XXX Like all openstack packages, hacking can't be installed as an egg
3935
# so we need a special stance for flake8 env (that will break namespaces,
@@ -44,8 +40,3 @@ deps = ./depends/docker-registry-core/
4440
commands = flake8 {toxinidir}
4541

4642

47-
# To be ported
48-
#gunicorn==18.0
49-
#python-glanceclient==0.10.0
50-
#python-keystoneclient==0.3.1
51-
#gcs-oauth2-boto-plugin>=1.3

0 commit comments

Comments
 (0)