-
Notifications
You must be signed in to change notification settings - Fork 35
/
setup.py
86 lines (81 loc) · 3.26 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
# ----------------------
# ls.joyous
# ----------------------
import sys
import os
import io
import subprocess
from pathlib import Path
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
# allow setup.py to be run from any path
here = Path(__file__).resolve().parent
os.chdir(str(here))
with io.open("README.rst", encoding="utf-8") as readme:
README = readme.read()
class RunTests(TestCommand):
def run(self):
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
setup(name="ls.joyous",
use_scm_version={
'write_to': "ls/joyous/_version.py",
},
description="A calendar application for Wagtail.",
long_description=README,
keywords=["calendar", "events", "wagtail", "groupware"],
classifiers=["Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Wagtail",
"Framework :: Wagtail :: 2",
"Framework :: Wagtail :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Office/Business :: Groupware",
"Topic :: Office/Business :: Scheduling",
"Topic :: Software Development :: Libraries :: Python Modules"
],
platforms="any",
author="David Moore",
author_email="[email protected]",
url="https://github.com/linuxsoftware/ls.joyous",
license="BSD",
packages=find_packages(where=".", exclude=["ls.joyous.tests"]),
package_data={'ls.joyous': ["templates/joyous/*.html",
"templates/joyous/*/*.html",
"templates/joyous/*/*.xml",
"static/joyous/css/*.css",
"static/joyous/css/vendor/*.css",
"static/joyous/img/*.png",
"static/joyous/img/*.jpg",
"static/joyous/js/*.js",
"static/joyous/js/vendor/*.js",
"locale/*/LC_MESSAGES/django.po",
"locale/*/LC_MESSAGES/django.mo"
],
},
setup_requires=["setuptools_scm"],
install_requires=["django-timezone-field",
"holidays<=0.13",
"icalendar",
"num2words",
"python-dateutil",
"feedgen",
],
tests_require=["coverage",
"django-beautifulsoup-test",
"freezegun",
"wagtailgmaps",
"pytest",
"pytest-pythonpath",
"pytest-django",
"pytest-cov",
"pytest-xdist",
"pytest-subtests",
],
test_suite="ls.joyous.tests",
cmdclass={'test': RunTests},
zip_safe=False,
)