Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
python-patsy
python-patsy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-patsy.spec of Package python-patsy
# # spec file for package python-patsy # # Copyright (c) 2024 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/ # # Tests have dependency loop with pandas %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define test 1 %define pkg_suffix -test %bcond_without test %else %define pkg_suffix %{nil} %bcond_with test %endif %define skip_python36 1 %{?sle15allpythons} Name: python-patsy%{pkg_suffix} Version: 0.5.6 Release: 0 Summary: A Python package for statistical models and design matrices License: BSD-2-Clause URL: https://github.com/pydata/patsy Source: https://files.pythonhosted.org/packages/source/p/patsy/patsy-%{version}.tar.gz # https://github.com/pydata/patsy/pull/209 Patch0: python-patsy-no-python2.patch BuildRequires: %{python_module numpy-devel} BuildRequires: %{python_module scipy} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-numpy Recommends: python-scipy BuildArch: noarch %if %{with test} BuildRequires: %{python_module pandas} BuildRequires: %{python_module patsy = %{version}} BuildRequires: %{python_module pytest} %endif %python_subpackages %description A Python package for describing statistical models and for building design matrices. It is closely inspired by and compatible with the 'formula' mini-language used in `R <http://www.r-project.org/>`_ and `S <https://secure.wikimedia.org/wikipedia/en/wiki/S_programming_language>`_. %prep %autosetup -p1 -n patsy-%{version} %if !%{with test} %build %python_build %endif %if !%{with test} %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %if %{with test} %check # skip 6 tests, fail with Numpy 2 - https://github.com/pydata/patsy/issues/210 %pytest -k "not ((test_highlevel and (test_formula_likes or test_builtins or test_incremental)) or (test_state and (test_Center or test_stateful_transform_wrapper)) or (util and test_asarray_or_pandas))" %endif %if !%{with test} %files %{python_files} %license LICENSE.txt %doc README.md %{python_sitelib}/patsy/ %{python_sitelib}/patsy-%{version}-py*.egg-info %endif %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