forked from jazzband/django-robots
/
setup.py
44 lines (38 loc) · 1.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
import re
from os import path
from setuptools import setup, find_packages
def read(*parts):
return open(path.join(path.dirname(__file__), *parts)).read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='django-robots',
long_description=read('docs', 'index.txt'),
version=find_version('robots', '__init__.py'),
description='Robots exclusion application for Django, complementing Sitemaps.',
author='Jannis Leidel',
author_email='jannis@leidel.info',
url='https://github.com/jezdez/django-robots/',
packages=find_packages(),
zip_safe=False,
package_data={
'robots': [
'locale/*/LC_MESSAGES/*',
'templates/robots/*.html',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
]
)