forked from jaraco/path
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (42 loc) · 1.53 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python
import sys
import setuptools
with open('README.rst') as ld_file:
long_description = ld_file.read()
needs_sphinx = set(['build_sphinx', 'upload_docs', 'release']).intersection(sys.argv)
sphinx_req = ['sphinx', 'rst.linker'] if needs_sphinx else []
needs_pytest = set(['pytest', 'test']).intersection(sys.argv)
pytest_runner = ['pytest-runner>=2.6'] if needs_pytest else []
setup_params = dict(
name="path.py",
use_scm_version=True,
description="A module wrapper for os.path",
long_description=long_description,
author="Jason Orendorff",
author_email="[email protected]",
maintainer="Jason R. Coombs",
maintainer_email="[email protected]",
url="http://github.com/jaraco/path.py",
license="MIT License",
py_modules=['path', 'test_path'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules'
],
setup_requires=[
'setuptools_scm',
] + sphinx_req + pytest_runner,
tests_require=['pytest', 'appdirs'],
extras_require={
':python_version=="2.6"': ['importlib'],
},
)
if __name__ == '__main__':
setuptools.setup(**setup_params)