Skip to content

Commit d9b2c11

Browse files
committed
chore: Add release-drafter github action.
1 parent d0323a2 commit d9b2c11

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed

.circleci/config.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ jobs:
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")

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

BUILD.bazel

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ pyx_library(
2626

2727
mypy_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
)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from distutils.core import Extension
2-
from distutils.core import setup
1+
from setuptools import Extension
2+
from setuptools import setup
33

44
libraries = [
55
"toxcore",

0 commit comments

Comments
 (0)