Skip to content

Commit 35d3580

Browse files
committed
♻️ Remove/replace AiiDA-related content
This repository was mirrored from a template for AiiDA plugin packages: https://github.com/mbercx/aiida-plugin-copier But we considered it useful to have a more generic Python package version of the template. Here we remove/replace all AiiDA-related references and content, to convert the template into a generic Python package one.
1 parent b8d345f commit 35d3580

File tree

15 files changed

+30
-38
lines changed

15 files changed

+30
-38
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-black.json)](https://github.com/copier-org/copier)
22

3-
# `aiida-plugin-copier`
3+
# `python-copier`
44

5-
Template for AiiDA plugin packages based on [`copier`](https://copier.readthedocs.io/en/latest/).
5+
Template for Python packages based on [`copier`](https://copier.readthedocs.io/en/latest/).
66

77
## Usage
88

99
Follow the [`copier` installation instructions](https://copier.readthedocs.io/en/latest/#installation).
1010
Then simply run
1111

1212
```
13-
copier copy https://github.com/mbercx/aiida-plugin-copier <plugin_name>
13+
copier copy https://github.com/mbercx/python-copier <package_name>
1414
```
1515

16-
And answer the questions to generate a new AiiDA plugin package.
16+
And answer the questions to generate a new Python package.

copier.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
plugin_name:
1+
package_name:
22
type: str
3-
help: 'What is the name of your plugin package?'
3+
help: 'What is the name of your Python package?'
44
default: '{{_folder_name }}'
55
description:
66
type: str
7-
help: 'Describe what your plugin package is for.'
8-
default: 'AiiDA plugin package'
7+
help: 'Describe what your Python package is for.'
8+
default: 'Python package'
99

1010
_subdirectory: template
1111
_message_after_copy: |
12-
The `{{plugin_name}}` package has been created successfully!
12+
The `{{package_name}}` package has been created successfully!

docs/design.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This pattern has a few advantages:
3535

3636
## Documentation
3737

38-
We use [MyST Markdown](https://mystmd.org/) for our AiiDA plugin package documentation.
38+
We use [MyST Markdown](https://mystmd.org/) for our Python package documentation.
3939
We want to use a Markdown-based documentation tool for simplicity, avoiding Sphinx' reStructuredText format.
4040
The main reason to use this over [MkDocs](https://www.mkdocs.org/) to test the Jupyter notebook integration, especially the "executable content".
4141
MyST is also easy to integrate with Sphinx, which has a lot of powerful tools, especially for scientific software.

docs/developer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
!!! Info
44

5-
Just to clarify: this guide is for developers of the `copier` template, not AiiDA plugin package developers.
5+
Just to clarify: this guide is for developers of the `copier` template, not Python package developers.
66

77
This template package uses several [Hatch environments](https://hatch.pypa.io/latest/environment/) to execute developer tasks or "scripts".
88
To see the environments and their corresponding scripts, run:
@@ -21,7 +21,7 @@ The default Hatch environment defines a set of scripts related to the template,
2121

2222
hatch run copy <target_directory>
2323

24-
Will copy the fully rendered template as the `aiida-test` package in the `<target_directory>`.
24+
Will copy the fully rendered template as the `py-package` package in the `<target_directory>`.
2525
Other scripts for the default environment:
2626

2727
* `check`: Copy/Update the template in the `.tmp` directory and check the rendered files by linting them with `hatch fmt -l`.

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Getting Started
22

3-
A `copier`-based template for AiiDA plugin packages.
3+
A `copier`-based template for Python packages.
44

55
## Usage
66

77
Follow the [`copier` installation instructions](https://copier.readthedocs.io/en/latest/#installation).
88
Then simply run
99

1010
```
11-
copier copy https://github.com/mbercx/aiida-plugin-copier <plugin_name>
11+
copier copy https://github.com/mbercx/python-copier <package_name>
1212
```
1313

14-
And answer the questions to generate a new AiiDA plugin package.
14+
And answer the questions to generate a new Python package.

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
site_name: AiiDA-plugin-copier
1+
site_name: Python copier
22
theme:
33
name: material
44
markdown_extensions:

pyproject.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
[tool.hatch.envs.default]
22
dependencies = [
33
"copier",
4-
"uv"
4+
"uv",
5+
"mystmd"
56
]
67
scripts.copy = [
7-
"copier copy --vcs-ref=HEAD . {args:.tmp/aiida-test} -f",
8+
"copier copy --vcs-ref=HEAD . {args:.tmp/py-package} -f",
89
]
910
scripts.install = [
10-
"copier copy --vcs-ref=HEAD . .tmp/aiida-test -f",
11-
"uv pip install .tmp/aiida-test",
11+
"copier copy --vcs-ref=HEAD . .tmp/py-package -f",
12+
"uv pip install .tmp/py-package",
1213
]
1314
scripts.check = [
14-
"copier copy --vcs-ref=HEAD . .tmp/aiida-test -f",
15-
"hatch fmt -l --check .tmp/aiida-test",
15+
"copier copy --vcs-ref=HEAD . .tmp/py-package -f",
16+
"hatch fmt -l --check .tmp/py-package",
1617
]
1718
scripts.docs = [
18-
"copier copy --vcs-ref=HEAD . .tmp/aiida-test -f",
19-
"cd .tmp/aiida-test/docs && myst start",
19+
"copier copy --vcs-ref=HEAD . .tmp/py-package -f",
20+
"cd .tmp/py-package/docs && myst start",
2021
]
2122
scripts.clean = [
2223
"ruff clean",

template/README.md.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# `{{plugin_name}}`
1+
# `{{package_name}}`
22

33
{{description}}

template/docs/img/aiida-icon.ico

-15 KB
Binary file not shown.

template/docs/img/aiida-logo.svg

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)