-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
90 lines (79 loc) · 2.59 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 os import path
from setuptools import setup
readme = open('README.rst').read()
OAREPO_VERSION = os.environ.get('OAREPO_VERSION', '3.1.1')
install_requires = [
'flatten-dict>=0.3.0,<1.0.0'
'wrapt>=1.11.2'
]
deploy_requires = [
'oarepo[deploy]~={version}'.format(version=OAREPO_VERSION),
]
tests_require = [
'oarepo[tests]~={version}'.format(version=OAREPO_VERSION),
]
extras_require = {
'tests': tests_require,
'tests-es7': {
'oarepo[tests-es7]~={version}'.format(version=OAREPO_VERSION),
},
'devel': tests_require,
'deploy': deploy_requires,
}
setup_requires = [
'pytest-runner>=2.7',
]
g = {}
with open(os.path.join('invenio_records_draft', 'version.py'), 'rt') as fp:
exec(fp.read(), g)
version = g['__version__']
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name="oarepo-invenio-records-draft",
version=version,
url="https://github.com/oarepo/invenio-records-draft",
license="MIT",
author="Mirek Šimek",
author_email="[email protected]",
description="Handling Draft and Production invenio records in one package",
zip_safe=False,
packages=['invenio_records_draft'],
entry_points={
'flask.commands': [
'draft = invenio_records_draft.cli:draft',
],
'invenio_base.api_apps': [
'invenio_records_draft = invenio_records_draft.ext:InvenioRecordsDraft',
],
'invenio_base.apps': [
'invenio_records_draft = invenio_records_draft.ext:InvenioRecordsDraft',
],
},
include_package_data=True,
setup_requires=setup_requires,
extras_require=extras_require,
install_requires=install_requires,
tests_require=tests_require,
long_description=long_description,
long_description_content_type='text/x-rst',
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',
],
)