File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import os
44import 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
88cfg = configparser .ConfigParser ()
1111# 2) Extract metadata
1212metadata = cfg ["metadata" ]
1313options = 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
1623setup (
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)
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments