-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
52 lines (48 loc) · 1.46 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
import os
from setuptools import setup, find_packages
def get_version(fname):
'''Extracts __version__ from {fname}'''
import re
verstrline = open(fname, "rt").read()
mob = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", verstrline, re.M)
if mob:
return mob.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (fname,))
setup(
name="mote-prk",
version=get_version('mote/__init__.py'),
description="Mote - the pattern library framework.",
long_description = open("README.rst", "r").read() + open("AUTHORS.rst", "r").read() + open("CHANGELOG.rst", "r").read(),
author="Praekelt Consulting",
author_email="[email protected]",
url="https://github.com/praekelt/mote",
license="BSD",
packages=find_packages(),
zip_safe=True,
install_requires=[
"django",
"beautifulsoup4",
"six",
"djangorestframework-jwt",
"djangorestframework",
"xmltodict",
"PyYAML",
"yamlordereddictloader",
"pypandoc",
"dill"
],
tests_require=[
"tox",
],
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
],
include_package_data=True
)