From 1b9c552354e9f025c2fceacf06dcf1c90cc4ca15 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Sun, 29 Sep 2024 18:59:08 +0200
Subject: [PATCH] 3.1.1

---
 .gitlab-ci.yml | 16 ++++++++++++++++
 CHANGELOG.md   |  2 +-
 setup.cfg      |  2 +-
 3 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e56ce31..02d075a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -134,6 +134,22 @@ build_python312:
   image: python:3.12
 
 
+
+build_python3_sdist:
+  extends: .build_python
+  image: python:3.9
+  artifacts:
+    paths:
+      - "*.whl"
+  script:
+    - pip install --break-system-packages --upgrade Cython setuptools pip
+    - pip install --break-system-packages -r requirements.txt
+    - python setup.py sdist
+  after_script:
+    - pip install twine
+    - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi *.whl
+
+
 build_python311_armv7l:
   extends: .build_python
   image: zoo.smok.co/build/build:armv7l-python3.11
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e905dcf..d141d40 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,7 @@ Changelog
 v3.1.1
 ------
 
-* TBA
+* added source wheels to emitted packages so that they can be built on Windows as well
 
 v3.1.0
 ------
diff --git a/setup.cfg b/setup.cfg
index ca2d9fb..7b1f8ab 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,6 @@
 # coding: utf-8
 [metadata]
-version = 3.1.1a1
+version = 3.1.1
 name = minijson
 long_description = file: README.md
 long_description_content_type = text/markdown; charset=UTF-8
-- 
GitLab