Skip to content

Commit f00dc02

Browse files
committed
Use pyproject.toml instead of deprecated setup.
1 parent cea23e4 commit f00dc02

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies = [
1313
"anacore == 2.12.1",
1414
"scikit-learn == 1.3.2"
1515
]
16-
dynamic = ["version"]
16+
dynamic = ["version", "scripts"]
1717
keywords = ["bio", "NGS"]
1818
license.text = "GNU GPL v3"
1919
name = "anacore-utils"
@@ -22,7 +22,4 @@ requires-python = ">=3.10"
2222

2323
[project.urls]
2424
Homepage = "https://github.com/bialimed/anacore-utils"
25-
Repository = "https://github.com/bialimed/anacore-utils"
26-
27-
[tool.setuptools.packages.find]
28-
where = ['bin']
25+
Repository = "https://github.com/bialimed/anacore-utils"

setup.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@ def get_version():
1414
return version
1515

1616

17+
def load_scripts(path):
18+
scripts = []
19+
for filename in os.listdir(path):
20+
filepath = os.path.join(path, filename)
21+
if os.path.isdir(filepath):
22+
if filename != "test":
23+
load_scripts(filepath)
24+
else:
25+
if filename.endswith(".py") and not filename.startswith("__"):
26+
scripts.append(filepath)
27+
print(scripts)
28+
return scripts
29+
30+
1731
setup(
1832
version=get_version(),
33+
scripts=load_scripts("bin")
1934
)

0 commit comments

Comments
 (0)