forked from MinchinWeb/minchin.pelican.plugins.image_process
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (49 loc) · 1.87 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
import os
import re
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
base_dir = os.path.dirname(os.path.abspath(__file__))
def get_version(filename="minchin/pelican/plugins/image_process.py"):
with open(os.path.join(base_dir, filename), encoding="utf-8") as initfile:
for line in initfile.readlines():
m = re.match("__version__ *= *['\"](.*)['\"]", line)
if m:
return m.group(1)
setup(
name="minchin.pelican.plugins.image_process",
version=get_version(),
description="Pelican plugin for automating image processing. Written in Python.",
long_description="\n\n".join([open(os.path.join(base_dir, "README.rst")).read()]),
author="W. Minchin",
author_email="[email protected]",
url="https://github.com/MinchinWeb/minchin.pelican.plugins.image_process",
packages=find_packages(),
namespace_packages=['minchin',
'minchin.pelican',
'minchin.pelican.plugins',
],
include_package_data=True,
install_requires=[
'pillow',
'beautifulsoup4',
'six',
'pelican',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Framework :: Pelican :: Plugins',
],
)