-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
90 lines (81 loc) · 2.38 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
84
85
86
87
88
89
90
# -*- coding: utf-8 -*-
"""Setup module for flask taxonomy."""
import os
from setuptools import setup
readme = open('README.md').read()
history = open('CHANGES.md').read()
OAREPO_VERSION = os.environ.get('OAREPO_VERSION', '3.3.0')
install_requires = [
'marshmallow',
'oarepo-multilingual',
'flask'
]
tests_require = [
'pytest-invenio[docs]==1.3.4',
'oarepo-multilingual',
# 'pytest>=4.6.3',
# 'jsonschema',
# 'pydocstyle',
# 'isort',
# 'check-manifest',
'oarepo-mapping-includes',
# 'pytest-cov'
]
extras_require = {
'tests': [
*tests_require,
'oarepo[tests]~={version}'.format(
version=OAREPO_VERSION)],
'tests-es7': [
*tests_require,
'oarepo[tests-es7]~={version}'.format(
version=OAREPO_VERSION)],
}
setup_requires = [
'pytest-runner>=2.7',
]
g = {}
with open(os.path.join('oarepo_dc', 'version.py'), 'rt') as fp:
exec(fp.read(), g)
version = g['__version__']
setup(
name="oarepo_dc",
version=version,
url="https://github.com/oarepo/oarepo-dc",
license="MIT",
author="Alzbeta Pokorna",
author_email="[email protected]",
description="DCTerms support for OARepo (just selected props)",
long_description=readme + '\n\n' + history,
long_description_content_type='text/markdown',
zip_safe=False,
packages=['oarepo_dc'],
entry_points={
'oarepo_mapping_includes': [
'oarepo_dc=oarepo_dc.included_mappings'
],
'invenio_jsonschemas.schemas': [
'oarepo_dc = oarepo_dc.jsonschemas',
],
},
include_package_data=True,
setup_requires=setup_requires,
extras_require=extras_require,
install_requires=install_requires,
tests_require=tests_require,
platforms='any',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Development Status :: 4 - Beta',
],
)