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

added GIL

parent c92d5abf
No related branches found
No related tags found
No related merge requests found
Pipeline #60956 passed with stages
in 4 minutes and 20 seconds
.git
build-me.sh
......@@ -6,16 +6,19 @@ pages:
stage: build
image: zoo.smok.co/build/build:pages
before_script:
- pip install --break-system-packages --upgrade Cython setuptools pip
- pip install --break-system-packages -r requirements.txt
- python setup.py build_ext --inplace
- pip3 install --break-system-packages --upgrade Cython setuptools pip
- pip3 install --break-system-packages -r requirements.txt
- python3 setup.py build_ext --inplace
script:
- cd docs
- make html
- cp _build/html public
- mv _build/html ../public
artifacts:
paths:
- "public"
only:
- master
needs: []
.test_python:
stage: test
......
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.9"
jobs:
pre_create_environment:
- pip install psutil Cython Sphinx
sphinx:
builder: html
configuration: docs/conf.py
FROM python:3.8
RUN apt-get update && \
apt-get install -y patchelf
RUN python -m pip install Cython pytest coverage pytest-cov
WORKDIR /tmp/compile
ADD . /tmp/compile/
ENV DEBUG=1
RUN python setup.py install && \
chmod ugo+x /tmp/compile/tests/test.sh
CMD ["/tmp/compile/tests/test.sh"]
#!/bin/bash
# Env to set:
# * PYPI_USER
# * PYPI_PWD
apt-get update
apt-get install -y patchelf
pip install auditwheel doctor-wheel twine cython
python setup.py bdist_wheel
cd dist
doctor-wheel "*.whl"
auditwheel repair --plat "manylinux2014_$(uname -m)" "*.whl"
twine upload -u $PYPI_USER -p $PYPI_PWD "wheelhouse/*.whl"
......@@ -10,9 +10,9 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import os
import sys
sys.path.insert(0, os.path.abspath('..'))
# -- Project information -----------------------------------------------------
......
......@@ -9,9 +9,9 @@ license_files =
LICENSE
author_email = piotr.maslanka@dronehub.ai
description = A library for serializing JSON in a small binary format
url = https://github.com/smok-serwis/minijson
url = https://git.dms-serwis.com.pl/smokserwis/minijson
project_urls =
Documentation = https://minijson.readthedocs.io/
Documentation = https://smokserwis.docs.smok.co/minijson
Code = https://git.dms-serwis.com.pl/smokserwis/minijson
Issue tracker = https://git.dms-serwis.com.pl/smokserwis/minijson/-/issues
classifier =
......
......@@ -15,7 +15,9 @@ if 'TESTING' in os.environ:
directive_defaults['linetrace'] = True
directive_defaults['profiling'] = True
directive_defaults['binding'] = True
macros = [('CYTHON_TRACE', '1'), ('CYTHON_TRACE_NOGIL', '1')]
macros = [('CYTHON_TRACE_NOGIL', '1')]
setup(ext_modules=cythonize([Extension("minijson", ["minijson.pyx"], define_macros=macros)]))
setup(ext_modules=cythonize([Extension("minijson", ["minijson.pyx"], define_macros=macros)],
compiler_directives=directive_defaults
))
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