2018-11-05 20:59:42 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-shijian
|
|
|
|
#
|
2025-06-12 11:03:50 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-11-05 20:59:42 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-12-13 10:10:23 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-11-05 20:59:42 +00:00
|
|
|
Name: python-shijian
|
2023-12-13 10:10:23 +00:00
|
|
|
Version: 2023.10.19.215
|
2018-11-05 20:59:42 +00:00
|
|
|
Release: 0
|
2018-11-11 17:50:42 +00:00
|
|
|
Summary: Python utility functions relating to time and filenames
|
2018-11-05 20:59:42 +00:00
|
|
|
License: GPL-3.0-only
|
2020-03-18 12:07:35 +00:00
|
|
|
URL: https://github.com/wdbm/shijian
|
2018-11-05 20:59:42 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/s/shijian/shijian-%{version}.tar.gz
|
2025-06-12 11:10:02 +00:00
|
|
|
Source1: https://raw.githubusercontent.com/wdbm/shijian/refs/heads/master/shijian/__init__.py
|
2018-11-05 20:59:42 +00:00
|
|
|
Source100: python-shijian-rpmlintrc
|
2025-06-12 11:03:50 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-11-05 20:59:42 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-12 11:03:50 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-11-05 20:59:42 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-matplotlib
|
|
|
|
Requires: python-numpy
|
|
|
|
Requires: python-pandas
|
|
|
|
Requires: python-python-dateutil
|
|
|
|
Requires: python-scikit-learn
|
|
|
|
Requires: python-scipy
|
|
|
|
Requires: python-seaborn
|
|
|
|
Requires: python-technicolor
|
2019-06-03 18:35:39 +00:00
|
|
|
Recommends: python-ipywidgets
|
2018-11-05 20:59:42 +00:00
|
|
|
Recommends: python-pyprel
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-11-11 17:50:42 +00:00
|
|
|
A Python module with a number of utility functions for formatting
|
|
|
|
timestamps, counting time, and deriving non-overlapping filenames or
|
|
|
|
sequences.
|
2018-11-05 20:59:42 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n shijian-%{version}
|
2025-06-12 11:48:37 +00:00
|
|
|
cp %{SOURCE1} shijian.py
|
2018-11-05 20:59:42 +00:00
|
|
|
|
|
|
|
%build
|
2025-06-12 11:03:50 +00:00
|
|
|
%pyproject_wheel
|
2018-11-05 20:59:42 +00:00
|
|
|
|
|
|
|
%install
|
2025-06-12 11:03:50 +00:00
|
|
|
%pyproject_install
|
2018-11-05 20:59:42 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2020-03-18 12:07:35 +00:00
|
|
|
%check
|
|
|
|
# no upstream tests
|
|
|
|
|
2018-11-05 20:59:42 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2025-06-12 11:48:37 +00:00
|
|
|
%{python_sitelib}/shijian.py
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/shijian*
|
2025-06-12 11:03:50 +00:00
|
|
|
%{python_sitelib}/shijian-%{version}*-info
|
2018-11-05 20:59:42 +00:00
|
|
|
|
|
|
|
%changelog
|