-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
29 lines (23 loc) · 863 Bytes
/
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
import re
import ast
import pip.download
from pip.req import parse_requirements
from setuptools import setup, find_packages
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('dmapiclient/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
requirements = list(parse_requirements('requirements.txt', session=pip.download.PipSession()))
install_requires = [str(r.req) for r in requirements]
setup(
name='digitalmarketplace-apiclient',
version=version,
url='https://github.com/alphagov/digitalmarketplace-apiclient',
license='MIT',
author='GDS Developers',
description='Digital Marketplace Data and Search API clients',
long_description=__doc__,
packages=find_packages(),
include_package_data=True,
install_requires=install_requires
)