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 30
30
pkg-config
31
31
python3-dev
32
32
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
35
38
- run : git clone --depth=1 --recursive https://github.com/TokTok/c-toxcore
36
39
- run : cd c-toxcore;
37
40
. .github/scripts/flags-gcc.sh;
@@ -46,11 +49,14 @@ jobs:
46
49
-DMUST_BUILD_TOXAV=ON
47
50
- run : cd c-toxcore/_build && ninja install -j$(nproc)
48
51
- run : |
52
+ . /tmp/path/to/venv/bin/activate
49
53
export CFLAGS="-I$PWD/c-toxcore/_install/include -fsanitize=address,undefined"
50
54
export LDFLAGS="-L$PWD/c-toxcore/_install/lib -Wl,-rpath,$PWD/c-toxcore/_install/lib"
51
55
cython -I. $(find pytox -name "*.pyx")
52
56
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=.
56
62
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(
26
26
27
27
mypy_test (
28
28
name = "mypy_test" ,
29
- srcs = glob (["**/*.py" ]),
29
+ srcs = glob (
30
+ ["**/*.py" ],
31
+ exclude = ["setup.py" ],
32
+ ),
30
33
path = ["py_toxcore_c" ],
31
34
)
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
3
3
4
4
libraries = [
5
5
"toxcore" ,
You can’t perform that action at this time.
0 commit comments