File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ All tasks will be inserted into the `pydra.tasks.<yourtaskpackagename>` namespac
13
13
1 . One of the folders is called TODO. This should also be renamed to your package
14
14
name.
15
15
1 . Add tasks to the ` pydra/tasks/<yourpackagename> ` folder.
16
+ 1 . An example subpackage is found in ` pydra/tasks/<yourpackagename>/utils ` .
17
+ You may wish to add tools to it or delete it.
16
18
1 . You may want to initialize a [ Sphinx] docs directory.
17
19
1 . ** Update this README after creating the new repository.**
18
20
Original file line number Diff line number Diff line change
1
+ """
2
+ This is a basic doctest demonstrating that subpackags can also be
3
+ imported.
4
+
5
+ >>> import pydra.tasks.TODO.utils
6
+ """
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ test_requires =
19
19
pytest-rerunfailures
20
20
codecov
21
21
22
- packages = pydra.tasks.%(subpackage)s
23
-
24
22
[options.extras_require]
25
23
doc =
26
24
packaging
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
import sys
3
3
4
- from setuptools import setup
4
+ from setuptools import setup , find_namespace_packages
5
5
import versioneer
6
6
7
+ SUBPACKAGE = "TODO"
8
+
7
9
# Give setuptools a hint to complain if it's too old a version
8
10
# 30.3.0 allows us to put most metadata in setup.cfg
9
11
# Should match pyproject.toml
13
15
14
16
if __name__ == "__main__" :
15
17
setup (
16
- name = "pydra-TODO " ,
18
+ name = f "pydra-{ SUBPACKAGE } " ,
17
19
setup_requires = SETUP_REQUIRES ,
18
20
version = versioneer .get_version (),
19
21
cmdclass = versioneer .get_cmdclass (),
22
+ packages = find_namespace_packages (
23
+ include = (f"pydra.tasks.{ SUBPACKAGE } " , f"pydra.tasks.{ SUBPACKAGE } .*" )
24
+ ),
20
25
)
You can’t perform that action at this time.
0 commit comments