-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (54 loc) · 1.8 KB
/
Copy pathsetup.py
File metadata and controls
64 lines (54 loc) · 1.8 KB
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
from setuptools import setup, find_packages
import os
import re
import sys
VERSION = "0.1.0"
PY3 = sys.version_info[0] == 3
HERE = os.path.dirname(os.path.abspath(__file__))
def get_version():
filename = os.path.join(HERE, 'validators', '__init__.py')
with open(filename) as f:
contents = f.read()
pattern = r"^__version__ = '(.*?)'$"
return re.search(pattern, contents, re.MULTILINE).group(1)
extras_require = {
"test": [
"pytest>=2.2.3",
"pillow>=3.4.2"
],
}
install_requires = [
"validators>=0.12.5"
]
setup(
name="imagevalidator",
version=get_version,
packages=find_packages('.', exclude=['tests', 'tests.*']),
description="A python library for easy validation of images.",
author="David Rose",
author_email="shirizaan@gmail.com",
license="MIT",
url="https://github.com/shirizaan/imagevalidator",
download_url="https://github.com/shirizaan/imagevalidator/tarball/{}".format(VERSION),
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=install_requires,
build_requires=install_requires,
extras_require=extras_require,
entry_points={},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules"
]
)