This repository has been archived by the owner on May 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
64 lines (55 loc) · 1.9 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
56
57
58
59
60
61
62
63
64
"""
This library provides the ability to generate, manipulate and check against
"Label Generation Rulesets", which are formal descriptions of which code points
are available for registration by domain name registries. These tables can also
specify contextual rules, as well as rules for generating sets of labels derived
from nominated code point variants.
"""
import sys
from setuptools import setup, find_packages
def main():
python_version = sys.version_info[:2]
python_3 = sys.version_info[0] == 3
if python_3:
raise SystemExit("Sorry, Python 2.x only")
if python_version < (2,5):
raise SystemExit("Sorry, Python 2.5 or newer required")
from lgr import __version__
arguments = {
'name': 'lgr',
'packages': find_packages(),
'provides': ['lgr'],
'version': __version__,
'entry_points': {
'console_scripts': [
'lgr = lgr.commandline:main',
],
},
'install_requires': [
'setuptools',
'nose',
],
'requires': [
'argparse',
],
'test_suite': 'nose.collector',
'description': 'Label Generation Ruleset Toolkit',
'long_description': __doc__,
'author': 'Kim Davies',
'author_email': '[email protected]',
'license': 'BSD-like',
'url': 'https://github.com/kjd/lgr',
'classifiers': [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Topic :: Internet :: Name Service (DNS)',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
}
setup(**arguments)
if __name__ == '__main__':
main()