Skip to content

Commit ac1d8ce

Browse files
committed
renamed TODO placeholder to CHANGEME and changed build system to hatch
1 parent 6dcb850 commit ac1d8ce

File tree

3 files changed

+29
-17
lines changed

3 files changed

+29
-17
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: Python package
88

99
# Set once
1010
env:
11-
SUBPACKAGE: TODO
11+
SUBPACKAGE: CHANGEME
1212

1313
on:
1414
push:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ All tasks will be inserted into the `pydra.tasks.<yourtaskpackagename>` namespac
88
1. Click on new repo.
99
1. Select this template from the repository template drop down list.
1010
1. Give your repo a name.
11-
1. Once the repo is created and cloned, search for TODO (`grep -rn TODO . `) and
11+
1. Once the repo is created and cloned, search for CHANGEME (`grep -rn CHANGEME . `) and
1212
replace with appropriate name.
13-
1. One of the folders is called TODO. This should also be renamed to your package
13+
1. One of the folders is called CHANGEME. This should also be renamed to your package
1414
name.
1515
1. Add tasks to the `pydra/tasks/<yourpackagename>` folder.
1616
1. An example subpackage is found in `pydra/tasks/<yourpackagename>/utils`.

pyproject.toml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[build-system]
2-
requires = ["flit_scm"]
3-
build-backend = "flit_scm:buildapi"
2+
requires = ["hatchling", "hatch-vcs"]
3+
build-backend = "hatchling.build"
44

55
[project]
6-
name = "pydra-tasks-TODO"
7-
description = "Description for pydra-tasks-TODO"
6+
name = "pydra-tasks-CHANGEME"
7+
description = "Pydra tasks package for CHANGEME"
88
readme = "README.md"
9-
requires-python = ">=3.7"
10-
dependencies = ["pydra >=0.20"]
9+
requires-python = ">=3.8"
10+
dependencies = ["pydra >=0.22"]
1111
license = {file = "LICENSE"}
1212
authors = [{name = "Nipype developers", email = "[email protected]"}]
1313
maintainers = [{name = "Nipype developers", email = "[email protected]"}]
@@ -46,16 +46,28 @@ test = [
4646
"codecov",
4747
]
4848

49-
[tool.flit.module]
50-
name = "pydra.tasks.TODO"
49+
[tool.hatch.version]
50+
source = "vcs"
5151

52-
[tool.flit.sdist]
53-
exclude = [".gitignore"]
52+
[tool.hatch.build.hooks.vcs]
53+
version-file = "pydra/tasks/CHANGEME/_version.py"
5454

55-
[tool.setuptools_scm]
56-
write_to = "pydra/tasks/TODO/_version.py"
55+
[tool.hatch.build.targets.wheel]
56+
packages = ["pydra"]
57+
include-only = ["pydra/tasks/CHANGEME"]
5758

5859
[tool.black]
59-
line-length = 99
60-
target-version = ["py37"]
60+
target-version = ["py38"]
6161
exclude = "_version.py"
62+
63+
[tool.codespell]
64+
ignore-words = ".codespell-ignorewords"
65+
66+
[tool.flake8]
67+
doctests = true
68+
per-file-ignores = [
69+
"__init__.py:F401"
70+
]
71+
max-line-length = 88
72+
select = "C,E,F,W,B,B950"
73+
extend-ignore = ['E203', 'E501', 'E129', 'W503']

0 commit comments

Comments
 (0)