Skip to content
Snippets Groups Projects
Unverified Commit 671026da authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix

parent dbf39434
No related branches found
No related tags found
No related merge requests found
...@@ -43,3 +43,39 @@ test_python310: ...@@ -43,3 +43,39 @@ test_python310:
test_python311: test_python311:
extends: .test_python extends: .test_python
image: python:3.11 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
...@@ -453,7 +453,7 @@ cdef class TimeSeries: ...@@ -453,7 +453,7 @@ cdef class TimeSeries:
:raises ValueError: Timestamp not larger than previous timestamp or invalid block size :raises ValueError: Timestamp not larger than previous timestamp or invalid block size
:raises InvalidState: the resource is closed :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: if data_len > self.block_size:
raise ValueError('Data too long') raise ValueError('Data too long')
data = data + b'\x00'*(self.block_size - data_len) data = data + b'\x00'*(self.block_size - data_len)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment