File: rules

package info (click to toggle)
strawberry-graphql 0.306.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,176 kB
  • sloc: javascript: 178,052; python: 65,643; sh: 33; makefile: 25
file content (35 lines) | stat: -rwxr-xr-x 1,077 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE = 1

# This includes the export of the variable PYBUILD_BEFORE_INSTALL.
include ./debian/css-js.mk

export PYBUILD_NAME=strawberry
export PYBUILD_BEFORE_TEST=cp -r {dir}/docs {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/docs
export PYBUILD_AFTER_INSTALL=find {destdir}{install_dir}/strawberry -type f \( -name "LICENSE" -o -name "README.md" \) | xargs -r rm -vrf
export DJANGO_SETTINGS_MODULE=tests.django.django_settings

export PYBUILD_TEST_ARGS=\
 --ignore=tests/cli/test_locate_definition.py \
 --ignore=tests/http/test_graphql_ide.py \
 --ignore=tests/http/test_upload.py \
 --ignore=tests/litestar/test_context.py \
 --ignore=tests/litestar/test_response_headers.py \
 --ignore=tests/litestar/test_response_status.py \
 --ignore=tests/sanic/test_file_upload.py \
 -k ' \
     not test_fetch_data_from_db \
 and not test_lazy_types_loaded_from_same_module \
 ' \
 -W "ignore::pytest.PytestRemovedIn9Warning" \
 ${NULL}

%:
	dh $@ --buildsystem=pybuild

override_dh_clean:
	dh_clean
	rm -rf .mypy_cache