forked from monkeython/loremipsum
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
38 lines (32 loc) · 896 Bytes
/
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
"""
python setup.py bdist_egg
"""
import sys
from setuptools import setup
import os
WD = os.path.dirname(os.path.abspath(__file__))
os.chdir(WD)
sys.path.insert(1, WD)
NAME = 'loremipsum'
PACKAGE = __import__(NAME)
AUTHOR, EMAIL = PACKAGE.__author__.rsplit(' ', 1)
with open('README.rst', 'r') as README:
DESCRIPTION = README.readline().strip()
LONG_DESCRIPTION = ''.join((DESCRIPTION, README.read()))
URL = 'http://projects.monkeython.com/%s' % NAME
EGG = {
'name': NAME,
'version': PACKAGE.__version__,
'author': AUTHOR,
'author_email': EMAIL.strip('<>'),
'url': URL,
'description': DESCRIPTION,
'long_description': LONG_DESCRIPTION,
'classifiers': PACKAGE.__classifiers__,
'keywords': PACKAGE.__keywords__,
'packages': [NAME],
'include_package_data': True,
'test_suite': 'tests.suite'
}
if __name__ == '__main__':
setup(**EGG)