[Git][debian-gis-team/stac-check][master] 2 commits: Enable tests.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sun Feb 18 10:57:49 GMT 2024



Bas Couwenberg pushed to branch master at Debian GIS Project / stac-check


Commits:
78a219ab by Bas Couwenberg at 2024-02-18T11:34:44+01:00
Enable tests.

- - - - -
2768b9e5 by Bas Couwenberg at 2024-02-18T11:47:55+01:00
Fix dh_install failure.

- - - - -


4 changed files:

- debian/control
- − debian/python3-stac-check.install
- debian/rules
- debian/stac-check.install


Changes:

=====================================
debian/control
=====================================
@@ -12,6 +12,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-click,
                python3-dotenv,
                python3-jsonschema,
+               python3-pytest <!nocheck>,
                python3-requests,
                python3-setuptools,
                python3-sphinx <!nodoc>,


=====================================
debian/python3-stac-check.install deleted
=====================================
@@ -1 +0,0 @@
-usr/lib/*


=====================================
debian/rules
=====================================
@@ -1,6 +1,24 @@
 #!/usr/bin/make -f
 
-export PYBUILD_DISABLE=test
+export PYBUILD_NAME=stac_check
+export PYBUILD_TEST_ARGS=-v -k "not test_linter_config_file \
+                            and not test_linter_bad_assets \
+                            and not test_linter_bad_links \
+                            and not test_linter_bad_links_assets \
+                            and not test_linter_collection \
+                            and not test_linter_collection_no_summaries \
+                            and not test_linter_catalog \
+                            and not test_linter_collection_recursive \
+                            and not test_linter_recursive_max_depth_1 \
+                            and not test_linter_recursive_max_depth_4 \
+                            and not test_linter_item_id_not_matching_file_name \
+                            and not test_linter_collection_catalog_id \
+                            and not test_linter_item_id_format_best_practices \
+                            and not test_title_field \
+                            and not test_lint_dict_collection \
+                            and not test_lint_dict_item"
+export PYBUILD_BEFORE_TEST=cp -r sample_files/ {build_dir}
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/sample_files/
 
 %:
 	dh $@ --buildsystem=pybuild
@@ -12,3 +30,6 @@ ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
 	sphinx-build -N -E -T -b html . $(CURDIR)/.pybuild/docs/html/
 	rm -rf $(CURDIR)/.pybuild/docs/html/.doctrees
 endif
+
+execute_after_dh_install:
+	$(RM) -r debian/python3-stac-check/usr/bin


=====================================
debian/stac-check.install
=====================================
@@ -1 +1 @@
-usr/bin/*
+debian/python3-stac-check/usr/bin/* usr/bin/



View it on GitLab: https://salsa.debian.org/debian-gis-team/stac-check/-/compare/7d4ea4b9460b2e6c8444eff2220ff29a027f4541...2768b9e5ce2c192e018f3983d79293f067b6c52d

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/stac-check/-/compare/7d4ea4b9460b2e6c8444eff2220ff29a027f4541...2768b9e5ce2c192e018f3983d79293f067b6c52d
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240218/dcfafe6f/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list