-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
83 lines (69 loc) · 2.35 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env python3
"""
Installer
"""
from setuptools import setup, find_packages
import codecs
import os
from sys import version_info as _vi
from libefse import __version__ as version
package_name = "libefse"
application_name = "email-feedback-spss-exam"
install_requires = ["appdirs>=1.4",
"pysimplegui>=4.38",
"mailcomposer>=0.2.4",
"Markdown>=3.3.4",
"pandas>=1.2"]
extras_require = {}
entry_points = {'console_scripts':
['{}={}.__main__:run'.format(application_name, package_name)]}
package_data = {}
if _vi.major< 1:
raise RuntimeError("{0} requires Python 3 or larger.".format(application_name))
def readme():
directory = os.path.dirname(os.path.join(
os.getcwd(), __file__, ))
with codecs.open(
os.path.join(directory, "README.md"),
encoding="utf8",
mode="r",
errors="replace",
) as file:
return file.read()
def get_version(package):
"""Get version number"""
with open(os.path.join(package, "__init__.py")) as f:
for line in f:
if line.startswith("__version__"):
return line.split("'")[1]
return "None"
if __name__ == '__main__':
setup(
name = application_name,
version=version,
description='Sending question-by-question email '
'feedback about the results in an SPSS exam.',
author='Oliver Lindemann',
author_email='[email protected]',
license='GNU GPLv3',
url='https://github.com/essb-mt-section/email-feedback-spss-exam/',
packages=find_packages(),
include_package_data=True,
package_data=package_data,
setup_requires=[],
install_requires=install_requires,
entry_points=entry_points,
extras_require=extras_require,
keywords = "",
classifiers=[
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering"
],
long_description=readme(),
long_description_content_type='text/markdown'
)