-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathsetup.py
58 lines (52 loc) · 2.53 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
#!/usr/bin/env python3
import os
import setuptools
def _read_reqs(relpath):
fullpath = os.path.join(os.path.dirname(__file__), relpath)
with open(fullpath) as f:
return [s.strip() for s in f.readlines()
if (s.strip() and not s.startswith("#"))]
setuptools.setup(
name='gpxtrackposter',
version='0.1',
install_requires=_read_reqs("requirements.txt"),
tests_require=_read_reqs("requirements-dev.txt"),
data_files=[
('.', ['requirements.txt', 'requirements-dev.txt']),
('share/locale/de_DE/LC_MESSAGES', ['locale/de_DE/LC_MESSAGES/gpxposter.mo']),
('share/locale/fi_FI/LC_MESSAGES', ['locale/fi_FI/LC_MESSAGES/gpxposter.mo']),
('share/locale/fr_FR/LC_MESSAGES', ['locale/fr_FR/LC_MESSAGES/gpxposter.mo']),
('share/locale/ru_RU/LC_MESSAGES', ['locale/ru_RU/LC_MESSAGES/gpxposter.mo']),
('share/locale/zh_CN/LC_MESSAGES', ['locale/zh_CN/LC_MESSAGES/gpxposter.mo']),
],
packages=setuptools.find_packages(),
entry_points={
'console_scripts': [
'create_poster = gpxtrackposter.cli:main',
],
},
)
data_files=[
('share/locale/ar/LC_MESSAGES', ['locale/ar/LC_MESSAGES/hatta.mo']),
('share/locale/cs/LC_MESSAGES', ['locale/cs/LC_MESSAGES/hatta.mo']),
('share/locale/da/LC_MESSAGES', ['locale/da/LC_MESSAGES/hatta.mo']),
('share/locale/de/LC_MESSAGES', ['locale/de/LC_MESSAGES/hatta.mo']),
('share/locale/el/LC_MESSAGES', ['locale/el/LC_MESSAGES/hatta.mo']),
('share/locale/es/LC_MESSAGES', ['locale/es/LC_MESSAGES/hatta.mo']),
('share/locale/et/LC_MESSAGES', ['locale/et/LC_MESSAGES/hatta.mo']),
('share/locale/fi/LC_MESSAGES', ['locale/fi/LC_MESSAGES/hatta.mo']),
('share/locale/fr/LC_MESSAGES', ['locale/fr/LC_MESSAGES/hatta.mo']),
('share/locale/hu/LC_MESSAGES', ['locale/hu/LC_MESSAGES/hatta.mo']),
('share/locale/ja/LC_MESSAGES', ['locale/ja/LC_MESSAGES/hatta.mo']),
('share/locale/lt/LC_MESSAGES', ['locale/lt/LC_MESSAGES/hatta.mo']),
('share/locale/pl/LC_MESSAGES', ['locale/pl/LC_MESSAGES/hatta.mo']),
('share/locale/ru/LC_MESSAGES', ['locale/ru/LC_MESSAGES/hatta.mo']),
('share/locale/sv/LC_MESSAGES', ['locale/sv/LC_MESSAGES/hatta.mo']),
('share/locale/vi/LC_MESSAGES', ['locale/vi/LC_MESSAGES/hatta.mo']),
('share/doc/hatta/examples', [
'examples/hatta.fcgi',
'examples/hatta.gzip.fcgi',
'examples/hatta.wsgi',
'examples/extend_parser.py'
]),
],