1from setuptools import setup, find_packages
2import logging
3logger = logging.getLogger(__name__)
4
5version = '2.4.0'
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 (vector) images and animations. Drawsvg can also render to PNG, MP4, and display your drawings in Jupyter notebook and Jupyter lab.',
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', 'animation'],
26 classifiers = [
27 'License :: OSI Approved :: MIT License',
28 'Programming Language :: Python :: 3',
29 'Framework :: IPython',
30 'Framework :: Jupyter',
31 ],
32 install_requires = [
33 ],
34 extras_require = {
35 'raster': [
36 'cairoSVG~=2.3',
37 'numpy~=1.16',
38 'imageio~=2.5',
39 'imageio_ffmpeg~=0.4',
40 ],
41 'color': [
42 'pwkit~=1.0',
43 'numpy~=1.16',
44 ],
45 'all': [
46 'cairoSVG~=2.3',
47 'numpy~=1.16',
48 'imageio~=2.5',
49 'imageio_ffmpeg~=0.4',
50 'pwkit~=1.0',
51 ],
52 },
53)
54