WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 32c98ca

Browse files
Switch from versioneer to hatchling (#360)
* Switch from versioneer to hatchling * Format black * fixes --------- Co-authored-by: pyiron-runner <[email protected]>
1 parent fd751e2 commit 32c98ca

File tree

11 files changed

+52
-746
lines changed

11 files changed

+52
-746
lines changed

.ci_support/environment-docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ dependencies:
99
- executorlib
1010
- ase
1111
- scipy
12-
- setuptools
12+
- hatchling
13+
- hatch-vcs
1314
- python =3.12

.ci_support/environment-mpich.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ dependencies:
99
- executorlib =1.6.1
1010
- ase =3.25.0
1111
- scipy =1.16.0
12+
- hatchling
13+
- hatch-vcs

.ci_support/environment-old.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ dependencies:
88
- executorlib =1.2.0
99
- ase =3.23.0
1010
- scipy =1.9.3
11+
- hatchling
12+
- hatch-vcs

.ci_support/environment-openmpi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ dependencies:
99
- executorlib =1.6.1
1010
- ase =3.25.0
1111
- scipy =1.16.0
12+
- hatchling
13+
- hatch-vcs

.github/workflows/deploy.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ jobs:
2727
miniforge-version: latest
2828
condarc-file: .condarc
2929
environment-file: .ci_support/environment-openmpi.yml
30-
- name: Convert dependencies
30+
- name: Build
3131
run: |
3232
cp .ci_support/environment-old.yml environment.yml
3333
python .ci_support/release.py; cat pyproject.toml
34-
- name: Build
35-
shell: bash -l {0}
36-
run: |
37-
pip install versioneer[toml]==0.29
38-
python setup.py sdist bdist_wheel
34+
git update-index --assume-unchanged pyproject.toml pylammpsmpi/_version.py
35+
hatchling build -t sdist -t wheel
3936
- name: Publish distribution 📦 to PyPI
4037
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/pipeline.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ jobs:
5858
shell: bash -l {0}
5959
timeout-minutes: 5
6060
run: |
61-
pip install versioneer[toml]==0.29
6261
pip install . --no-deps --no-build-isolation
6362
coverage run
6463
coverage xml
@@ -83,7 +82,7 @@ jobs:
8382
- name: Setup
8483
shell: bash -l {0}
8584
run: |
86-
pip install versioneer[toml]==0.29 tomlkit
85+
pip install tomlkit
8786
python .ci_support/check.py
8887
cat pyproject.toml
8988
pip install . --no-deps --no-build-isolation
@@ -109,7 +108,6 @@ jobs:
109108
shell: bash -l {0}
110109
timeout-minutes: 5
111110
run: |
112-
pip install versioneer[toml]==0.29
113111
pip install . --no-deps --no-build-isolation
114112
python -m unittest discover tests
115113
@@ -133,7 +131,6 @@ jobs:
133131
shell: bash -l {0}
134132
timeout-minutes: 5
135133
run: |
136-
pip install versioneer[toml]==0.29
137134
pip install . --no-deps --no-build-isolation
138135
python -m unittest discover tests
139136
@@ -154,7 +151,6 @@ jobs:
154151
shell: bash -l {0}
155152
timeout-minutes: 5
156153
run: |
157-
pip install versioneer[toml]==0.29
158154
pip install . --no-deps --no-build-isolation
159155
python -m unittest discover tests
160156

binder/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ channels:
22
- conda-forge
33
dependencies:
44
- openmpi
5+
- hatchling
6+
- hatch-vcs
57
- numpy =2.3.1
68
- lammps =2024.08.29=*_mpi_openmpi_*
79
- mpi4py =4.1.0

pylammpsmpi/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1+
import pylammpsmpi._version
12
from pylammpsmpi.wrapper.base import LammpsBase
23
from pylammpsmpi.wrapper.concurrent import LammpsConcurrent
34
from pylammpsmpi.wrapper.extended import LammpsLibrary
45

5-
from ._version import get_versions
6-
76
__all__ = ["LammpsLibrary", "LammpsConcurrent", "LammpsBase"]
8-
__version__ = get_versions()["version"]
7+
__version__ = pylammpsmpi._version.__version__
98

109

1110
try:

0 commit comments

Comments
 (0)