Init package by version 1.8.0
This commit is contained in:
parent
477e18a215
commit
81977e3468
27
0001-change-build-backend-to-poetry-core.patch
Normal file
27
0001-change-build-backend-to-poetry-core.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From 561f751142f2d0252f10f0fcf04e731772fea828 Mon Sep 17 00:00:00 2001
|
||||
From: desert-sailor <dxwangk@isoftstone.com>
|
||||
Date: Mon, 12 Jun 2023 17:00:51 +0800
|
||||
Subject: [PATCH 1/2] change build-backend to poetry-core
|
||||
|
||||
---
|
||||
pyproject.toml | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
index 004556d..d2da3c8 100644
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -46,8 +46,8 @@ name = "material"
|
||||
palette = {primary = "blue grey", accent = "pink"}
|
||||
|
||||
[build-system]
|
||||
-requires = ["poetry>=0.12"]
|
||||
-build-backend = "poetry.masonry.api"
|
||||
+requires = ["poetry-core>=1.0.0"]
|
||||
+build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.black]
|
||||
line-length = 100
|
||||
--
|
||||
2.33.0
|
||||
|
||||
25
0002-remove-upper-limit-version-of-mkdocs.patch
Normal file
25
0002-remove-upper-limit-version-of-mkdocs.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 4b45ae082c956156cae9290de50c9273e0a192a4 Mon Sep 17 00:00:00 2001
|
||||
From: desert-sailor <dxwangk@isoftstone.com>
|
||||
Date: Wed, 28 Jun 2023 09:51:50 +0800
|
||||
Subject: [PATCH 2/2] remove upper limit version of mkdocs
|
||||
|
||||
---
|
||||
pyproject.toml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
index d2da3c8..bac2686 100644
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -9,7 +9,7 @@ readme = "README.md"
|
||||
[tool.poetry.dependencies]
|
||||
python = ">3.7"
|
||||
hug = ">=2.6"
|
||||
-mkdocs = ">=1.3.0,<1.4.0"
|
||||
+mkdocs = ">=1.3.0"
|
||||
pdocs = ">=1.2.0"
|
||||
toml = ">=0.10.0"
|
||||
mkdocs-material = ">=7.0"
|
||||
--
|
||||
2.33.0
|
||||
|
||||
BIN
portray-1.8.0.tar.gz
Normal file
BIN
portray-1.8.0.tar.gz
Normal file
Binary file not shown.
54
python-portray.spec
Normal file
54
python-portray.spec
Normal file
@ -0,0 +1,54 @@
|
||||
%global pypi_name portray
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 1.8.0
|
||||
Release: 1
|
||||
Summary: A Python3 command line tool and library that create great documentation websites for Python projects.
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/timothycrosley/portray
|
||||
Source0: https://files.pythonhosted.org/packages/31/c5/647feff9c1a65c403594e51e8ebc9eb93b71e77808c159cf688970585715/portray-1.8.0.tar.gz
|
||||
Patch1: 0001-change-build-backend-to-poetry-core.patch
|
||||
Patch2: 0002-remove-upper-limit-version-of-mkdocs.patch
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: python3-editables
|
||||
BuildRequires: python3-hatch-vcs
|
||||
BuildRequires: python3-hatchling
|
||||
BuildRequires: python3-virtualenv
|
||||
BuildRequires: python3-poetry-core
|
||||
|
||||
%description
|
||||
portray is a Python3 command line tool and library that helps you create great documentation websites for your Python projects with as little effort as possible.
|
||||
|
||||
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
|
||||
%description -n python3-%{pypi_name}
|
||||
A Python3 command line tool and library that create great documentation websites for Python projects.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{pypi_name}-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_build
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
|
||||
%files -n python3-%{pypi_name}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_bindir}/portray
|
||||
%{python3_sitelib}/%{pypi_name}
|
||||
%{python3_sitelib}/%{pypi_name}*.dist-info/
|
||||
|
||||
%changelog
|
||||
* Mon Jun 12 2023 Dongxing Wang <dxwangk@isoftstone.com> - 1.8.0-1
|
||||
- Initial package 1.8.0
|
||||
Loading…
x
Reference in New Issue
Block a user