-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_setup.py
96 lines (86 loc) · 2.29 KB
/
make_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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usrbin/env python
# -*- coding: us-ascii -*-
# vim: syntax=python
#
# Copyright 2006-2008 Noriyuki Hosaka [email protected]
#
d = {
'NAME':'python-tonic-library',
'AUTHOR':"Noriyuki Hosaka",
'AUTHOR_EMAIL':"[email protected]",
'VERSION':open("VERSION").read().strip(),
'install_requires': open('freeze.txt').readlines(),
'DESCRIPTION':'collection of small codes. "tonic" library for python',
'LONG_DESCRIPTION': """\
This package contains:
* lineparser
* parsing line oriented data.
* cache
* interface/implementation for cache something.
* supports
* using dict
* using disk
* using file (key for get/set must be valid path)
* using memcache
* multithread is currently NOT supported
* math related
* combination
* funny
* __dict__/__setattr__ joke
* other
* feedhelper => will move out as app
*
"""
}
setup_str = '''\
#!/usrbin/env python # -*- coding: us-ascii -*- # vim: syntax=python
#
# Copyright 2006-2008 Noriyuki Hosaka [email protected]
#
from setuptools import setup
try:
# add classifiers and download_url syntax to distutils
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
except:
pass
setup(
name="{NAME}",
version="{VERSION}",
zip_safe=False,
description="""{DESCRIPTION}""",
long_description="""{LONG_DESCRIPTION}""",
package_dir={{'tonic':'tonic', }},
packages=['tonic',
'tonic.cache',
'tonic.depot',
'tonic.feedhelper',
'tonic.markups',
],
package_data = {{}},
py_modules=[
'tonic.funny',
'tonic.lineparser',
'tonic.combination',
'tonic.visitbus',
'tonic.bitsarray',
],
install_requires= {install_requires},
author="{AUTHOR}",
author_email="{AUTHOR_EMAIL}",
url="http://github.com/bgnori/tonic",
license="Apache 2.0 Lisence",
provides=['tonic'],
classifiers=[
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Text Processing",
"Topic :: Software Development",
"Topic :: System :: Archiving :: Packaging",
]
)
'''
print setup_str.format(**d)