mirror of
https://github.com/pypiserver/pypiserver
synced 2024-11-09 16:45:51 +01:00
Provide mock
library for py-3.2.
This commit is contained in:
parent
5fd1d49a3b
commit
699a73bf04
@ -12,7 +12,7 @@ tox
|
||||
wheel
|
||||
pytest>=2.3
|
||||
webtest; python_version != '2.5'
|
||||
mock; python_version < '3'
|
||||
mock; python_version <= '3.2'
|
||||
gevent>=1.1b4; python_version >= '3'
|
||||
twine>=1.6.0
|
||||
|
||||
|
9
setup.py
9
setup.py
@ -4,14 +4,17 @@ import sys
|
||||
|
||||
from setuptools import setup
|
||||
|
||||
tests_require = ['pytest>=2.3', 'tox', 'twine']
|
||||
if sys.version_info >= (3, 0):
|
||||
exec("def do_exec(co, loc): exec(co, loc)\n")
|
||||
else:
|
||||
exec("def do_exec(co, loc): exec co in loc\n")
|
||||
|
||||
tests_require = ['pytest>=2.3', 'tox', 'twine']
|
||||
if sys.version_info <= (3, 2):
|
||||
tests_require.append('mock')
|
||||
|
||||
|
||||
|
||||
def get_version():
|
||||
d = {}
|
||||
try:
|
||||
@ -32,7 +35,9 @@ setup(name="pypiserver",
|
||||
'setuptools-git >= 0.3', # Gather package-data from all files in git.
|
||||
'wheel',
|
||||
],
|
||||
install_requires=['passlib'],
|
||||
extras_require={
|
||||
'passlib': ['passlib']
|
||||
},
|
||||
tests_require=tests_require,
|
||||
url="https://github.com/pypiserver/pypiserver",
|
||||
maintainer="Kostis Anagnostopoulos",
|
||||
|
Loading…
Reference in New Issue
Block a user