Create python-package.yml
Signed-off-by: lb1107039128 <liubo1@xfusion.com>
This commit is contained in:
parent
485713b62d
commit
de5c253d1e
47
0001-Create-python-package.yml.patch
Normal file
47
0001-Create-python-package.yml.patch
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
From d4046b3d1a5e73eb0b570f0253c9a03059f4bf9d Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= <jelmer@jelmer.uk>
|
||||||
|
Date: Fri, 17 Nov 2023 17:27:25 +0000
|
||||||
|
Subject: [PATCH] Create python-package.yml
|
||||||
|
|
||||||
|
---
|
||||||
|
.github/workflows/python-package.yml | 28 ++++++++++++++++++++++++++++
|
||||||
|
1 file changed, 28 insertions(+)
|
||||||
|
create mode 100644 .github/workflows/python-package.yml
|
||||||
|
|
||||||
|
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..f604dd2
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/.github/workflows/python-package.yml
|
||||||
|
@@ -0,0 +1,28 @@
|
||||||
|
+name: Python package
|
||||||
|
+
|
||||||
|
+on:
|
||||||
|
+ push:
|
||||||
|
+ pull_request:
|
||||||
|
+
|
||||||
|
+jobs:
|
||||||
|
+ build:
|
||||||
|
+
|
||||||
|
+ runs-on: ubuntu-latest
|
||||||
|
+ strategy:
|
||||||
|
+ fail-fast: false
|
||||||
|
+ matrix:
|
||||||
|
+ python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||||
|
+
|
||||||
|
+ steps:
|
||||||
|
+ - uses: actions/checkout@v3
|
||||||
|
+ - name: Set up Python ${{ matrix.python-version }}
|
||||||
|
+ uses: actions/setup-python@v3
|
||||||
|
+ with:
|
||||||
|
+ python-version: ${{ matrix.python-version }}
|
||||||
|
+ - name: Install dependencies
|
||||||
|
+ run: |
|
||||||
|
+ python -m pip install --upgrade pip
|
||||||
|
+ python -m pip install testtools
|
||||||
|
+ - name: Test with testtools
|
||||||
|
+ run: |
|
||||||
|
+ python -m testtools.run extras.tests.test_suite
|
||||||
|
--
|
||||||
|
2.42.0.windows.2
|
||||||
|
|
||||||
@ -1,12 +1,14 @@
|
|||||||
Name: python-extras
|
Name: python-extras
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: A set of extensions to the python standard library
|
Summary: A set of extensions to the python standard library
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/testing-cabal/extras
|
URL: https://github.com/testing-cabal/extras
|
||||||
Source0: https://pypi.io/packages/source/e/extras/extras-%{version}.tar.gz
|
Source0: https://pypi.io/packages/source/e/extras/extras-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Patch0001: 0001-Create-python-package.yml.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
python-extras is a set of extensions to the standard library.
|
python-extras is a set of extensions to the standard library.
|
||||||
|
|
||||||
@ -27,7 +29,7 @@ BuildRequires: python3-devel python3-setuptools python3-testtools
|
|||||||
python3-extras is a set of extensions to the standard library.
|
python3-extras is a set of extensions to the standard library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n extras-%{version}
|
%autosetup -n extras-%{version} -p1
|
||||||
rm -vrf *.egg-info
|
rm -vrf *.egg-info
|
||||||
%build
|
%build
|
||||||
%py2_build
|
%py2_build
|
||||||
@ -50,5 +52,8 @@ rm -vrf *.egg-info
|
|||||||
%{python3_sitelib}/extras-*.egg-info/
|
%{python3_sitelib}/extras-*.egg-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 22 2023 liubo <liubo1@xfusion.com> - 1.0.0-7
|
||||||
|
- Create python-package.yml
|
||||||
|
|
||||||
* Mon Nov 25 2019 Ling Yang <lingyang2@huawei.com> - 1.0.0-6
|
* Mon Nov 25 2019 Ling Yang <lingyang2@huawei.com> - 1.0.0-6
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user