diff --git a/tests/expected_specfiles/pyp2spec_boutdata.spec b/tests/expected_specfiles/pyp2spec_boutdata.spec new file mode 100644 index 0000000..6b55bab --- /dev/null +++ b/tests/expected_specfiles/pyp2spec_boutdata.spec @@ -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 - 0.1.3-0.2 +- Initial package. diff --git a/tests/test_configs/pyp2spec_boutdata.conf b/tests/test_configs/pyp2spec_boutdata.conf new file mode 100644 index 0000000..0292c12 --- /dev/null +++ b/tests/test_configs/pyp2spec_boutdata.conf @@ -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 " +changelog_msg = "Initial package." \ No newline at end of file