-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
82 lines (68 loc) · 2.36 KB
/
Copy pathsetup.py
File metadata and controls
82 lines (68 loc) · 2.36 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
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
#!/usr/bin/env python3
"""
Installer
"""
from setuptools import setup, find_packages
import codecs
import os
from sys import version_info as _vi
from sharestats_item_editor import __version__ as version
from sharestats_item_editor.rexam_item_editor import WEBSITE
package_name = "sharestats_item_editor"
application_name = "sharestats-item-editor"
install_requires = ["appdirs>=1.4",
"pysimplegui>=4.33",
"PyYAML>=5.4"]
extras_require = {"rendering": ["rpy2>=3.4.3", "Markdown>=3.3"]}
entry_points = {'console_scripts':
['{}={}.__main__:run'.format(application_name, package_name)]}
package_data = {'' : ['*.json', '*.png', '*.Rmd']}
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='Editor and validator for Rexam items in the ShareStats '
'project',
author='Oliver Lindemann',
author_email='lindemann@cognitive-psychology.eu',
license='MIT licence',
url=WEBSITE,
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'
)