1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-11-09 16:45:51 +01:00
pypiserver/setup.py

75 lines
2.4 KiB
Python
Raw Normal View History

2011-07-29 02:02:28 +02:00
#! /usr/bin/env python
import sys
from setuptools import setup
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
tests_require = ['pytest>=2.3', 'tox', 'twine', 'pip>=7', 'passlib', 'webtest']
2015-09-18 18:52:53 +02:00
if sys.version_info <= (3, 2):
tests_require.append('mock')
2011-07-29 02:02:28 +02:00
2011-07-29 02:41:27 +02:00
2011-07-29 02:02:28 +02:00
def get_version():
d = {}
try:
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",
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"],
package_data={'pypiserver': ['welcome.html']},
setup_requires=[
'setuptools',
# Gather package-data from all files in git.
'setuptools-git >= 0.3',
'wheel',
],
2015-09-18 18:52:53 +02:00
extras_require={
'passlib': ['passlib'],
'cache': ['watchdog']
2015-09-18 18:52:53 +02:00
},
tests_require=tests_require,
url="https://github.com/pypiserver/pypiserver",
maintainer="Kostis Anagnostopoulos",
maintainer_email="ankostis@gmail.com",
2011-08-01 02:57:43 +02:00
classifiers=[
"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.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Topic :: Software Development :: Build Tools",
"Topic :: System :: Software Distribution"],
zip_safe=True,
entry_points={
'paste.app_factory': ['main=pypiserver:paste_app_factory'],
'console_scripts': ['pypi-server=pypiserver.__main__:main']
},
options={
'bdist_wheel': {'universal': True},
},
platforms=['any'],
)