From c76e72831b2853391d1f0a52a4156a4b2603ba13 Mon Sep 17 00:00:00 2001 From: Guillaume Fraux Date: Wed, 11 Dec 2024 16:22:49 +0100 Subject: [PATCH 1/2] Release featomic-torch v0.6.0-rc1 --- featomic-torch/VERSION | 2 +- featomic-torch/tests/cmake-project/CMakeLists.txt | 2 +- python/featomic_torch/build-backend/backend.py | 2 +- python/featomic_torch/setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/featomic-torch/VERSION b/featomic-torch/VERSION index 77d6f4ca2..e54f09939 100644 --- a/featomic-torch/VERSION +++ b/featomic-torch/VERSION @@ -1 +1 @@ -0.0.0 +0.6.0-rc1 diff --git a/featomic-torch/tests/cmake-project/CMakeLists.txt b/featomic-torch/tests/cmake-project/CMakeLists.txt index 322c31e6a..dc6a4a98d 100644 --- a/featomic-torch/tests/cmake-project/CMakeLists.txt +++ b/featomic-torch/tests/cmake-project/CMakeLists.txt @@ -6,7 +6,7 @@ project(featomic-torch-test-cmake-project CXX) # We need to update the REQUIRED_FEATOMIC_VERSION in the same way we update the # featomic version for dev builds include(../../cmake/dev-versions.cmake) -set(REQUIRED_FEATOMIC_TORCH_VERSION "0.0.0") +set(REQUIRED_FEATOMIC_TORCH_VERSION "0.6.0-rc1") create_development_version("${REQUIRED_FEATOMIC_TORCH_VERSION}" FEATOMIC_TORCH_FULL_VERSION "featomic-torch-v") string(REGEX REPLACE "([0-9]*)\\.([0-9]*).*" "\\1.\\2" REQUIRED_FEATOMIC_TORCH_VERSION ${FEATOMIC_TORCH_FULL_VERSION}) find_package(featomic_torch ${REQUIRED_FEATOMIC_TORCH_VERSION} REQUIRED) diff --git a/python/featomic_torch/build-backend/backend.py b/python/featomic_torch/build-backend/backend.py index fb8fdfb4d..eff280bd6 100644 --- a/python/featomic_torch/build-backend/backend.py +++ b/python/featomic_torch/build-backend/backend.py @@ -22,7 +22,7 @@ FEATOMIC_DEP = f"featomic @ file://{FEATOMIC_SRC}" else: # we are building from a sdist - FEATOMIC_DEP = "featomic >=0.1.0.dev0,<0.2.0" + FEATOMIC_DEP = "featomic >=0.6.0.rc1,<0.7.0" FORCED_TORCH_VERSION = os.environ.get("FEATOMIC_TORCH_BUILD_WITH_TORCH_VERSION") if FORCED_TORCH_VERSION is not None: diff --git a/python/featomic_torch/setup.py b/python/featomic_torch/setup.py index 3d80532db..0112f0872 100644 --- a/python/featomic_torch/setup.py +++ b/python/featomic_torch/setup.py @@ -354,7 +354,7 @@ def create_version_number(version): install_requires.append(f"featomic @ file://{FEATOMIC_PYTHON_SRC}") else: # we are building from a sdist/installing from a wheel - install_requires.append("featomic >=0.1.0.dev0,<0.2.0") + install_requires.append("featomic >=0.6.0.rc1,<0.7.0") setup( version=version, From cf12d41d6ea17d4c69860db5abad75933be238c3 Mon Sep 17 00:00:00 2001 From: Guillaume Fraux Date: Mon, 9 Dec 2024 17:28:50 +0100 Subject: [PATCH 2/2] Make sure to include the sdist in the releases --- .github/workflows/build-wheels.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 38ea30b00..499474303 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -306,11 +306,11 @@ jobs: - name: build featomic sdist run: | pip install build - python -m build --sdist python/featomic + python -m build --sdist python/featomic --outdir ./dist/ - name: build featomic-torch sdist run: | - python -m build --sdist python/featomic_torch + python -m build --sdist python/featomic_torch --outdir ./dist/ - name: create C++ tarballs run: |