forked from saimn/sigal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (51 loc) · 1.8 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
import os
import sys
from setuptools import setup, find_packages
if sys.version_info[:2] < (3, 5):
sys.exit('Sigal supports Python 3.5+ only')
with open('README.rst') as f:
README = f.read()
# Load package meta from the pkgmeta module without loading the package.
pkgmeta = {}
pkgmeta_file = os.path.join(os.path.dirname(__file__), 'sigal', 'pkgmeta.py')
with open(pkgmeta_file) as f:
code = compile(f.read(), 'pkgmeta.py', 'exec')
exec(code, pkgmeta)
setup(
name='sigal',
version=pkgmeta['__version__'],
url=pkgmeta['__url__'],
license='MIT',
author=pkgmeta['__author__'],
author_email='[email protected]',
description='Simple static gallery generator',
long_description=README,
packages=find_packages(exclude=['tests*']),
zip_safe=False,
include_package_data=True,
platforms='any',
python_requires='>=3.5',
keywords=['gallery', 'static', 'generator', 'image', 'video', 'galleria'],
install_requires=['blinker', 'click', 'Jinja2', 'Markdown',
'Pillow>=4.0.0', 'pilkit'],
tests_require=['pytest'],
extras_require={
'all': ['boto', 'brotli', 'feedgenerator', 'zopfli']
},
entry_points={
'console_scripts': ['sigal = sigal:main']
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Multimedia :: Graphics :: Viewers',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)