Skip to content

Commit 94de69a

Browse files
committed
MNT: Move back to declarative package finding
1 parent 3b17036 commit 94de69a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

setup.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ test_requires =
1919
pytest-rerunfailures
2020
codecov
2121

22+
packages = find_namespace:
23+
24+
[options.packages.find]
25+
include =
26+
pydra.tasks.%(subpackage)s
27+
pydra.tasks.%(subpackage)s.*
28+
2229
[options.extras_require]
2330
doc =
2431
packaging

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
import sys
33

4-
from setuptools import setup, find_namespace_packages
4+
from setuptools import setup
55
import versioneer
66

77
SUBPACKAGE = "TODO"
@@ -19,7 +19,4 @@
1919
setup_requires=SETUP_REQUIRES,
2020
version=versioneer.get_version(),
2121
cmdclass=versioneer.get_cmdclass(),
22-
packages=find_namespace_packages(
23-
include=(f"pydra.tasks.{SUBPACKAGE}", f"pydra.tasks.{SUBPACKAGE}.*")
24-
),
2522
)

0 commit comments

Comments
 (0)