forked from ProzorroUKR/openprocurement.api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
117 lines (106 loc) · 4.78 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import os
from setuptools import find_packages, setup
version = "2.6.349"
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md")) as f:
README = f.read()
def load_requirements(filename):
requirements = []
with open(filename) as f:
for resource in f.readlines():
if not resource.startswith("git+"):
requirements.append(resource.strip())
else:
res = resource.strip()
egg = res.split("#egg=")[1]
requirements.append("@".join([egg, res]))
return requirements
requires = load_requirements("requirements.txt")
requires_tests = load_requirements("requirements-test.txt")
requires_dev = load_requirements("requirements-dev.txt")
entry_points = {
"paste.app_factory": [
"main = openprocurement.api.app:main",
],
"paste.filter_app_factory": [
"translogger = openprocurement.api.translogger:make_filter",
],
"openprocurement.api.plugins": [
"api = openprocurement.api.includeme:includeme",
"tender.core = openprocurement.tender.core.includeme:includeme",
"planning.api = openprocurement.planning.api.includeme:includeme",
"contracting.core = openprocurement.contracting.core.includeme:includeme",
"historical.core = openprocurement.historical.core.includeme:includeme",
"relocation.api = openprocurement.relocation.api.includeme:includeme",
"framework.core = openprocurement.framework.core.includeme:includeme",
],
"openprocurement.tender.core.plugins": [
"tender.belowthreshold = openprocurement.tender.belowthreshold.includeme:includeme",
"tender.open = openprocurement.tender.open.includeme:includeme",
"tender.openua = openprocurement.tender.openua.includeme:includeme",
"tender.openeu = openprocurement.tender.openeu.includeme:includeme",
"tender.openuadefense = openprocurement.tender.openuadefense.includeme:includeme",
"tender.limited.reporting = openprocurement.tender.limited.includeme:includeme",
"tender.limited.negotiation = openprocurement.tender.limited.includeme:includeme_negotiation",
"tender.limited.negotiation.quick = openprocurement.tender.limited.includeme:includeme_negotiation_quick",
"tender.competitivedialogue = openprocurement.tender.competitivedialogue.includeme:includeme",
"tender.esco = openprocurement.tender.esco.includeme:includeme",
"tender.cfaua = openprocurement.tender.cfaua.includeme:includeme",
"tender.cfaselectionua = openprocurement.tender.cfaselectionua.includeme:includeme",
"tender.pricequotation = openprocurement.tender.pricequotation.includeme:includeme",
"tender.simpledefense = openprocurement.tender.simpledefense.includeme:includeme",
],
"openprocurement.historical.core.plugins": [
"historical.tender = openprocurement.historical.tender.includeme:includeme",
],
"openprocurement.framework.core.plugins": [
"framework.electroniccatalogue = openprocurement.framework.electroniccatalogue.includeme:includeme",
"framework.dps = openprocurement.framework.dps.includeme:includeme",
"framework.cfaua = openprocurement.framework.cfaua.includeme:includeme",
],
"openprocurement.contracting.core.plugins": [
"contracting.econtract = openprocurement.contracting.econtract.includeme:includeme",
],
"openprocurement.api.migrations": [
"tenders = openprocurement.api.migration:migrate_data",
"contracts = openprocurement.contracting.api.migration:migrate_data",
"frameworks = openprocurement.framework.core.migration:migrate_data",
],
"console_scripts": [
"bootstrap_api_security = openprocurement.api.database:bootstrap_api_security",
],
}
setup(
name="openprocurement.api",
version=version,
description="openprocurement.api",
long_description=README,
classifiers=[
"Framework :: Pylons",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
keywords="web services",
author="Quintagroup, Ltd.",
author_email="[email protected]",
license="Apache License 2.0",
url="https://github.com/ProzorroUKR/openprocurement.api",
package_dir={"": "src"},
packages=find_packages("src"),
namespace_packages=["openprocurement"],
include_package_data=True,
package_data={
"": ["*.json", "*.ini"],
},
zip_safe=False,
install_requires=requires,
setup_requires=["pytest-runner"],
tests_require=requires_tests,
extras_require={
"test": requires_tests,
"dev": requires_dev,
},
entry_points=entry_points,
)