python/coverage: update to 7.6.5
[oi-userland.git] / components / python / barman / Makefile
blob690dcc98da44a1449b81645a5e9539a87d6e1a46
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # This file was automatically generated using the following command:
14 # $WS_TOOLS/python-integrate-project barman
17 BUILD_STYLE = setup.py
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME = barman
22 HUMAN_VERSION = 3.11.1
23 COMPONENT_SUMMARY = Backup and Recovery Manager for PostgreSQL
24 COMPONENT_PROJECT_URL = https://www.pgbarman.org/
25 COMPONENT_ARCHIVE_URL = \
26 https://github.com/EnterpriseDB/barman/archive/refs/tags/release/$(HUMAN_VERSION).tar.gz
27 COMPONENT_ARCHIVE_HASH = \
28 sha256:61a5d687a56b42c2a9adeb6dd3760d2654990f0760230c721cc8a73a910a9f0a
29 COMPONENT_LICENSE = GPL-3.0-only
30 COMPONENT_LICENSE_FILE = LICENSE
32 COMPONENT_FMRI = database/postgres/barman
33 COMPONENT_CLASSIFICATION = System/Databases
35 # Github tarball use different source directory than sdist
36 COMPONENT_SRC = barman-release-$(HUMAN_VERSION)
38 # This is a standalone application. Since no other Python project depends on
39 # it we just provide single unversioned package.
40 SINGLE_PYTHON_VERSION = yes
42 include $(WS_MAKE_RULES)/common.mk
44 # Make sure man pages are installed at proper location
45 PYTHON_DATA=$(USRDIR)
47 # Install example configuration files
48 COMPONENT_POST_INSTALL_ACTION += \
49 DOC_DIR=$(PROTO_DIR)/usr/share/barman ; \
50 $(MKDIR) $$DOC_DIR ; \
51 $(CP) $(SOURCE_DIR)/doc/barman.conf $$DOC_DIR/barman.conf-example ; \
52 for file in $(SOURCE_DIR)/doc/barman.d/*.conf-template ; do \
53 $(CP) $$file $$DOC_DIR/$$(basename $$file | $(GSED) -e 's:template:example:g') ; \
54 done ;
56 # Install additional /etc files
57 COMPONENT_POST_INSTALL_ACTION += \
58 $(INSTALL) -d $(PROTOETCSECDIR)/exec_attr.d ; \
59 $(INSTALL) $(COMPONENT_DIR)/files/exec_attr $(PROTOETCSECDIR)/exec_attr.d/barman ; \
60 $(INSTALL) -d $(PROTOETCSECDIR)/prof_attr.d ; \
61 $(INSTALL) $(COMPONENT_DIR)/files/prof_attr $(PROTOETCSECDIR)/prof_attr.d/barman ; \
62 $(INSTALL) -d $(PROTOETCDIR)/user_attr.d/prof_attr.d ; \
63 $(INSTALL) $(COMPONENT_DIR)/files/user_attr $(PROTOETCDIR)/user_attr.d/barman ; \
64 $(INSTALL) $(COMPONENT_DIR)/files/barman.conf $(PROTOETCDIR)/barman.conf ;
66 # Install additional man page
67 COMPONENT_POST_INSTALL_ACTION += \
68 $(INSTALL) -d $(PROTOUSRSHAREMAN4DIR) ; \
69 $(INSTALL) $(COMPONENT_DIR)/files/barman.conf.4 $(PROTOUSRSHAREMAN4DIR) ;
71 # We have no packages needed for cloud testing so we need to skip following tests
72 PYTEST_ADDOPTS += --ignore tests/test_barman_cloud_backup_show.py
73 PYTEST_ADDOPTS += --ignore tests/test_barman_cloud_wal_archive.py
74 PYTEST_ADDOPTS += --ignore tests/test_cloud.py
75 PYTEST_ADDOPTS += --ignore tests/test_cloud_snapshot_interface.py
76 PYTEST_ADDOPTS += --ignore tests/test_infofile.py
77 PYTEST_ADDOPTS += --ignore tests/test_output.py
79 # Auto-generated dependencies
80 PYTHON_REQUIRED_PACKAGES += library/python/importlib-metadata
81 PYTHON_REQUIRED_PACKAGES += library/python/psycopg2
82 PYTHON_REQUIRED_PACKAGES += library/python/python-dateutil
83 PYTHON_REQUIRED_PACKAGES += library/python/setuptools
84 PYTHON_REQUIRED_PACKAGES += runtime/python
85 TEST_REQUIRED_PACKAGES.python += library/python/mock
86 TEST_REQUIRED_PACKAGES.python += library/python/py
87 TEST_REQUIRED_PACKAGES.python += library/python/pytest