mirror of https://github.com/saimn/sigal.git
7 changed files with 59 additions and 90 deletions
@ -1,55 +1,7 @@
|
||||
import os |
||||
import sys |
||||
from setuptools import setup, find_packages |
||||
from setuptools import setup |
||||
|
||||
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='contact@saimon.org', |
||||
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', |
||||
], |
||||
) |
||||
setup() |
||||
|
||||
@ -1,26 +0,0 @@
|
||||
# Copyright (c) 2013-2018 - Simon Conseil |
||||
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to |
||||
# deal in the Software without restriction, including without limitation the |
||||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
||||
# sell copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
|
||||
# The above copyright notice and this permission notice shall be included in |
||||
# all copies or substantial portions of the Software. |
||||
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS |
||||
# IN THE SOFTWARE. |
||||
|
||||
__title__ = 'sigal' |
||||
__author__ = 'Simon Conseil' |
||||
__version__ = '2.0' |
||||
__license__ = 'MIT' |
||||
__url__ = 'https://github.com/saimn/sigal' |
||||
__all__ = ['__title__', '__author__', '__version__', '__license__', '__url__'] |
||||
Loading…
Reference in new issue