forked from pacifica/python-jsonpath2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (27 loc) · 1007 Bytes
/
Copy pathsetup.py
File metadata and controls
29 lines (27 loc) · 1007 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Setup the python package for jsonpath2."""
from os import path
try: # pip version 9
from pip.req import parse_requirements
except ImportError:
from pip._internal.req import parse_requirements
from setuptools import setup, find_packages
# parse_requirements() returns generator of pip.req.InstallRequirement objects
INSTALL_REQS = parse_requirements('requirements.txt', session='hack')
setup(
name='jsonpath2',
use_scm_version=True,
setup_requires=['setuptools_scm'],
license='LGPLv3',
url='https://github.com/pacifica/python-jsonpath2/',
description='JSONPath implementation for Python',
long_description=open(path.join(
path.abspath(path.dirname(__file__)),
'README.md'), encoding='utf-8').read(),
long_description_content_type='text/markdown',
author='Mark Borkum',
author_email='mark.borkum@pnnl.gov',
packages=find_packages(),
install_requires=[str(ir.req) for ir in INSTALL_REQS]
)