Skip to content

Commit 23d0225

Browse files
committed
Merge branch 'develop' into timer_itself_context_manager
2 parents 0976485 + 0b1bda4 commit 23d0225

File tree

6 files changed

+39
-18
lines changed

6 files changed

+39
-18
lines changed

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-e.[docs,tests]

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ universal = 1
2525
[flake8]
2626
ignore = W391
2727
exclude = docs/*,statsd/compat.py
28+
29+
[upload]
30+
sign = 1

setup.py

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,35 @@
77
else:
88
long_description = 'See http://pypi.python.org/pypi/python-statsd/'
99

10-
setuptools.setup(
11-
name=statsd.__package_name__,
12-
version=statsd.__version__,
13-
author=statsd.__author__,
14-
author_email=statsd.__author_email__,
15-
description=statsd.__description__,
16-
url=statsd.__url__,
17-
license='BSD',
18-
packages=setuptools.find_packages(exclude=('tests',)),
19-
long_description=long_description,
20-
test_suite='nose.collector',
21-
tests_require=['nose', 'mock', 'coverage'],
22-
classifiers=[
23-
'License :: OSI Approved :: BSD License',
24-
],
25-
)
10+
tests_require = [
11+
'nose',
12+
'coverage',
13+
'mock',
14+
]
15+
16+
docs_require = [
17+
'changelog',
18+
'sphinx>=1.5.0',
19+
]
20+
21+
if __name__ == '__main__':
22+
setuptools.setup(
23+
name=statsd.__package_name__,
24+
version=statsd.__version__,
25+
author=statsd.__author__,
26+
author_email=statsd.__author_email__,
27+
description=statsd.__description__,
28+
url=statsd.__url__,
29+
license='BSD',
30+
packages=setuptools.find_packages(exclude=('docs', 'tests',)),
31+
long_description=long_description,
32+
test_suite='nose.collector',
33+
classifiers=[
34+
'License :: OSI Approved :: BSD License',
35+
],
36+
extras_require={
37+
'docs': docs_require,
38+
'tests': tests_require,
39+
},
40+
)
2641

tests/conftest.py

Whitespace-only changes.

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-e.[tests]

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py26, py27, py34, py35, pypy, pypy3, flake8, docs
2+
envlist = py27, py33, py34, py35, py36, pypy, flake8, docs
33
skip_missing_interpreters = True
44

55
[testenv]
@@ -13,8 +13,9 @@ commands =
1313
nosetests --with-coverage --cover-min-percentage=100
1414

1515
[testenv:flake8]
16+
basepython = python2.7
1617
deps = flake8
17-
commands = flake8 --ignore=W391 statsd
18+
commands = flake8 --ignore=W391 {toxinidir}/statsd {toxinidir}/tests
1819

1920
[testenv:docs]
2021
deps = sphinx

0 commit comments

Comments
 (0)