-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
87 lines (72 loc) · 2.43 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
#!/usr/bin/env python3
########################################################################
from setuptools import setup, find_packages
from distutils.command.build import build as distutils_build
from os import chdir
from os.path import abspath, dirname
########################################################################
chdir(dirname(abspath(__file__)))
########################################################################
version_ns_global, version_ns_local = {}, {}
with open('weight_cal_grid/version.py') as f:
exec(f.read(), version_ns_global, version_ns_local)
class Version(object): pass
version = Version()
version.__dict__ = version_ns_local
# Now we can use version.package_version etc as if we had imported
# the version module.
########################################################################
with open('README.md') as readme_file:
long_description = readme_file.read()
########################################################################
# Hook building *.mo from *.po into the standard build target
distutils_build.sub_commands.append(('compile_catalog', None))
########################################################################
setup(
name=version.package_name,
version=version.package_version,
description='print a grid on sheet of paper and mark your weight every day',
long_description=long_description,
url='https://github.com/ndim/weight-calendar-grid',
author='Hans Ulrich Niedermann',
author_email='[email protected]',
license='MIT',
packages=find_packages(exclude=[
'*.tests',
]),
install_requires=[
'PyYAML',
],
package_data={
'': [
'*.md',
'LICENSE',
],
'weight_cal_grid': [
'*.png',
'locale/weight-calendar-grid.pot',
'locale/*/LC_MESSAGES/*.mo',
],
},
include_package_data=True,
extras_require={
'GUI': ['cairo'],
'PDF-reportlab': ['reportlab'],
'PDF-pdflatex': ['pdflatex', 'TikZ'],
},
entry_points = {
'console_scripts': [
'wcg-cli=weight_cal_grid.cli:main',
],
'gui_scripts': [
'wcg-gui=weight_cal_grid.gui:main',
],
},
setup_requires = [
'Babel>=1.3',
],
test_suite='nose.collector',
tests_require=['nose'],
zip_safe=False
)
########################################################################