forked from IIIF/presentation-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (58 loc) · 1.93 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
"""Setup for iiif/presentation-validator."""
from setuptools import setup, Command
import os
import re
class Coverage(Command):
"""Class to allow coverage run from setup."""
description = "run coverage"
user_options = []
def initialize_options(self):
"""Empty initialize_options."""
pass
def finalize_options(self):
"""Empty finalize_options."""
pass
def run(self):
"""Run coverage program."""
os.system("coverage run --omit=tests/*,setup.py setup.py test")
os.system("coverage report")
os.system("coverage html")
print("See htmlcov/index.html for details.")
setup(
name='iiif-presentation-validator',
version='0.0.3',
scripts=['iiif-presentation-validator.py'],
classifiers=["Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
"Topic :: Software Development :: "
"Libraries :: Python Modules",
"Environment :: Web Environment"],
url='https://github.com/IIIF/presentation-validator',
description='Validator for the IIIF Presentation API',
long_description=open('README.md').read(),
install_requires=[
'bottle>=0.12.9',
'iiif_prezi>=0.2.2',
'jsonschema',
'jsonpath_rw',
'requests'
],
extras_require={
':python_version>="3.6"': ["Pillow>=3.2.0"],
},
test_suite="tests",
tests_require=[
"coverage",
"mock",
],
cmdclass={
'coverage': Coverage,
},
)