-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·46 lines (36 loc) · 1.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
#!/usr/bin/env python
"""
This is about as simple a setup.py as you can have
But it's enough to support the mailroom app
"""
import os
from setuptools import setup
def get_version():
"""
Reads the version string from the package __init__ and returns it
"""
with open(os.path.join("mailroom", "__init__.py")) as init_file:
for line in init_file:
parts = line.strip().partition("=")
if parts[0].strip() == "__version__":
return parts[2].strip().strip("'").strip('"')
return None
setup(
name='mailroom',
version=get_version(),
author='Chris Barker',
author_email='PythonCHB@gmail.com',
packages=['mailroom',
'mailroom/test'],
scripts=['bin/mailroom'],
package_data={'mailroom': ['data/sample_data.json']},
license='LICENSE.txt',
description='Simple app for managing donations for a non-profit',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Attribution Assurance License",
"Operating System :: OS Independent",
),
)