-
Notifications
You must be signed in to change notification settings - Fork 87
/
setup.py
executable file
·42 lines (30 loc) · 1.01 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
import loris
import os
VERSION = loris.__version__
def local_file(name):
return os.path.relpath(os.path.join(os.path.dirname(__file__), name))
# We use requirements.txt so we can provide a deterministic set of packages
# to be installed, not the latest version that happens to be available.
# e.g. Pillow 5 has some issues with TIFF files that we care about.
with open('requirements.txt') as f:
install_requires = list(f)
def _read(fname):
return open(local_file(fname)).read()
setup(
name='Loris',
author='Jon Stroop',
author_email='[email protected]',
url='https://github.com/loris-imageserver/loris',
description = ('IIIF Image API 2.0 Level 2 compliant Image Server'),
long_description=_read('README.md'),
license='Simplified BSD',
version=VERSION,
packages=['loris'],
package_data={
'loris': ['data/*', 'data/www/*', 'data/www/icons/*'],
},
install_requires=install_requires,
)