Skip to content

Commit 62057e2

Browse files
committed
fix
1 parent e7e2a2e commit 62057e2

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

cli/setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import os
44
import configparser
5-
from setuptools import setup
5+
from setuptools import setup, find_packages
66

77
# 1) Load the same shared INI file from the parent directory
88
cfg = configparser.ConfigParser()
@@ -11,12 +11,20 @@
1111
# 2) Extract metadata
1212
metadata = cfg["metadata"]
1313
options = cfg["options"]
14+
entry_points = {
15+
"console_scripts": [
16+
line.strip()
17+
for line in cfg["options.entry_points"]["console_scripts"].splitlines()
18+
if line.strip()
19+
]
20+
}
1421

1522
# 3) Call setuptools.setup() with that metadata
1623
setup(
1724
name=metadata["name"],
1825
version=metadata["version"],
1926
description=metadata["description"],
2027
python_requires=options["python_requires"],
21-
entry_points={"console_scripts":["aligncount = entrypoint:main"]},
28+
packages=find_packages(where=os.path.join(os.path.dirname(__file__), "..")),
29+
entry_points=entry_points,
2230
)

conda-recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ outputs:
8888
# pure-Python wrapper) into the test environment, so the
8989
# test can import it.
9090
source_files:
91-
- ../tests/python/test_cli.py
91+
- ../../tests/python/*.py
9292

9393
# Invoke pytest on the copied file(s).
9494
commands:

0 commit comments

Comments
 (0)