Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: testing

on:
push:
branches: [main]

pull_request:
branches: [main]
Expand All @@ -21,9 +22,9 @@ jobs:

- name: Install dependencies & package
run: |
python -m pip install --upgrade pip
pip install .[strict,tests,dev]
pip install .
python -m pip install --upgrade pip setuptools
pip freeze
pip install -e .[strict,tests,dev]

- name: Lint
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
additional_dependencies: [black]
exclude: README.md
- repo: https://github.com/pycqa/isort
rev: 5.11.4
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

This is an example add-on package for [atomate2](https://github.com/materialsproject/atomate2).

It is heavily based on
the equivalent [add-on template for pymatgen](https://github.com/materialsproject/pymatgen-addon-template).
It is heavily based on the equivalent
[add-on template for pymatgen](https://github.com/materialsproject/pymatgen-addon-template).

## License

Expand Down
17 changes: 7 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[build-system]
requires = ["setuptools >= 42", "versioningit ~= 1.0", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["hatchling", "hatch-vcs >= 0.3.0"]
build-backend = "hatchling.build"

[tools.setuptools]
packages = ["atomate2.myaddon"]
[tools.setuptools.find]
where = ["src"]
[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "_version.py"

[project]
name = "atomate2-myaddon"
Expand Down Expand Up @@ -42,10 +43,6 @@ strict = ["atomate2[strict]"]
[project.urls]
repository = "https://github.com/matgenix/atomate2-addon-template"

[tool.versioningit.vcs]
method = "git"
default-tag = "0.0.1"

[tool.isort]
profile = "black"

Expand Down
1 change: 1 addition & 0 deletions src/atomate2/myaddon/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from atomate2.myaddon._version import __version__