1from setuptools import setup, find_packages
2import logging
3logger = logging.getLogger(__name__)
4
5version = '1.3.1'
6
7try:
8 with open('README.md', 'r') as f:
9 long_desc = f.read()
10except:
11 logger.warning('Could not open README.md. long_description will be set to None.')
12 long_desc = None
13
14setup(
15 name = 'drawSvg',
16 packages = find_packages(),
17 version = version,
18 description = 'A Python 3 library for programmatically generating SVG images (vector drawings) and rendering them or displaying them in an iPython notebook.',
19 long_description = long_desc,
20 long_description_content_type = 'text/markdown',
21 author = 'Casey Duckering',
22 #author_email = '',
23 url = 'https://github.com/cduck/drawSvg',
24 download_url = 'https://github.com/cduck/drawSvg/archive/{}.tar.gz'.format(version),
25 keywords = ['SVG', 'draw', 'graphics', 'iPython', 'Jupyter', 'widget'],
26 classifiers = [
27 'License :: OSI Approved :: MIT License',
28 'Programming Language :: Python :: 3',
29 'Framework :: IPython',
30 'Framework :: Jupyter',
31 ],
32 install_requires = [
33 'cairoSVG',
34 'numpy',
35 'imageio',
36 ],
37)
38