forked from algoo/preview-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
64 lines (54 loc) · 1.67 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
# -*- coding: utf-8 -*-
# python setup.py sdist upload -r pypi
try:
import logging
import multiprocessing
import os
except:
pass
import sys
py_version = sys.version_info[:2]
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
try:
documentation = open(os.path.join(here, 'README.rst')).read()
except IOError:
documentation = ''
testpkgs = []
install_requires = ['python-magic', 'Wand', 'PyPDF2', 'Pillow']
if py_version <= (3, 5):
install_requires.append("typing")
setup(
name='preview_generator',
version='0.2.2',
description='A library for generating preview (thumbnails, text or json overview) for file-based content',
long_description=documentation,
author='Algoo',
author_email='contact@algoo.fr',
url='https://github.com/algoo/preview-generator',
download_url='https://github.com/algoo/preview-generator/archive/0.2.2.tar.gz',
keywords=['preview', 'preview_generator', 'thumbnail', 'cache'],
classifiers=[
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
packages=find_packages(exclude=['ez_setup']),
install_requires=install_requires,
python_requires='>= 3.4',
include_package_data=True,
test_suite='py.test', #TODO : change test_suite
tests_require=testpkgs,
package_data={
'preview_generator': [
'i18n/*/LC_MESSAGES/*.mo',
'templates/*/*',
'public/*/*'
]
}
)