Skip to content

Commit

Permalink
Fix pip dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jxx123 committed Oct 27, 2023
1 parent 1ad65bf commit 5d19ec7
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
from setuptools import setup


def parse_requirements(filename):
"""Load requirements from a pip requirements file."""
with open(filename) as f:
lineiter = (line.strip() for line in f)
return [line for line in lineiter if line and not line.startswith("#")]


reqs = parse_requirements("requirements.txt")

setup(
name="simglucose",
version="0.2.8",
Expand All @@ -19,7 +9,15 @@ def parse_requirements(filename):
author_email="xjygr08@gmail.com",
license="MIT",
packages=["simglucose"],
install_requires=reqs,
install_requires=[
"gym==0.9.4",
"gymnasium~=0.29.1",
"pathos>=0.3.1",
"scipy>=1.11.0",
"matplotlib>=3.7.2",
"numpy>=1.25.0",
"pandas>=2.0.3",
],
include_package_data=True,
zip_safe=False,
long_description=open("README.md").read(),
Expand Down

0 comments on commit 5d19ec7

Please sign in to comment.