forked from Kozea/CairoSVG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·58 lines (49 loc) · 1.83 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
53
54
55
56
57
58
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Public Domain
"""
CairoSVG - A Simple SVG Converter for Cairo
===========================================
CairoSVG is a SVG converter based on Cairo. It can export SVG files to PDF,
PostScript and PNG files.
For further information, please visit the `CairoSVG Website
<http://www.cairosvg.org/>`_.
"""
import codecs
import re
from os import path
from distutils.core import setup
init_path = path.join(path.dirname(__file__), 'cairosvg', '__init__.py')
with codecs.open(init_path, 'r', 'utf-8') as fd:
VERSION = re.search("VERSION = '([^']+)'", fd.read().strip()).group(1)
# When the version is updated, ``cairosvg.VERSION`` must be modified.
# A new section in the ``NEWS`` file must be added too.
setup(
name="CairoSVG",
version=VERSION,
description="A Simple SVG Converter for Cairo",
long_description=__doc__,
author="Kozea",
author_email="guillaume.ayoub@kozea.fr",
url="http://www.cairosvg.org/",
license="GNU LGPL v3+",
platforms="Any",
packages=["cairosvg", "cairosvg.surface"],
provides=["cairosvg"],
scripts=["bin/cairosvg"],
keywords=["svg", "cairo", "pdf", "png", "postscript"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: "
"GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Multimedia :: Graphics :: Graphics Conversion"])