File tree Expand file tree Collapse file tree 4 files changed +29
-8
lines changed Expand file tree Collapse file tree 4 files changed +29
-8
lines changed Original file line number Diff line number Diff line change 3030 pkg-config
3131 python3-dev
3232 python3-pip
33- python3-setuptools
34- - run : pip install cython
33+ python3-venv
34+ - run : python3 -m venv /tmp/path/to/venv
35+ - run : |
36+ . /tmp/path/to/venv/bin/activate
37+ pip install cython setuptools
3538 - run : git clone --depth=1 --recursive https://github.com/TokTok/c-toxcore
3639 - run : cd c-toxcore;
3740 . .github/scripts/flags-gcc.sh;
@@ -46,11 +49,14 @@ jobs:
4649 -DMUST_BUILD_TOXAV=ON
4750 - run : cd c-toxcore/_build && ninja install -j$(nproc)
4851 - run : |
52+ . /tmp/path/to/venv/bin/activate
4953 export CFLAGS="-I$PWD/c-toxcore/_install/include -fsanitize=address,undefined"
5054 export LDFLAGS="-L$PWD/c-toxcore/_install/lib -Wl,-rpath,$PWD/c-toxcore/_install/lib"
5155 cython -I. $(find pytox -name "*.pyx")
5256 python3 setup.py build_ext --inplace
53- - run : ASAN_OPTIONS=detect_leaks=0
54- LD_PRELOAD=libasan.so.6
55- PYTHONPATH=.
57+ - run : |
58+ . /tmp/path/to/venv/bin/activate
59+ export ASAN_OPTIONS=detect_leaks=0
60+ export LD_PRELOAD=libasan.so.8
61+ export PYTHONPATH=.
5662 python3 -m unittest $(find test -name "*_test.py")
Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request_target :
7+ branches : [master]
8+ types : [opened, reopened, synchronize]
9+
10+ jobs :
11+ release :
12+ uses : TokTok/ci-tools/.github/workflows/release-drafter.yml@master
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ pyx_library(
2626
2727mypy_test (
2828 name = "mypy_test" ,
29- srcs = glob (["**/*.py" ]),
29+ srcs = glob (
30+ ["**/*.py" ],
31+ exclude = ["setup.py" ],
32+ ),
3033 path = ["py_toxcore_c" ],
3134)
Original file line number Diff line number Diff line change 1- from distutils . core import Extension
2- from distutils . core import setup
1+ from setuptools import Extension
2+ from setuptools import setup
33
44libraries = [
55 "toxcore" ,
You can’t perform that action at this time.
0 commit comments