From 671026da06ca8f3eaecf1b34096de0eefaee27d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com> Date: Fri, 2 Aug 2024 11:24:52 +0200 Subject: [PATCH] fix --- .gitlab-ci.yml | 36 ++++++++++++++++++++++++++++++++++++ tempsdb/series.pyx | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d366216..d668077 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -43,3 +43,39 @@ test_python310: test_python311: extends: .test_python image: python:3.11 + + +.build_python: + only: + - master + stage: build + script: + - pip install --break-system-packages --upgrade Cython setuptools pip + - pip install --break-system-packages -r requirements.txt + - python setup.py bdist_wheel + - cp dist/*.whl . + artifacts: + paths: + - "*.whl" + +build_python38: + extends: .build_python + image: python:3.8 + +build_python39: + extends: .build_python + image: python:3.9 + + +build_python310: + extends: .build_python + image: python:3.10 + + +build_python38: + extends: .build_python + image: python:3.11 + +build_python311_armv7l: + extends: .build_python + image: zoo.smok.co/build/build:armv7l-python311 diff --git a/tempsdb/series.pyx b/tempsdb/series.pyx index 47ba142..f9701a0 100644 --- a/tempsdb/series.pyx +++ b/tempsdb/series.pyx @@ -453,7 +453,7 @@ cdef class TimeSeries: :raises ValueError: Timestamp not larger than previous timestamp or invalid block size :raises InvalidState: the resource is closed """ - cdef int data_len = len(data) + cdef unsigned int data_len = len(data) if data_len > self.block_size: raise ValueError('Data too long') data = data + b'\x00'*(self.block_size - data_len) -- GitLab