Skip to content

Commit bb9d976

Browse files
authored
Update setup.py
removed (unnecessary) deprecated pkg_resources
1 parent dcba3cb commit bb9d976

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

setup.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
import pkg_resources
3+
44
from setuptools import setup, find_packages
55

66
setup(
@@ -11,10 +11,9 @@
1111
author="OpenAI",
1212
packages=find_packages(exclude=["tests*"]),
1313
install_requires=[
14-
str(r)
15-
for r in pkg_resources.parse_requirements(
16-
open(os.path.join(os.path.dirname(__file__), "requirements.txt"))
17-
)
14+
line.strip()
15+
for line in open(os.path.join(os.path.dirname(__file__), "requirements.txt"))
16+
if line.strip() and not line.startswith("#")
1817
],
1918
include_package_data=True,
2019
extras_require={'dev': ['pytest']},

0 commit comments

Comments
 (0)