diff --git a/.circleci/config.yml b/.circleci/config.yml index ea161f9..315718c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,7 +31,9 @@ jobs: python3-dev python3-pip python3-setuptools - - run: pip install cython + python3-venv + - run: python3 -m venv /tmp/path/to/venv + - run: . /tmp/path/to/venv/bin/activate && pip install cython - run: git clone --depth=1 --recursive https://github.com/TokTok/c-toxcore - run: cd c-toxcore; . .github/scripts/flags-gcc.sh; @@ -46,11 +48,14 @@ jobs: -DMUST_BUILD_TOXAV=ON - run: cd c-toxcore/_build && ninja install -j$(nproc) - run: | + . /tmp/path/to/venv/bin/activate export CFLAGS="-I$PWD/c-toxcore/_install/include -fsanitize=address,undefined" export LDFLAGS="-L$PWD/c-toxcore/_install/lib -Wl,-rpath,$PWD/c-toxcore/_install/lib" cython -I. $(find pytox -name "*.pyx") python3 setup.py build_ext --inplace - - run: ASAN_OPTIONS=detect_leaks=0 - LD_PRELOAD=libasan.so.6 - PYTHONPATH=. + - run: | + . /tmp/path/to/venv/bin/activate + export ASAN_OPTIONS=detect_leaks=0 + export LD_PRELOAD=libasan.so.6 + export PYTHONPATH=. python3 -m unittest $(find test -name "*_test.py") diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9f4ee30 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,12 @@ +name: release + +on: + push: + branches: [master] + pull_request_target: + branches: [master] + types: [opened, reopened, synchronize] + +jobs: + release: + uses: TokTok/ci-tools/.github/workflows/release-drafter.yml@master diff --git a/setup.py b/setup.py index ae63243..84a2c36 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ -from distutils.core import Extension -from distutils.core import setup +from setuptools import Extension +from setuptools import setup libraries = [ "toxcore",