|
1 | 1 | [build-system]
|
2 | 2 | requires = [
|
3 | 3 | "jupyterlab>=3.0.0,==3.*",
|
4 |
| - "flit_core >=3.2,<4" |
| 4 | + "hatchling" |
5 | 5 | ]
|
6 |
| -build-backend = "buildapi" |
7 |
| -backend-path = ["."] |
| 6 | +build-backend = "hatchling.build" |
8 | 7 |
|
9 | 8 | [project]
|
10 | 9 | name = "ipyparallel"
|
| 10 | +version = "8.4.0.dev" |
11 | 11 | authors = [{ name = "IPython Development Team", email = "[email protected]"}]
|
12 | 12 | license = {file = "COPYING.md"}
|
13 | 13 | readme = "README.md"
|
@@ -48,7 +48,6 @@ dependencies = [
|
48 | 48 | "python-dateutil>=2.1",
|
49 | 49 | "tqdm",
|
50 | 50 | ]
|
51 |
| -dynamic = ["version"] |
52 | 51 |
|
53 | 52 | [project.entry-points."ipyparallel.controller_launchers"]
|
54 | 53 | batch = "ipyparallel.cluster.launcher:BatchControllerLauncher"
|
@@ -95,20 +94,22 @@ ipcluster = "ipyparallel.cluster.app:main"
|
95 | 94 | ipcontroller = "ipyparallel.controller.app:main"
|
96 | 95 | ipengine = "ipyparallel.engine.app:main"
|
97 | 96 |
|
98 |
| -[tool.flit.sdist] |
99 |
| -include = [ |
100 |
| - "benchmarks/", |
101 |
| - "docs/", |
102 |
| - "*.json", |
103 |
| - "yarn.lock", |
104 |
| - "jupyter-data/", |
105 |
| - "lab/", |
106 |
| - "buildapi.py", |
| 97 | +# Used to call hatch_build.py |
| 98 | +[tool.hatch.build.targets.wheel.hooks.custom] |
| 99 | +[tool.hatch.build.targets.sdist.hooks.custom] |
| 100 | + |
| 101 | +[tool.hatch.build] |
| 102 | +artifacts = [ |
| 103 | + "ipyparallel/**/*.*" |
| 104 | +] |
| 105 | +exclude = [ |
| 106 | + "lab/lib" |
107 | 107 | ]
|
108 |
| -exclude = ["lab/lib/"] |
109 | 108 |
|
110 |
| -[tool.flit.external-data] |
111 |
| -directory = "jupyter-data" |
| 109 | +[tool.hatch.build.targets.wheel.shared-data] |
| 110 | +"jupyter-config" = "etc/jupyter" |
| 111 | +"ipyparallel/nbextension/static" = "share/jupyter/nbextensions/ipyparallel" |
| 112 | +"ipyparallel/labextension" = "share/jupyter/labextensions/ipyparallel-labextension" |
112 | 113 |
|
113 | 114 | [tool.black]
|
114 | 115 | skip-string-normalization = true
|
@@ -139,7 +140,6 @@ filterwarnings = [
|
139 | 140 | "ignore:the imp module is:DeprecationWarning",
|
140 | 141 | ]
|
141 | 142 |
|
142 |
| - |
143 | 143 | [tool.tbump]
|
144 | 144 | # Uncomment this if your project is hosted on GitHub:
|
145 | 145 | github_url = "https://github.com/jupyterhub/jupyterhub"
|
@@ -172,6 +172,10 @@ tag_template = "{new_version}"
|
172 | 172 | src = "ipyparallel/_version.py"
|
173 | 173 | search = '__version__ = "{current_version}"'
|
174 | 174 |
|
| 175 | +[[tool.tbump.file]] |
| 176 | +src = "pyproject.toml" |
| 177 | +search = '"version" = "{current_version}"' |
| 178 | + |
175 | 179 | [[tool.tbump.file]]
|
176 | 180 | src = "package.json"
|
177 | 181 | search = '"version": "{current_version}"'
|
|
0 commit comments