Use poetry-core to build
This commit is contained in:
parent
308b624a3b
commit
6989a1832e
@ -1 +0,0 @@
|
|||||||
poetry==1.4.2
|
|
||||||
Binary file not shown.
@ -10,12 +10,11 @@ intuitive API.}
|
|||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Summary: Style preserving TOML library
|
Summary: Style preserving TOML library
|
||||||
Version: 0.11.4
|
Version: 0.11.4
|
||||||
Release: 1
|
Release: 2
|
||||||
License: MIT
|
License: MIT
|
||||||
|
|
||||||
URL: https://github.com/sdispater/tomlkit
|
URL: https://github.com/sdispater/tomlkit
|
||||||
Source0: %{pypi_source %{pypi_name}}
|
Source0: %{pypi_source %{pypi_name}}
|
||||||
Source1: poetry-run-pkgs.tar.gz
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -24,6 +23,7 @@ BuildRequires: python3-wheel
|
|||||||
BuildRequires: python3-editables
|
BuildRequires: python3-editables
|
||||||
BuildRequires: python3-hatch-vcs
|
BuildRequires: python3-hatch-vcs
|
||||||
BuildRequires: python3-hatchling
|
BuildRequires: python3-hatchling
|
||||||
|
BuildRequires: python3-poetry-core
|
||||||
|
|
||||||
# test dependencies
|
# test dependencies
|
||||||
BuildRequires: python3dist(pytest)
|
BuildRequires: python3dist(pytest)
|
||||||
@ -37,21 +37,10 @@ Summary: %{summary}
|
|||||||
|
|
||||||
%description -n python3-%{pypi_name} %{common_description}
|
%description -n python3-%{pypi_name} %{common_description}
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{pypi_name}-%{version}
|
%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
|
%build
|
||||||
pip install poetry
|
|
||||||
%pyproject_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -64,5 +53,8 @@ pip install poetry
|
|||||||
%{python3_sitelib}/%{pypi_name}*.dist-info/
|
%{python3_sitelib}/%{pypi_name}*.dist-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 22 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.11.4-2
|
||||||
|
- Use poetry-core to build
|
||||||
|
|
||||||
* Tue May 16 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.11.4-1
|
* Tue May 16 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.11.4-1
|
||||||
- Init package version 0.11.4
|
- Init package version 0.11.4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user