File: rules

package info (click to toggle)
pytest-twisted 1.14.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 256 kB
  • sloc: python: 1,479; makefile: 12
file content (25 lines) | stat: -rwxr-xr-x 875 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /usr/bin/make -f

export PYBUILD_NAME=pytest-twisted

# Creating and copying the .egg-info folder allows pytest to recognize the plugin even though
# it is not properly installed at package build time
ifneq ($(PYBUILD_AUTOPKGTEST),1)
export PYBUILD_BEFORE_TEST={interpreter} setup.py egg_info && cp -r {dir}/src/*.egg-info {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {dir}/src/*.egg-info {build_dir}/*.egg-info
endif

# Ignore Python 3.12 deprecation warning that is triggered by twisted for now
export PYTHONWARNINGS=default,ignore::DeprecationWarning:twisted.python.failure

export PYBUILD_TEST_CUSTOM=1
export PYBUILD_TEST_ARGS={interpreter} -m pytest -v testing --reactor=default \
	&& {interpreter} -m pytest -v testing --reactor=asyncio

# See discussion in https://bugs.debian.org/965041.
export CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1


%:
	dh $@ --buildsystem=pybuild