This repository was archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (39 loc) · 1.52 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
#!/usr/bin/env python3
import os, re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
try:
import apptheme_mezzanine_ceda_div.__version__ as version
except ImportError:
# If we get an import error, find the version string manually
version = "unknown"
with open(os.path.join(here, 'apptheme_mezzanine_ceda_div', '__init__.py')) as f:
for line in f:
match = re.search('__version__ *= *[\'"](?P<version>.+)[\'"]', line)
if match:
version = match.group('version')
break
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
if __name__ == "__main__":
setup(
name = 'apptheme-mezzanine-ceda-div',
version = version,
description = 'App theme providing templates for Mezzanine websites - CEDA Division customisations',
long_description = README,
classifiers = [
"Programming Language :: Python",
"Framework :: Django",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author = 'Matt Pritchard',
author_email = '[email protected]',
url = 'https://github.com/cedadev/apptheme-mezzanine-ceda-div',
keywords = 'web django ceda theme bootstrap',
packages = find_packages(),
include_package_data = True,
zip_safe = False,
install_requires = ['mezzanine','django-columns'],
#extras_require = { },
)