-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
45 lines (42 loc) · 1.47 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from setuptools import setup, find_packages
from django_live_templates import __version__ as version
from django_live_templates import __doc__ as doc
import os
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
with open(filepath, 'r') as fh:
return fh.read()
except IOError:
return ''
setup(
name='django-live-templates',
version=version,
author='Marc Hoersken',
author_email='[email protected]',
packages=find_packages(),
include_package_data=True,
url='https://github.com/mback2k/django-live-templates',
license='MIT',
description=' '.join(doc.splitlines()).strip(),
install_requires=read_file('requirements.txt').splitlines(),
classifiers=[
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Development Status :: 3 - Alpha',
'Operating System :: OS Independent',
],
long_description=read_file('README.md'),
long_description_content_type='text/markdown',
)