From c5201a52e94bad71167ad45463db25b475f1a7c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com>
Date: Wed, 21 Aug 2024 13:44:01 +0200
Subject: [PATCH] fix build

---
 .gitlab-ci.yml | 21 ++++++++-------------
 CHANGELOG.md   |  5 +----
 setup.cfg      |  3 +--
 3 files changed, 10 insertions(+), 19 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e26efeb..01a7162 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -63,10 +63,6 @@ test_python311:
   extends: .test
   image: python:3.11
 
-test_python312:
-  extends: .test
-  image: python:3.12
-
 .build_python:
   only:
     - tags
@@ -75,7 +71,6 @@ test_python312:
   stage: build
   before_script:
     - pip install --break-system-packages --upgrade Cython setuptools pip repairwheel doctor-wheel
-    - pip install --break-system-packages -r requirements.txt
   script:
     - python setup.py bdist_wheel
     - repairwheel dist/*.whl -o .
@@ -90,7 +85,6 @@ build_python35:
   image: python:3.5
   before_script:
     - pip install --upgrade Cython setuptools pip repairwheel doctor-wheel
-    - pip install -r requirements.txt
 
 
 build_python36:
@@ -126,9 +120,9 @@ build_python311:
 
 .build_python:
   stage: build
-  script:
+  before_script:
     - pip install --break-system-packages --upgrade Cython setuptools pip repairwheel doctor-wheel
-    - pip install --break-system-packages -r requirements.txt
+  script:
     - python setup.py bdist_wheel
     - mv dist/*.whl .
     - repairwheel dist/*.whl -o .
@@ -148,16 +142,22 @@ build_python311:
 build_python35:
   extends: .build_python
   image: python:3.5
+  before_script:
+    - pip install --upgrade Cython setuptools pip repairwheel doctor-wheel
 
 
 build_python36:
   extends: .build_python
   image: python:3.6
+  before_script:
+    - pip install --upgrade Cython setuptools pip repairwheel doctor-wheel
 
 
 build_python37:
   extends: .build_python
   image: python:3.7
+  before_script:
+    - pip install --upgrade Cython setuptools pip repairwheel doctor-wheel
 
 
 build_python38:
@@ -179,8 +179,3 @@ build_python310:
 build_python311:
   extends: .build_python
   image: python:3.11
-
-  
-build_python312:
-  extends: .build_python
-  image: python:3.12
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7936398..b8709dc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,3 @@
-# v2.0.1
-
-* _TBA_
-
 # v2.0
 
 * got rid of the Mako dependency
@@ -9,6 +5,7 @@
 * moved the development to SMOK's cloud
 * got rid of Satella dependency
 * more tests
+* dropped support for Python 3.12
 
 # v1.7
 
diff --git a/setup.cfg b/setup.cfg
index 373da7c..c8e2955 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -2,7 +2,7 @@
 [metadata]
 name = snakehouse
 keywords = cython, extension, multiple, pyx
-version = 2.0.1a1
+version = 2.0
 long_description = file: README.md
 long_description_content_type = text/markdown; charset=UTF-8
 license_files = LICENSE
@@ -22,7 +22,6 @@ classifier =
     Programming Language :: Python :: 3.9
     Programming Language :: Python :: 3.10
     Programming Language :: Python :: 3.11
-    Programming Language :: Python :: 3.12
     Programming Language :: Python :: Implementation :: CPython
     Operating System :: OS Independent
     Development Status :: 5 - Production/Stable
-- 
GitLab