File: rules

package info (click to toggle)
locust 2.24.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,828 kB
  • sloc: javascript: 52,230; python: 20,862; sh: 118; makefile: 29
file content (22 lines) | stat: -rwxr-xr-x 777 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
#! /usr/bin/make -f

export PYBUILD_NAME=locust
export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM)

%:
	dh $@ --with python3 --buildsystem=pybuild

execute_before_dh_auto_build:
	echo "version = '$(DEV_VERSION_UPSTREAM)'" > locust/_version.py

override_dh_auto_test:
	# examples/test_data_management.py - attempted network access during pytest collection phase
	# TestMasterWorkerRunners times out after a long time
	-http_proxy= https_proxy= PATH=$(PATH):$(CURDIR)/debian PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="PYTHONPATH={build_dir} {interpreter} -m pytest -v --ignore=examples/test_data_management.py -k 'not TestMasterWorkerRunners'" dh_auto_test

override_dh_installexamples:
	dh_installexamples -X.pyc

override_dh_clean:
	rm -f locust/_version.py
	dh_clean