Skip to content

Commit f6985c3

Browse files
authored
Update to version 1.3.1 (#179)
1 parent b756664 commit f6985c3

12 files changed

Lines changed: 58 additions & 19 deletions

File tree

.github/workflows/wheel.yml

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,43 @@ jobs:
156156
tag: ${{ github.ref }}
157157
overwrite: true
158158

159-
- name: Publish to PyPI
160-
if: ${{ github.event_name == 'release' }}
161-
uses: pypa/gh-action-pypi-publish@release/v1
162-
with:
163-
user: __token__
164-
password: ${{ secrets.PYPI_TOKEN }}
159+
publish-to-pypi:
160+
name: Publish to PyPI
161+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
162+
needs:
163+
- sdist
164+
- wheels
165+
runs-on: ubuntu-latest
166+
environment:
167+
name: pypi
168+
url: https://pypi.org/p/dftd3
169+
permissions:
170+
id-token: write # IMPORTANT: mandatory for trusted publishing
171+
172+
steps:
173+
- name: Download sdist
174+
uses: actions/download-artifact@v4
175+
with:
176+
name: dftd3-python-sdist
177+
path: dist/
178+
179+
- name: Download manylinux wheels
180+
uses: actions/download-artifact@v4
181+
with:
182+
name: dftd3-python-ubuntu-latest
183+
path: dist/
184+
185+
- name: Download windows wheels
186+
uses: actions/download-artifact@v4
187+
with:
188+
name: dftd3-python-windows-latest
189+
path: dist/
190+
191+
- name: Download osx wheels
192+
uses: actions/download-artifact@v4
193+
with:
194+
name: dftd3-python-macos-14
195+
path: dist/
196+
197+
- name: Publish distribution to PyPI
198+
uses: pypa/gh-action-pypi-publish@release/v1

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cmake_minimum_required(VERSION 3.14)
1919
project(
2020
"s-dftd3"
2121
LANGUAGES "Fortran"
22-
VERSION "1.3.0"
22+
VERSION "1.3.1"
2323
DESCRIPTION "Simple reimplementation of the DFT-D3 dispersion model"
2424
)
2525

doc/comparison.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ A list of projects currently using this DFT-D3 implementation is given here.
7070
All-electron electronic structure theory with numeric atom-centered orbitals.\ :footcite:`blum2009`
7171
`VASP <https://www.vasp.at/>`_: (since 6.6.0)
7272
The Vienna Ab initio Simulation Package: atomic scale materials modelling from first principles.\ :footcite:`kresse1999`
73+
`REST <https://gitee.com/RESTGroup/rest>`_:
74+
Rust-based Electronic Structure Toolkit is a next-generation electronic structure calculation platform
75+
developed by the Research Center for Chemical Theory (RCCT) at Fudan University.
76+
Provides Rust bindings in `dftd3-rs <https://github.com/RESTGroup/dftd3-rs>`_.
7377

7478
If your project is using *s-dftd3* feel free to add your project to this list.
7579

fpm.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name = "s-dftd3"
2-
version = "1.3.0"
2+
version = "1.3.1"
33
license = "LGPL-3.0-or-later"
44
maintainer = ["@awvwgk"]
55
author = ["Sebastian Ehlert"]
6-
copyright = "2019-2022 Sebastian Ehlert"
6+
copyright = "2019-2026 Sebastian Ehlert"
77
description = "Simple reimplementation of the DFT-D3 method"
88
keywords = ["dispersion-correction", "quantum-chemistry"]
99

1010
[dependencies]
1111
mctc-lib.git = "https://github.com/grimme-lab/mctc-lib"
12-
mctc-lib.tag = "v0.4.1"
12+
mctc-lib.tag = "v0.5.0"
1313

1414
[dev-dependencies]
1515
mstore.git = "https://github.com/grimme-lab/mstore"

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
project(
1818
's-dftd3',
1919
'fortran',
20-
version: '1.3.0',
20+
version: '1.3.1',
2121
license: 'LGPL-3.0-or-later',
2222
meson_version: '>=0.55,!=1.8.0',
2323
default_options: [

python/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Now you are ready to use ``dftd3``, check if you can import it with
222222
>>> import dftd3
223223
>>> from dftd3.library import get_api_version
224224
>>> get_api_version()
225-
'1.3.0'
225+
'1.3.1'
226226
227227
228228
Building the extension module

python/dftd3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
# make sure we have a CFFI available
1919
import cffi
2020

21-
__version__ = "1.3.0"
21+
__version__ = "1.3.1"

python/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
project(
2020
'dftd3',
2121
'c',
22-
version: '1.3.0',
22+
version: '1.3.1',
2323
license: 'LGPL-3.0-or-later',
2424
meson_version: '>=0.55,!=1.8.0',
2525
default_options: [

python/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "mesonpy"
99

1010
[project]
1111
name = "dftd3"
12-
version = "1.3.0"
12+
version = "1.3.1"
1313
description = "Python API of the DFT-D3 project"
1414
readme = "README.rst"
1515
license.text = "LGPL-3.0-or-later"
@@ -25,6 +25,7 @@ classifiers = [
2525
"Programming Language :: Python :: 3.11",
2626
"Programming Language :: Python :: 3.12",
2727
"Programming Language :: Python :: 3.13",
28+
"Programming Language :: Python :: 3.14",
2829
"Topic :: Scientific/Engineering :: Chemistry",
2930
"Topic :: Scientific/Engineering :: Physics",
3031
]

src/dftd3/version.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ module dftd3_version
2424

2525

2626
!> String representation of the s-dftd3 version
27-
character(len=*), parameter :: dftd3_version_string = "1.3.0"
27+
character(len=*), parameter :: dftd3_version_string = "1.3.1"
2828

2929
!> Numeric representation of the s-dftd3 version
30-
integer, parameter :: dftd3_version_compact(3) = [1, 3, 0]
30+
integer, parameter :: dftd3_version_compact(3) = [1, 3, 1]
3131

3232

3333
contains

0 commit comments

Comments
 (0)