This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
52 lines (44 loc) · 1.49 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
#!/usr/bin/env python3
import os, re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
try:
import jasmin_metadata.__version__ as version
except ImportError:
# If we get an import error, find the version string manually
version = "unknown"
with open(os.path.join(here, 'jasmin_metadata', '__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()
requires = [
'django',
'django-picklefield',
'django-polymorphic',
'django-markdown-deux',
]
if __name__ == "__main__":
setup(
name = 'jasmin-metadata',
version = version,
description = 'Django app providing the ability to attach arbitrary metadata to objects',
long_description = README,
classifiers = [
"Programming Language :: Python",
"Framework :: Django",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author = 'Matt Pryor',
author_email = '[email protected]',
url = 'http://www.jasmin.ac.uk',
keywords = 'web django jasmin metadata',
packages = find_packages(),
include_package_data = True,
zip_safe = False,
install_requires = requires,
)