forked from jaraco/path
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (28 loc) · 1.09 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
#!/usr/bin/env python
import distutils.core
# Setup script for path
kw = {
'name': "path.py",
'version': "2.2.2.990",
'description': "A module wrapper for os.path",
'author': "Mikhail Gusarov",
'author_email': "[email protected]",
'url': "http://github.com/dottedmag/path.py",
'license': "Public domain",
'py_modules': ['path', 'test_path']
}
# If we're running Python 2.3, add extra information
if hasattr(distutils.core, 'setup_keywords'):
if 'classifiers' in distutils.core.setup_keywords:
kw['classifiers'] = [
'Development Status :: 5 - Production/Stable',
'License :: Freely Distributable',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
if 'download_url' in distutils.core.setup_keywords:
urlfmt = "http://github.com/dottedmag/path.py/tarball/%s"
kw['download_url'] = urlfmt % kw['version']
distutils.core.setup(**kw)