From 56f46608d5a11b52aa1a7852c68056e4d0d311a0 Mon Sep 17 00:00:00 2001 From: Milan Skocic Date: Sat, 18 Nov 2023 09:39:57 +0100 Subject: [PATCH 1/4] REL: Prepare new version. --- pywrapper/pycodata/version.py | 2 +- pywrapper/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pywrapper/pycodata/version.py b/pywrapper/pycodata/version.py index ca8ebf1..703dbc1 100644 --- a/pywrapper/pycodata/version.py +++ b/pywrapper/pycodata/version.py @@ -2,4 +2,4 @@ Version module. """ __all__ = ["__version__"] -__version__ = "0.8.1" +__version__ = "0.8.2" diff --git a/pywrapper/pyproject.toml b/pywrapper/pyproject.toml index 883b201..f644819 100644 --- a/pywrapper/pyproject.toml +++ b/pywrapper/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pycodata" -version = "0.8.1" +version = "0.8.2" authors = [{name = "Milan Skocic", email = "milan.skocic@icloud.com"}] description = "pycodata: CODATA constants for python." readme = "README.rst" From 04c61c7eeb0b842c2ee7b96ee8436da25b95a91e Mon Sep 17 00:00:00 2001 From: Milan Skocic Date: Sat, 18 Nov 2023 09:40:16 +0100 Subject: [PATCH 2/4] DOC: Add changelog for new version. --- .../sphinx/source/releases/0.8.2-notes.rst | 28 +++++++++++++++++++ fpm.toml | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 documentation/sphinx/source/releases/0.8.2-notes.rst diff --git a/documentation/sphinx/source/releases/0.8.2-notes.rst b/documentation/sphinx/source/releases/0.8.2-notes.rst new file mode 100644 index 0000000..440e142 --- /dev/null +++ b/documentation/sphinx/source/releases/0.8.2-notes.rst @@ -0,0 +1,28 @@ +Codata 0.8.2 Release Note +============================ + +Summary +--------------- + +* No API changes. +* Improve Makefile for generating the source code at each compilation. +* Source generator rewritten in Fortran. +* Switch to pyproject.toml for the Python wrapper. +* Minor fixes in documentation. + +Download +--------------- + +`Codata Releases `_ + +`PYPI `_ + + +Contributors +--------------- +Milan Skocic + +Commits +--------- + +**Full Changelog**: https://github.com/MilanSkocic/codata/compare/0.8.1...0.8.2 \ No newline at end of file diff --git a/fpm.toml b/fpm.toml index a523c91..ce1d69b 100644 --- a/fpm.toml +++ b/fpm.toml @@ -1,5 +1,5 @@ name = "codata" -version = "0.8.1" +version = "0.8.2" license = "GNU General Public License v3 (GPLv3)" author = "Milan Skocic" maintainer = "milan.skocic@icloud.com" From b58e11a7e3af1a8d83750b5c53eb32bc07d13b7e Mon Sep 17 00:00:00 2001 From: Milan Skocic Date: Sat, 18 Nov 2023 09:50:57 +0100 Subject: [PATCH 3/4] BLD: Update build scripts for pywrapper. --- pywrapper/build.bat | 17 +++++++++-------- pywrapper/build.sh | 15 ++++++++------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/pywrapper/build.bat b/pywrapper/build.bat index 395c2d5..7ec8ff0 100644 --- a/pywrapper/build.bat +++ b/pywrapper/build.bat @@ -1,21 +1,22 @@ rd /s /q build rd /s /q dist -rd /s /q pyiapws.egg-info -del .\pyiapws\*.pyd - -py -3.11 setup.py sdist +rd /s /q codata.egg-info +del .\codata\*.pyd py -3.8 setup.py build_ext --inplace py -3.9 setup.py build_ext --inplace py -3.10 setup.py build_ext --inplace py -3.11 setup.py build_ext --inplace +py -3.12 setup.py build_ext --inplace -py -3.8 setup.py bdist_wheel -py -3.9 setup.py bdist_wheel -py -3.10 setup.py bdist_wheel -py -3.11 setup.py bdist_wheel +py -3.8 -m build +py -3.9 -m build +py -3.10 -m build +py -3.11 -m build +py -3.12 -m build py -3.8 -m unittest -v py -3.9 -m unittest -v py -3.10 -m unittest -v py -3.11 -m unittest -v +py -3.12 -m unittest -v diff --git a/pywrapper/build.sh b/pywrapper/build.sh index 20accb7..fc780da 100755 --- a/pywrapper/build.sh +++ b/pywrapper/build.sh @@ -10,24 +10,25 @@ fi rm -r build rm -r dist rm -r *egg-info -rm ./pyiapws/g704*.so - -py311 setup.py sdist +rm ./pycodata/codata*.so py38 setup.py build_ext --inplace py39 setup.py build_ext --inplace py310 setup.py build_ext --inplace py311 setup.py build_ext --inplace +py312 setup.py build_ext --inplace -py38 setup.py bdist_wheel -py39 setup.py bdist_wheel -py310 setup.py bdist_wheel -py311 setup.py bdist_wheel +py38 -m build +py39 -m build +py310 -m build +py311 -m build +py312 -m build py38 -m unittest -v py39 -m unittest -v py310 -m unittest -v py311 -m unittest -v +py312 -m unittest -v if [[ "$OSTYPE" == "linux"* ]];then cd ./dist From c8db4b11d46de8587fa980ac1752e3ed54499fd9 Mon Sep 17 00:00:00 2001 From: Milan Skocic Date: Sat, 18 Nov 2023 10:06:58 +0100 Subject: [PATCH 4/4] BLD: Change build options for pywrapper. --- pywrapper/build.bat | 12 +++++++----- pywrapper/build.sh | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/pywrapper/build.bat b/pywrapper/build.bat index 7ec8ff0..f6738d3 100644 --- a/pywrapper/build.bat +++ b/pywrapper/build.bat @@ -9,11 +9,13 @@ py -3.10 setup.py build_ext --inplace py -3.11 setup.py build_ext --inplace py -3.12 setup.py build_ext --inplace -py -3.8 -m build -py -3.9 -m build -py -3.10 -m build -py -3.11 -m build -py -3.12 -m build +py -3.12 -m build --no-isolation --sdist + +py -3.8 -m build --no-isolation --wheel +py -3.9 -m build --no-isolation --wheel +py -3.10 -m build --no-isolation --wheel +py -3.11 -m build --no-isolation --wheel +py -3.12 -m build --no-isolation --wheel py -3.8 -m unittest -v py -3.9 -m unittest -v diff --git a/pywrapper/build.sh b/pywrapper/build.sh index fc780da..1ada57e 100755 --- a/pywrapper/build.sh +++ b/pywrapper/build.sh @@ -18,11 +18,13 @@ py310 setup.py build_ext --inplace py311 setup.py build_ext --inplace py312 setup.py build_ext --inplace -py38 -m build -py39 -m build -py310 -m build -py311 -m build -py312 -m build +py312 -m build --no-isolation --sdist + +py38 -m build --no-isolation --wheel +py39 -m build --no-isolation --wheel +py310 -m build --no-isolation --wheel +py311 -m build --no-isolation --wheel +py312 -m build --no-isolation --wheel py38 -m unittest -v py39 -m unittest -v