Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ojkastl_buildservice:Branch_devel_kubic
python-prometheus-api-client
python-prometheus-api-client.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-prometheus-api-client.spec of Package python-prometheus-api-client
# # spec file for package python-prometheus-api-client # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?sle15_python_module_pythons} Name: python-prometheus-api-client Version: 0.5.4 Release: 0 Summary: A small python api to collect data from prometheus License: MIT URL: https://github.com/4n4nd/prometheus-api-client-python Source: https://files.pythonhosted.org/packages/source/p/prometheus-api-client/prometheus-api-client-%{version}.tar.gz BuildRequires: python-rpm-macros BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} # Build requirements BuildRequires: %{python_module dateparser} BuildRequires: %{python_module matplotlib} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pandas >= 1.4.0} BuildRequires: %{python_module requests} # SECTION test requirements BuildRequires: %{python_module pytest} BuildRequires: %{python_module httmock} # /SECTION BuildRequires: fdupes Requires: python3-dateparser Requires: python3-matplotlib Requires: python3-numpy Requires: python3-pandas >= 1.4.0 Requires: python3-requests BuildArch: noarch %python_subpackages %description A small python api to collect data from prometheus %prep %autosetup -p1 -n prometheus-api-client-%{version} %build %pyproject_wheel %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand rm -rf %{buildroot}%{$python_sitelib}/tests %check # Upstream issue to clarify if all of those tests are failing # because http://demo.robustperception.io:9090/ cannot be reached # in our build environment # https://github.com/4n4nd/prometheus-api-client-python/issues/272 IGNORED_CHECKS="test_init" IGNORED_CHECKS="${IGNORED_CHECKS} or test_metric_addition" IGNORED_CHECKS="${IGNORED_CHECKS} or test_metric_end_time" IGNORED_CHECKS="${IGNORED_CHECKS} or test_metric_equality" IGNORED_CHECKS="${IGNORED_CHECKS} or test_metric_start_time" IGNORED_CHECKS="${IGNORED_CHECKS} or test_oldest_data_datetime_with_datetime" IGNORED_CHECKS="${IGNORED_CHECKS} or test_oldest_data_datetime_with_timedelta" IGNORED_CHECKS="${IGNORED_CHECKS} or test_setup" IGNORED_CHECKS="${IGNORED_CHECKS} or test_init_single_metric" IGNORED_CHECKS="${IGNORED_CHECKS} or test_setup" IGNORED_CHECKS="${IGNORED_CHECKS} or test_init_single_metric" IGNORED_CHECKS="${IGNORED_CHECKS} or test_setup" IGNORED_CHECKS="${IGNORED_CHECKS} or test_init" IGNORED_CHECKS="${IGNORED_CHECKS} or test_init_single_metric" IGNORED_CHECKS="${IGNORED_CHECKS} or test_setup" IGNORED_CHECKS="${IGNORED_CHECKS} or test_unique_metric_combination" IGNORED_CHECKS="${IGNORED_CHECKS} or test_get_label_names_method" IGNORED_CHECKS="${IGNORED_CHECKS} or test_get_metric_aggregation" IGNORED_CHECKS="${IGNORED_CHECKS} or test_get_metric_aggregation_with_incorrect_input_types" IGNORED_CHECKS="${IGNORED_CHECKS} or test_get_metric_range_data" IGNORED_CHECKS="${IGNORED_CHECKS} or test_get_metric_range_data_with_chunk_size" IGNORED_CHECKS="${IGNORED_CHECKS} or test_get_metric_range_data_with_incorrect_input_types" IGNORED_CHECKS="${IGNORED_CHECKS} or test_metrics_list" IGNORED_CHECKS="${IGNORED_CHECKS} or test_retry_on_error" %pytest -k "not (${IGNORED_CHECKS})" %files %{python_files} %doc README.md %license LICENSE %{python_sitelib}/prometheus_api_client %{python_sitelib}/prometheus_api_client-%{version}.dist-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor