Skip to content

Commit 7e02072

Browse files
authored
Update setup.py for latest version of PIP (#47)
Cannot install jsonPath2 on latest PIP version, its breaking due to a change in the parse_requirements import. updating to instead install the requirements in the setup.py
1 parent 46b8aa1 commit 7e02072

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

setup.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@
22
# -*- coding: utf-8 -*-
33
"""Setup the python package for jsonpath2."""
44
from os import path
5-
try: # pip version 9
6-
from pip.req import parse_requirements
7-
except ImportError:
8-
from pip._internal.req import parse_requirements
95
from setuptools import setup, find_packages
106

11-
# parse_requirements() returns generator of pip.req.InstallRequirement objects
12-
INSTALL_REQS = parse_requirements('requirements.txt', session='hack')
13-
147
setup(
158
name='jsonpath2',
169
use_scm_version=True,
@@ -25,5 +18,9 @@
2518
author='Mark Borkum',
2619
author_email='mark.borkum@pnnl.gov',
2720
packages=find_packages(),
28-
install_requires=[str(ir.req) for ir in INSTALL_REQS]
21+
install_requires=[
22+
'antlr4-python3-runtime==4.7.2',
23+
'setuptools',
24+
'six'
25+
]
2926
)

0 commit comments

Comments
 (0)