Skip to content

Commit

Permalink
adjusting setup.py for GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
BSd3v committed Oct 9, 2024
1 parent 5807125 commit 99884e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions requires-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dash>=2
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

package_name = package["name"].replace(" ", "_").replace("-", "_")

def read_req_file(req_type):
with open(f"requires-{req_type}.txt", encoding="utf-8") as fp:
requires = (line.strip() for line in fp)
return [req for req in requires if req and not req.startswith("#")]

setup(
name=package_name,
url=package["homepage"],
Expand All @@ -18,7 +23,10 @@
include_package_data=True,
license=package["license"],
description=package.get("description", package_name),
install_requires=[],
install_requires=read_req_file("install"),
extras_require={
"dev": read_req_file("dev"),
},
classifiers=[
"Framework :: Dash",
"Framework :: Flask",
Expand Down

0 comments on commit 99884e2

Please sign in to comment.