Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:redwil:15.4
python-minizinc
python-minizinc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-minizinc.spec of Package python-minizinc
# # spec file for package python-minizinc # # 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 %define skip_python36 1 Name: python-minizinc Version: 0.9.0 Release: 0 Summary: Python interface to MiniZinc License: MPL-2.0 URL: https://www.minizinc.org/ Source: https://github.com/MiniZinc/minizinc-python/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: fdupes BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module wheel} BuildRequires: %{pythons} BuildRequires: python-rpm-macros # Test dependencies %if 0%{?sle_version} == 150300 BuildRequires: %{python_module dataclasses} %else BuildRequires: %{python_module dataclasses if %python-base < 3.8} %endif BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} BuildRequires: minizinc >= 2.5.4 BuildRequires: gecode-minizinc # /Test dependencies BuildArch: noarch Requires: python-numpy # Python module directly calls the minizinc binary Requires: minizinc >= 2.5.4 %if %python_version_nodots < 38 Requires: python-dataclasses %endif %python_subpackages %description MiniZinc Python provides an interface from Python to the MiniZinc driver. %prep %autosetup -p1 -n minizinc-python-%{version} %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %{python_expand # export PYTHONPATH=%{buildroot}%{$python_sitelib} export PYTHONDONTWRITEBYTECODE=1 $python -m pytest -k 'not CheckResults and not test_coinbc and not test_chuffed and not TestChecker' $python -m pytest -k 'TestChecker' $python -m pytest -k 'test_no_output_checker' } %files %{python_files} %license LICENSE %doc README.md %{python_sitelib}/minizinc %{python_sitelib}/minizinc-%{version}*-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