-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
85 lines (76 loc) · 2.29 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
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
from setuptools import find_packages, setup
MODULE_NAME="original"
def get_version():
""" Reads project version from module. """
with open(os.path.join(
os.path.dirname(__file__), MODULE_NAME, '__init__.py')
) as init:
for line in init.readlines():
res = re.match(r'^__version__ = [\'"](.*)[\'"]$', line)
if res:
return res.group(1)
def get_long_description():
with open(os.path.join(
os.path.dirname(__file__), 'README.rst'
)) as readme, open(os.path.join(
os.path.dirname(__file__), 'CHANGES.rst'
)) as changes:
return readme.read() + '\n' + changes.read()
setup(
name='original',
version=get_version(),
description='Photo Gallery',
long_description=get_long_description(),
author='Gilles Dartiguelongue',
author_email='[email protected]',
url='https://github.com/EvaSDK/original',
packages=find_packages(),
package_data={
'original': [
'templates/*',
'translations/*/LC_MESSAGES/*.mo',
],
},
install_requires=[
'flask',
'flask-babel',
'flask-classful',
'flask-wtf',
'pastedeploy',
'pillow',
'rq',
],
extras_require={
':python_version=="2.7"': ['backports.tempfile'],
},
tests_require=[
'factory_boy',
],
classifiers=[
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Framework :: Flask',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
],
entry_points={
'console_scripts': [
'original-thumbnails = original.cli:do_thumbnails',
],
'paste.app_factory': [
'main=original.app:app_factory',
],
},
)