forked from github.com/pypiserver
7bfa0f252e
+ setup: Stop failling back to `distutils`. + Remove Ralf Schmitt from maintainers.
72 lines
2.4 KiB
Python
72 lines
2.4 KiB
Python
#! /usr/bin/env python
|
|
|
|
import sys
|
|
|
|
from setuptools import setup
|
|
|
|
tests_require = ['pytest']
|
|
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.append('mock')
|
|
|
|
|
|
def get_version():
|
|
d = {}
|
|
try:
|
|
do_exec(open("pypiserver/__init__.py").read(), d) # @UndefinedVariable
|
|
except (ImportError, RuntimeError):
|
|
pass
|
|
return d["__version__"]
|
|
|
|
|
|
setup(name="pypiserver",
|
|
description="A minimal PyPI server for use with pip/easy_install.",
|
|
long_description=open("README.rst").read(),
|
|
version=get_version(),
|
|
packages=["pypiserver"],
|
|
package_data={'pypiserver': ['welcome.html']},
|
|
setup_requires=[
|
|
'setuptools',
|
|
'setuptools-git >= 0.3', # Gather package-data from all files in git.
|
|
'wheel',
|
|
],
|
|
tests_require=tests_require,
|
|
url="https://github.com/pypiserver/pypiserver",
|
|
maintainer="Kostis Anagnostopoulos",
|
|
maintainer_email="ankostis@gmail.com",
|
|
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.5",
|
|
"Programming Language :: Python :: 2.6",
|
|
"Programming Language :: Python :: 2.7",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.0",
|
|
"Programming Language :: Python :: 3.1",
|
|
"Programming Language :: Python :: 3.2",
|
|
"Programming Language :: Python :: 3.3",
|
|
"Programming Language :: Python :: 3.4",
|
|
"Topic :: Software Development :: Build Tools",
|
|
"Topic :: System :: Software Distribution"],
|
|
zip_safe=False,
|
|
entry_points={
|
|
'paste.app_factory': ['main=pypiserver:paste_app_factory'],
|
|
'console_scripts': ['pypi-server=pypiserver.__main__:main']
|
|
},
|
|
options={
|
|
'bdist_wheel': {'universal': True},
|
|
},
|
|
platforms=['any'],
|
|
)
|