forked from fedora-infra/asknot-ng
-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
36 lines (31 loc) · 962 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
from setuptools import setup
import os
filename = os.path.join(
os.path.dirname(os.path.abspath(__file__)), 'requirements.txt')
with open(filename, 'r') as f:
requirements = f.readlines()
description = 'Ask not what $ORG can do for you, but what you can do for $ORG'
setup(
name='asknot-ng',
version='0.0',
description=description,
license='GPLv3+',
author='Ralph Bean',
author_email='[email protected]',
url='https://github.com/fedora-infra/asknot-ng',
install_requires=requirements,
packages=[],
py_modules=['asknot_lib'],
# This declares our special-case extractor to 'babel', a python l18n tool.
entry_points="""
[babel.extractors]
asknot = asknot_lib:extract
""",
# This further declares that babel should use our extractor on yaml files
# in the questions/ directory.
message_extractors = {
"questions": [
('**.yml', 'asknot', None),
]
}
)