forked from kata198/cmp_version
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·58 lines (45 loc) · 2.18 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
50
51
52
53
54
55
#!/usr/bin/env python
#
#vim: set ts=4 sw=4 expandtab
import os
from setuptools import setup
if __name__ == '__main__':
dirName = os.path.dirname(__file__)
if dirName and os.getcwd() != dirName:
os.chdir(dirName)
summary = 'A script and python module to compare version numbers. Use this to compare the version strings of packages, modules, really anything.'
try:
with open('README.rst', 'rt') as f:
long_description = f.read()
except Exception as e:
sys.stderr.write('Exception when reading long description: %s\n' %(str(e),))
long_description = summary
setup(name='cmp_version',
version='3.0.0',
packages=['cmp_version'],
scripts=['cmp-version'],
author='Tim Savannah',
author_email='[email protected]',
maintainer='Tim Savannah',
url='https://github.com/kata198/cmp_version',
maintainer_email='[email protected]',
description=summary,
long_description=long_description,
license='Public Domain',
keywords=['cmp', 'version', 'cmp_version', 'compare', 'version', 'number', 'package', 'rpm', 'commandline', 'tool', 'module', 'release'],
classifiers=['Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'License :: Public Domain',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Version Control',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)