-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (34 loc) · 1.12 KB
/
setup.py
File metadata and controls
43 lines (34 loc) · 1.12 KB
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
from distutils.core import setup
import os
import sys
parent_directory = os.path.abspath(os.path.dirname(__file__))
metafiles = {
'README.md': None,
'CHANGES.md': None,
'CLASSIFIERS.txt': None,
}
# The following bit will read each index from metafiles and fill it's value
# with the contents of that file if it is able to read the file.
for filename in metafiles:
try:
current_file = open(os.path.join(parent_directory, filename))
metafiles[filename] = current_file.read()
current_file.close()
except IOError:
pass
dependencies = []
metadata = {
'name': 'stateful-object',
'version': '0.1',
'description': 'Implements an interface for stateful object behaviors.',
'long_description': metafiles['README.md'] + '\n\n' + metafiles['CHANGES.md'],
'classifiers': metafiles['CLASSIFIERS.txt'],
'author': 'Brandon R. Stoner',
'author_email': 'monokrome@limpidtech.com',
'url': 'http://github.com/LimpidTech/StatefulObject',
'keywords': '',
'packages': ['states'],
'install_requires': dependencies,
'tests_require': dependencies,
}
setup(**metadata)