diff --git a/poetry-deps.txt b/poetry-deps.txt new file mode 100644 index 0000000000000000000000000000000000000000..c5c1814b15cd968ab007616e3b2d0928e1c5f52e --- /dev/null +++ b/poetry-deps.txt @@ -0,0 +1 @@ +poetry==1.4.2 diff --git a/poetry-run-pkgs.tar.gz b/poetry-run-pkgs.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c909db265c88b281e7e9ce4c5af8d82e59fa5517 Binary files /dev/null and b/poetry-run-pkgs.tar.gz differ diff --git a/python-tomlkit.spec b/python-tomlkit.spec new file mode 100644 index 0000000000000000000000000000000000000000..e38012aab60003e3f25d9c1a2a657bf19975b3a0 --- /dev/null +++ b/python-tomlkit.spec @@ -0,0 +1,68 @@ +%global pypi_name tomlkit + +%global common_description %{expand: +TOML Kit is a 1.0.0-compliant TOML library. + +It includes a parser that preserves all comments, indentations, whitespace and +internal element ordering, and makes them accessible and editable via an +intuitive API.} + +Name: python-%{pypi_name} +Summary: Style preserving TOML library +Version: 0.11.4 +Release: 1 +License: MIT + +URL: https://github.com/sdispater/tomlkit +Source0: %{pypi_source %{pypi_name}} +Source1: poetry-run-pkgs.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-editables +BuildRequires: python3-hatch-vcs +BuildRequires: python3-hatchling + +# test dependencies +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pyyaml) + +%description %{common_description} + + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} %{common_description} + + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} +# poetry-run-pkgs.tar.gz is local pkgs for poetry run +# use conda to create py39,py310,py311 env +# use command line below to create the pkgs contents and make tar.gz +# pip download -d ./poetry-run-pkgs -r poetry-deps.txt -i https://pypi.tuna.tsinghua.edu.cn/simple +# tar -czvf poetry-run-pkgs.tar.gz poetry-run-pkgs +tar xzvf %{SOURCE1} -C %{_builddir}/ +# config pip use local pkgs dir and check +pip config set install.no-index true +pip config set install.find-links %{_builddir}/poetry-run-pkgs + +%build +pip install poetry +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}*.dist-info/ + +%changelog +* Tue May 16 2023 Dongxing Wang - 0.11.4-1 +- Init package version 0.11.4 diff --git a/tomlkit-0.11.4.tar.gz b/tomlkit-0.11.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f7a0e76ee8dc187f189c2cdcfb02e926a5d81581 Binary files /dev/null and b/tomlkit-0.11.4.tar.gz differ