forked from psd-tools/psd-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·75 lines (70 loc) · 2.24 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
69
70
71
72
73
74
75
#!/usr/bin/env python
from setuptools import setup, find_packages
from distutils.extension import Extension
import logging
import os
import sys
try:
from Cython.Build import cythonize
extension = cythonize(
[
Extension(
'psd_tools.compression._rle',
['src/psd_tools/compression/_rle.pyx']
)
],
language_level=sys.version_info[0],
)
except ImportError:
logging.error('Cython not found, no extension will be built.')
extension = []
def get_version():
"""
Get package version.
"""
curdir = os.path.dirname(__file__)
filename = os.path.join(curdir, 'src', 'psd_tools', 'version.py')
with open(filename, 'r') as fp:
return fp.read().split('=')[1].strip(" \r\n'")
setup(
name='psd-tools',
version=get_version(),
author='Kota Yamaguchi',
author_email='[email protected]',
url='https://github.com/psd-tools/psd-tools',
description='Python package for working with Adobe Photoshop PSD files',
long_description=(
open('README.rst').read() + "\n\n" + open('CHANGES.rst').read()
),
license='MIT License',
install_requires=[
'docopt>=0.5',
'attrs>=19.2.0',
'Pillow>=6.2.0',
'enum34;python_version<"3.4"',
'aggdraw',
'numpy',
'scipy',
'scikit-image',
],
keywords="photoshop psd pil pillow",
package_dir={'': 'src'},
packages=find_packages('src'),
ext_modules=extension,
entry_points={'console_scripts': ['psd-tools=psd_tools.__main__:main']},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Multimedia :: Graphics',
'Topic :: Multimedia :: Graphics :: Viewers',
'Topic :: Multimedia :: Graphics :: Graphics Conversion',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)