Add python-boutdata test config and expected spec file

This commit is contained in:
Karolina Surma
2021-09-01 17:44:02 +02:00
parent cf392c25a0
commit 74d8f70bf6
2 changed files with 86 additions and 0 deletions
@@ -0,0 +1,58 @@
Name: python-boutdata
Version: 0.1.3
Release: 0.2%{?dist}
Summary: Python package for collecting BOUT++ data
License: LGPLv3+
URL: http://boutproject.github.io
Source0: %{pypi_source boutdata}
BuildArch: noarch
BuildRequires: python3-devel
%global _description %{expand:
Python interface for reading bout++ data files.
}
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(setuptools-scm[toml]) >= 3.4
BuildRequires: python3dist(setuptools-scm-git-archive)
BuildRequires: python3dist(pytest)
%description %_description
%package -n python3-boutdata
Summary: %{summary}
%description -n python3-boutdata %_description
%prep
%autosetup -p1 -n boutdata-%{version}
%generate_buildrequires
%pyproject_buildrequires -r
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files boutdata
%check
%pytest
%files -n python3-boutdata -f %{pyproject_files}
%doc README.md
%license LICENSE
%changelog
* Fri Sep 18 2020 Package Maintainer <package@maintainer.org> - 0.1.3-0.2
- Initial package.
+28
View File
@@ -0,0 +1,28 @@
pypi_name = "boutdata"
python_name = "python-boutdata"
module_name = "boutdata"
version = "0.1.3"
release = "0.2"
summary = "Python package for collecting BOUT++ data"
license = "LGPLv3+"
url = "http://boutproject.github.io"
source = "%{pypi_source boutdata}"
archive_name = "boutdata"
description = '''
Python interface for reading bout++ data files.
'''
manual_build_requires = [
"python3dist(setuptools)",
"python3dist(setuptools-scm[toml]) >= 3.4",
"python3dist(setuptools-scm-git-archive)",
"python3dist(pytest)",
]
extra_build_requires = ["runtime"]
test_method = "pytest"
license_files = ["LICENSE"]
doc_files = ["README.md"]
changelog_head = "Fri Sep 18 2020 Package Maintainer <package@maintainer.org>"
changelog_msg = "Initial package."