-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Update Python Plugin Generation File Structure (#989)
Signed-off-by: Joey Kleingers <[email protected]>
- Loading branch information
1 parent
baf9702
commit 40512e3
Showing
8 changed files
with
208 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/Plugins/SimplnxCore/src/SimplnxCore/utils/PythonPluginMetaTemplate.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{% set name = "simplnx.#PLUGIN_NAME#" %} | ||
{% set version = "1.0.0" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
- path: ../ | ||
folder: #PLUGIN_NAME# | ||
|
||
build: | ||
noarch: python | ||
script: {{ PYTHON }} -m pip install ./#PLUGIN_NAME# -vv --no-deps --no-build-isolation | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- python >=3.10 | ||
- pytest | ||
- pip | ||
- hatchling | ||
run: | ||
- python >=3.10 | ||
|
||
test: | ||
imports: | ||
- #PLUGIN_NAME# | ||
commands: | ||
- pip check | ||
requires: | ||
- pip | ||
|
||
about: | ||
home: https://www.dream3d.io/ | ||
license: BSD | ||
summary: DREAM3D-NX consists of data analysis tools (Filters) that allow for the construction of customized workflows (Pipelines) to analyze data. | ||
|
17 changes: 17 additions & 0 deletions
17
src/Plugins/SimplnxCore/src/SimplnxCore/utils/PythonPluginPyProjectTemplate.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/#PLUGIN_NAME#"] | ||
|
||
[project] | ||
name = "simplnx.#PLUGIN_NAME#" | ||
version = "1.0.0" | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"numpy" | ||
] | ||
|
||
[project.entry-points."simplnx.plugins"] | ||
plugin = "#PLUGIN_NAME#" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.