This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (51 loc) · 1.48 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
"""
dplaapi
~~~~~~~
A web API for querying the Digital Public Library of America's metadata
"""
import re
import sys
import ast
from setuptools import setup, find_packages
if sys.version_info.major != 3 and sys.version_info.minor != 6 \
and sys.version_info.micro != 6:
print('Python 3.6.6 required.', file=sys.stderr)
exit(1)
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('dplaapi/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(name='dplaapi',
version=version,
description='Digital Public Library of America web API',
long_description=__doc__,
url='https://pro.dp.la/developers/api-codex',
project_urls={
'Source Code': 'https://github.com/dpla/dplaapi'
},
author='DPLA Tech Team',
author_email='[email protected]',
packages=find_packages(),
scripts=['bin/devapi'],
install_requires=[
'starlette~=0.7.0',
'apistar~=0.6.0',
'uvicorn~=0.8.6',
'gunicorn~=19.9.0',
'peewee~=3.6.0',
'psycopg2-binary~=2.7.5',
'boto3~=1.8.6',
'cachetools~=2.1.0'
],
extras_require={
'dev': [
'pytest~=3.7.2',
'pytest-asyncio~=0.9.0',
'pytest-cov~=2.5.1',
'pytest-mock~=1.10.0',
'flake8~=3.5.0',
'coverage~=4.5.1',
'codacy-coverage~=1.3.11'
]
},
license='MIT')