forked from fdemmer/django-weasyprint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (40 loc) · 1.36 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
import codecs
import os
from setuptools import find_packages, setup
VERSION = '0.5.4'
def read(*parts):
"""
Build an absolute path from *parts* and and return the contents of the
resulting file. Assume UTF-8 encoding.
"""
pwd = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(pwd, *parts), 'rb', 'utf-8') as f:
return f.read()
setup(
name='django-weasyprint',
version=VERSION,
description='Django WeasyPrint CBV',
long_description=read('README.rst'),
url='https://github.com/fdemmer/django-weasyprint',
download_url='https://github.com/fdemmer/django-weasyprint/archive/v{0}.tar.gz'.format(VERSION),
author='Florian Demmer',
author_email='[email protected]',
license='Apache-2.0',
classifiers=[
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Framework :: Django",
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
packages=find_packages(),
install_requires=[
"Django>=1.8",
"WeasyPrint",
],
)