forked from adrian-soto/mock-request
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (26 loc) · 915 Bytes
/
setup.py
File metadata and controls
30 lines (26 loc) · 915 Bytes
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
#!/usr/bin/env python
import re
import ast
from os import path
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
PACKAGE_NAME = 'mock_request'
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, 'README.md'), encoding='utf-8') as fp:
README = fp.read()
with open(path.join(HERE, PACKAGE_NAME, '__init__.py'), 'rb') as fp:
VERSION = str(ast.literal_eval(_version_re.search(
fp.read().decode('utf-8')).group(1)))
setup(
name=PACKAGE_NAME,
version=VERSION,
packages=[PACKAGE_NAME],
install_requires=["pandas", "requests"],
description="mock API requests using pickled request objects",
long_description=README,
long_description_content_type='text/markdown',
author='Adrián Soto',
maintainer='Adrián Soto',
url='https://github.com/adrian-soto/mock-request',
classifiers=["Programming Language :: Python :: 3"]
)