2011-07-29 02:02:28 +02:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
2015-09-16 22:05:47 +02:00
|
|
|
import sys
|
2011-11-08 00:10:45 +01:00
|
|
|
|
2015-09-16 22:05:47 +02:00
|
|
|
from setuptools import setup
|
2011-11-08 00:10:45 +01:00
|
|
|
|
|
|
|
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")
|
2015-09-18 18:52:53 +02:00
|
|
|
|
2016-03-11 18:46:29 +01:00
|
|
|
tests_require = ['pytest>=2.3', 'tox', 'twine', 'pip>=7',
|
|
|
|
'passlib>=1.6', 'webtest']
|
2017-12-18 12:50:19 +01:00
|
|
|
if sys.version_info == (2, 7):
|
2015-09-16 22:05:47 +02:00
|
|
|
tests_require.append('mock')
|
2011-07-29 02:02:28 +02:00
|
|
|
|
2016-01-20 21:18:22 +01:00
|
|
|
setup_requires = ['setuptools', 'setuptools-git >= 0.3']
|
2016-03-11 18:46:29 +01:00
|
|
|
if sys.version_info >= (3, 5):
|
2016-01-20 21:18:22 +01:00
|
|
|
setup_requires.append('wheel >= 0.25.0') # earlier wheels fail in 3.5
|
|
|
|
else:
|
|
|
|
setup_requires.append('wheel')
|
|
|
|
|
2011-07-29 02:41:27 +02:00
|
|
|
|
2011-07-29 02:02:28 +02:00
|
|
|
def get_version():
|
|
|
|
d = {}
|
|
|
|
try:
|
2015-09-16 22:05:47 +02:00
|
|
|
do_exec(open("pypiserver/__init__.py").read(), d) # @UndefinedVariable
|
2011-07-29 02:02:28 +02:00
|
|
|
except (ImportError, RuntimeError):
|
|
|
|
pass
|
|
|
|
return d["__version__"]
|
|
|
|
|
|
|
|
|
|
|
|
setup(name="pypiserver",
|
2015-03-08 23:21:35 +01:00
|
|
|
description="A minimal PyPI server for use with pip/easy_install.",
|
2011-12-05 22:36:29 +01:00
|
|
|
long_description=open("README.rst").read(),
|
2011-07-29 02:02:28 +02:00
|
|
|
version=get_version(),
|
|
|
|
packages=["pypiserver"],
|
2014-11-14 00:36:32 +01:00
|
|
|
package_data={'pypiserver': ['welcome.html']},
|
2017-12-18 12:50:19 +01:00
|
|
|
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
|
2016-01-20 21:18:22 +01:00
|
|
|
setup_requires=setup_requires,
|
2015-09-18 18:52:53 +02:00
|
|
|
extras_require={
|
2016-03-11 18:46:29 +01:00
|
|
|
'passlib': ['passlib>=1.6'],
|
2016-01-04 22:42:39 +01:00
|
|
|
'cache': ['watchdog']
|
2015-09-18 18:52:53 +02:00
|
|
|
},
|
2015-09-11 15:10:41 +02:00
|
|
|
tests_require=tests_require,
|
2015-09-16 22:05:47 +02:00
|
|
|
url="https://github.com/pypiserver/pypiserver",
|
2016-06-28 13:13:32 +02:00
|
|
|
maintainer=("Kostis Anagnostopoulos <ankostis@gmail.com>"
|
2017-11-30 02:39:06 +01:00
|
|
|
"Matthew Planchard <mplanchard@gmail.com>"),
|
2015-09-16 22:05:47 +02:00
|
|
|
maintainer_email="ankostis@gmail.com",
|
2011-08-01 02:57:43 +02:00
|
|
|
classifiers=[
|
2015-09-19 02:36:43 +02:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Environment :: Web Environment",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: System Administrators",
|
|
|
|
"License :: OSI Approved :: BSD License",
|
|
|
|
"License :: OSI Approved :: zlib/libpng License",
|
|
|
|
"Operating System :: MacOS :: MacOS X",
|
|
|
|
"Operating System :: Microsoft :: Windows",
|
|
|
|
"Operating System :: POSIX",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python :: 2",
|
|
|
|
"Programming Language :: Python :: 2.7",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.4",
|
|
|
|
"Programming Language :: Python :: 3.5",
|
2017-11-30 02:39:06 +01:00
|
|
|
"Programming Language :: Python :: 3.6",
|
2017-12-18 12:50:19 +01:00
|
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
2017-11-30 02:39:06 +01:00
|
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
2015-09-19 02:36:43 +02:00
|
|
|
"Topic :: Software Development :: Build Tools",
|
|
|
|
"Topic :: System :: Software Distribution"],
|
2015-09-16 23:54:41 +02:00
|
|
|
zip_safe=True,
|
2015-09-16 22:05:47 +02:00
|
|
|
entry_points={
|
2015-09-19 02:36:43 +02:00
|
|
|
'paste.app_factory': ['main=pypiserver:paste_app_factory'],
|
|
|
|
'console_scripts': ['pypi-server=pypiserver.__main__:main']
|
|
|
|
},
|
2015-09-16 22:05:47 +02:00
|
|
|
options={
|
|
|
|
'bdist_wheel': {'universal': True},
|
|
|
|
},
|
|
|
|
platforms=['any'],
|
|
|
|
)
|