-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
68 lines (62 loc) · 1.74 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
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python
from setuptools import setup
import os
import sys
def get_version():
curdir = os.path.dirname(__file__)
filename = os.path.join(curdir, 'src', 'psd2svg', 'version.py')
with open(filename, 'rb') as fp:
return fp.read().decode('utf8').split('=')[1].strip(" \n'")
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='psd2svg',
version=get_version(),
description='Convert PSD file to SVG file',
long_description=readme(),
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Multimedia :: Graphics',
'Topic :: Multimedia :: Graphics :: Viewers',
'Topic :: Multimedia :: Graphics :: Graphics Conversion',
],
keywords='photoshop psd svg',
url='https://github.com/kyamagu/psd2svg',
author='Kota Yamaguchi',
author_email='KotaYamaguchi1984@gmail.com',
license='MIT License',
package_dir={'': 'src'},
packages=[
'psd2svg',
'psd2svg.converter',
'psd2svg.utils',
'psd2svg.rasterizer'
],
install_requires=[
'pillow',
'svgwrite',
'numpy',
'psd-tools>=1.8.11',
'future',
],
extras_require = {
'hdfs': [
'snakebite'],
'kerberos': [
'python-krbV',
'sasl'],
's3': [
'boto3']
},
include_package_data=True,
entry_points={
'console_scripts': ['psd2svg=psd2svg.__main__:main']
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
)