forked from ckan/ckan
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
38 lines (33 loc) · 999 Bytes
/
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
# encoding: utf-8
import os
from setuptools import setup
# Avoid problem releasing to pypi from vagrant
if os.environ.get("USER", "") == "vagrant":
del os.link
extras_require = {}
_extras_groups = [
("requirements", "requirements.txt"),
("dev", "dev-requirements.txt"),
]
HERE = os.path.dirname(__file__)
for group, filepath in _extras_groups:
with open(os.path.join(HERE, filepath), "r") as f:
extras_require[group] = f.readlines()
setup(
message_extractors={
"ckan": [
("**.py", "python", None),
("**.js", "javascript", None),
("templates/**.html", "ckan", None),
("templates/**.txt", "ckan", None),
("public/**", "ignore", None),
],
"ckanext": [
("**.py", "python", None),
("**.js", "javascript", None),
("**.html", "ckan", None),
("multilingual/solr/*.txt", "ignore", None),
],
},
extras_require=extras_require,
)