1
0
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:
Kostis Anagnostopoulos 2015-09-18 18:52:53 +02:00
parent 5fd1d49a3b
commit 699a73bf04
2 changed files with 8 additions and 3 deletions

@ -12,7 +12,7 @@ tox
wheel wheel
pytest>=2.3 pytest>=2.3
webtest; python_version != '2.5' webtest; python_version != '2.5'
mock; python_version < '3' mock; python_version <= '3.2'
gevent>=1.1b4; python_version >= '3' gevent>=1.1b4; python_version >= '3'
twine>=1.6.0 twine>=1.6.0

@ -4,14 +4,17 @@ import sys
from setuptools import setup from setuptools import setup
tests_require = ['pytest>=2.3', 'tox', 'twine']
if sys.version_info >= (3, 0): if sys.version_info >= (3, 0):
exec("def do_exec(co, loc): exec(co, loc)\n") exec("def do_exec(co, loc): exec(co, loc)\n")
else: else:
exec("def do_exec(co, loc): exec co in loc\n") 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') tests_require.append('mock')
def get_version(): def get_version():
d = {} d = {}
try: try:
@ -32,7 +35,9 @@ setup(name="pypiserver",
'setuptools-git >= 0.3', # Gather package-data from all files in git. 'setuptools-git >= 0.3', # Gather package-data from all files in git.
'wheel', 'wheel',
], ],
install_requires=['passlib'], extras_require={
'passlib': ['passlib']
},
tests_require=tests_require, tests_require=tests_require,
url="https://github.com/pypiserver/pypiserver", url="https://github.com/pypiserver/pypiserver",
maintainer="Kostis Anagnostopoulos", maintainer="Kostis Anagnostopoulos",