-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
72 lines (63 loc) · 2.03 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import re
from setuptools import setup, find_packages
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
with open("README.md") as f:
readme = f.read()
# Convert markdown to rst
try:
from pypandoc import convert
long_description = convert("README.md", "rst")
except: # NOQA
long_description = ""
version = ""
with open("wagtailaltgenerator/__init__.py", "r") as fd:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE
).group(1)
setup(
name="wagtailaltgenerator",
version=version,
description=(
"Insert image description and tags with the help of computer vision"
), # NOQA
long_description=long_description,
author="marteinn",
author_email="martin@marteinn.se",
url="https://github.com/marteinn/wagtail-alt-generator",
packages=find_packages(
exclude=("*.tests", "*.tests.*", "tests.*", "tests", "example*")
),
include_package_data=True,
install_requires=["requests", "wagtail>=1.12"],
extras_require={
"rekognition": ["boto3>=1.4,<1.5"],
"google_vision": ["google-api-python-client>=1.5.5"],
"google_translate": ["google-cloud-translate"],
},
license="MIT",
zip_safe=False,
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Natural Language :: English",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering :: Image Recognition",
"Framework :: Django",
"Framework :: Wagtail",
"Framework :: Wagtail :: 2",
"Topic :: Utilities",
],
)