14
0
forked from pool/python-parted

Accepting request 979832 from devel:languages:python

- Update to 3.12.0:
  * Adjust how PED_PARTITION types are added to _ped
  * Add support for PARTITION_LINUX_HOME
  * Add units, devices, and partitions convenience dicts
  * Update version number and required libparted version
  * Correct PARTITION_* constant initialization
  * setup.py: port to setuptools
- Add patch more-features-exposed.patch:
  * msdos and GPT seem to expose more features, include them when checking.

OBS-URL: https://build.opensuse.org/request/show/979832
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-parted?expand=0&rev=5
This commit is contained in:
2022-05-30 10:44:43 +00:00
committed by Git OBS Bridge
5 changed files with 38 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
Index: pyparted-3.12.0/tests/test__ped_disktype.py
===================================================================
--- pyparted-3.12.0.orig/tests/test__ped_disktype.py
+++ pyparted-3.12.0/tests/test__ped_disktype.py
@@ -75,11 +75,11 @@ class DiskTypeCheckFeatureTestCase(Requi
class DiskTypeStrTestCase(RequiresDiskTypes):
def runTest(self):
- self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 1')
+ self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 9')
self.assertEqual(str(self.disktype['aix']), '_ped.DiskType instance --\n name: aix features: 0')
self.assertEqual(str(self.disktype['sun']), '_ped.DiskType instance --\n name: sun features: 0')
self.assertEqual(str(self.disktype['amiga']), '_ped.DiskType instance --\n name: amiga features: 2')
- self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 2')
+ self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 18')
self.assertEqual(str(self.disktype['mac']), '_ped.DiskType instance --\n name: mac features: 6')
self.assertEqual(str(self.disktype['bsd']), '_ped.DiskType instance --\n name: bsd features: 0')
self.assertEqual(str(self.disktype['pc98']), '_ped.DiskType instance --\n name: pc98 features: 2')

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0df225691b19ef8097e3d990e99323a1c5a6ba1579b508ec479575222e7ba3d3
size 105671

3
pyparted-3.12.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b06b1624ebd1200de24672ee5b0f85b8fa547a437b24780930e2790d42bef343
size 106440

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon May 30 09:50:41 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 3.12.0:
* Adjust how PED_PARTITION types are added to _ped
* Add support for PARTITION_LINUX_HOME
* Add units, devices, and partitions convenience dicts
* Update version number and required libparted version
* Correct PARTITION_* constant initialization
* setup.py: port to setuptools
- Add patch more-features-exposed.patch:
* msdos and GPT seem to expose more features, include them when checking.
-------------------------------------------------------------------
Tue Jan 11 10:09:22 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -19,18 +19,19 @@
%define srcname pyparted
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-parted
Version: 3.11.7
Version: 3.12.0
Release: 0
Summary: Python module for GNU parted
License: GPL-2.0-or-later
Group: Development/Languages/Python
URL: https://github.com/dcantrell/pyparted/
Source0: https://github.com/dcantrell/pyparted/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
# catch exception for unknown 'disk flag', kkaempf@suse.de
Patch0: pyparted-3.10.patch
Patch3: python-parted-parted-binary.patch
Patch4: python-parted-featurestest.patch
Patch5: more-features-exposed.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
# tests requires
BuildRequires: e2fsprogs
@@ -47,8 +48,7 @@ Python module for the parted library. It is used for manipulating
partition tables.
%prep
%setup -q -n %{srcname}-%{version}
%autopatch -p1
%autosetup -p1 -n %{srcname}-%{version}
%build
%python_build