Compare commits

...
Sign in to create a new pull request.

93 commits

Author SHA1 Message Date
Python Maint
f00b886f17 Rebuilt for Python 3.15.0b4 ABI change 2026-07-22 10:51:18 +02:00
Fedora Release Engineering
d1e72e3677 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-16 17:55:18 +00:00
Python Maint
df740093cc Rebuilt for Python 3.15 2026-06-03 17:46:10 +02:00
Fedora Release Engineering
0ad0fbeef9 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 06:00:48 +00:00
Python Maint
2e82ee90f0 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:40:14 +02:00
Python Maint
bd307c7d69 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:09:13 +02:00
Brian C. Lane
d5724a4b25 tests: Move pyparted tests from sti to tmt
This converts to using tmt style tests, and adds a test that actually
uses the installed pyparted library to manipulate a temporary disk
image.

Resolves: rhbz#2383021
2025-07-25 10:09:24 -07:00
Fedora Release Engineering
e753df8da2 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 06:23:09 +00:00
Yaakov Selkowitz
f5a2e7a5d4 Drop unused six dependency
six is unused as of 3.13.0:

2f58eaea26
2025-06-15 12:59:31 -04:00
Python Maint
f6172d0db0 Rebuilt for Python 3.14 2025-06-02 21:23:35 +02:00
Fedora Release Engineering
a5d5cf52a2 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 11:17:57 +00:00
Fedora Release Engineering
7db2b45750 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 08:56:04 +00:00
Python Maint
2164058f95 Rebuilt for Python 3.13 2024-06-07 09:50:44 +02:00
Fedora Release Engineering
28afbe9415 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 00:38:54 +00:00
Fedora Release Engineering
b43cea136d Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 22:47:14 +00:00
Fedora Release Engineering
68b2466ffd Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 06:46:37 +00:00
Python Maint
560c551e0c Rebuilt for Python 3.12 2023-06-22 14:22:46 +02:00
David Cantrell
a4238a2a12 Upgrade to pyparted-3.13.0
Signed-off-by: David Cantrell <dcantrell@redhat.com>
2023-06-22 07:19:58 -04:00
Python Maint
5cc8e359da Rebuilt for Python 3.12 2023-06-15 15:07:14 +02:00
David Cantrell
305aca41de Use non-deprecated syntax for the %patch macros
Signed-off-by: David Cantrell <dcantrell@redhat.com>
2023-06-14 11:12:32 -04:00
Python Maint
1f78cfc5da Rebuilt for Python 3.12 2023-06-13 21:37:29 +02:00
David Cantrell
6d94398a54 Fix FTBFS with _ped.disktype test case for gpt (#2171656)
Update License tag to SPDX expression

Signed-off-by: David Cantrell <dcantrell@redhat.com>
2023-03-02 12:01:05 -05:00
Fedora Release Engineering
c779229780 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 10:42:21 +00:00
Fedora Release Engineering
b71463d9af Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 15:50:35 +00:00
David Cantrell
52a1c8bfaf Patch pyparted to handle PED_DISK_TYPE_PARTITION_TYPE_ID for the
msdos disk type and PED_DISK_TYPE_PARTITION_TYPE_UUID for the gpt
  label (#2098792)

Signed-off-by: David Cantrell <dcantrell@redhat.com>
2022-06-21 15:22:04 -04:00
Adam Williamson
d32b10b877 Backport PR #92 to fix tests with parted 3.5 (#2098792) 2022-06-20 13:24:26 -07:00
Python Maint
e8f5fc9089 Rebuilt for Python 3.11 2022-06-13 16:02:42 +02:00
David Cantrell
791a789e24 BR python3-setuptools
Signed-off-by: David Cantrell <dcantrell@redhat.com>
2022-03-07 14:45:25 -05:00
David Cantrell
775cb0e480 Upgrade to pyparted-3.12.0
Signed-off-by: David Cantrell <dcantrell@redhat.com>
2022-03-07 14:22:47 -05:00
Fedora Release Engineering
0ae7d75235 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 09:51:49 +00:00
Fedora Release Engineering
10bc59882e - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 04:29:12 +00:00
Python Maint
b244549e30 Rebuilt for Python 3.10 2021-06-03 13:33:21 +02:00
Fedora Release Engineering
197cf98baa - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 08:56:08 +00:00
Tom Stellard
c514058933 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-08 19:41:58 +00:00
David Cantrell
fd1528e088 Upgrade to pyparted-3.11.7 (BZ#1890443)
Set PY_SSIZE_T_CLEAN for the build (bcl)
add nvme support
Update RELEASE file to make last step be "make pypi" (dcantrell)

Signed-off-by: David Cantrell <david.l.cantrell@gmail.com>
2020-10-23 15:56:10 -04:00
Tom Stellard
6e7f603dca Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
2020-07-14 03:10:33 +00:00
Miro Hrončok
c37e0a86d4 Rebuilt for Python 3.9 2020-05-23 06:49:31 +02:00
David Cantrell
7d25590c0f Require at least libparted 3.3 and python 3.7 (dcantrell)
pedmodule.c: Fix partition enum flag handling (bcl)
Add support for chromeos_kernel and bls_boot partition flags (bcl)
Move exception declarations to _pedmodule.c (dcantrell)

Signed-off-by: David Cantrell <dcantrell@redhat.com>
2020-03-09 13:10:53 -04:00
David Cantrell
e54c3fce0a Use Decimal for Device.getSize() operations, return a
float (#1801355)
Update the 'twine upload' line in the Makefile
Don't intentionally prohibit Python 2 usage (#67)
mips64 support
2020-02-11 10:58:02 -05:00
Fedora Release Engineering
85315a929d - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 10:14:08 +00:00
David Cantrell
2f159223e6 Fix deprecation warning in parted/cachedlist.py (#1772060) 2019-11-15 09:09:03 -05:00
Miro Hrončok
914d8b9212 Drop the %{py3dir} pattern
%{py3dir} is outside of the expected build directory,
causing this error when only building for Python 3:

    Empty %files file /builddir/build/BUILD/pyparted-3.11.2/debugsourcefiles.list

That's because the mechanism that looks for sources checks all the compiled
files in the build directory and because they are all outside, it fails.
This hasn't happened with the python2 subpackage, because it found the
compiled python2 files.

Note that %{py3dir} was part of the Python guidelines early in the Python 3
adoption in Fedora, long before we've introduced the debugsource packages.

Instead, we create a directory called "py3dir" in the build directory.
There are other solutions possible, but this is the least intrusive in this case.
2019-10-20 22:24:31 +02:00
Miro Hrončok
32e3694413 Remove python2-pyparted from Fedora 32+
https://bugzilla.redhat.com/show_bug.cgi?id=1761222
2019-10-20 21:53:16 +02:00
Miro Hrončok
e15d28a3aa Rebuilt for Python 3.8.0rc1 (#1748018) 2019-10-03 13:59:49 +02:00
Miro Hrončok
d4bab4c0f3 Rebuilt for Python 3.8 2019-08-16 05:17:06 +02:00
Fedora Release Engineering
9e2b6c9c00 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 11:46:14 +00:00
David Cantrell
431cba9788 pyparted-3.11.2 (dcantrell)
Do not remove the generated tarballs. (dcantrell)
Update the RELEASE file. (dcantrell)
tests: Fix flag_get_name tests (bcl)
Avoid potential NULL dereferences in pydisk.c and pytimer.c
  (dcantrell)
New - example to query device capacity (jflorian)
correct spelling mistake (edward)
_ped's *_flag_get_name methods now throw a PartedException instead of
  ValueError on unsupported flags. (lukasz.zemczak)
Make the partition name a property on parted.Partition objects (#34)
  (dcantrell)
2019-02-01 13:55:01 -05:00
c85f2a3201 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:38 +01:00
David Cantrell
7ddeef7214 gating.yml -> gating.yaml 2019-01-23 16:04:23 -05:00
David Cantrell
450d75ce78 Modify the test run line in tests.yml
'run: run_tests.sh' -> run: ./run_tests.sh'
2018-12-19 10:34:21 -05:00
David Cantrell
f07ca87d45 tests.yaml -> tests.yml 2018-12-19 09:58:30 -05:00
David Cantrell
b859cadf3f Add Fedora CI gating tests for pyparted. 2018-12-19 09:55:01 -05:00
Florian Weimer
efb99947ae Rebuild with fixed binutils 2018-07-31 12:55:15 +02:00
79c57a44cb
Rebuild for new binutils
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-27 14:55:21 +02:00
David Cantrell
02dd5857d4 Do not disable python2 builds by default. There are still some packages
that have not been updated to python3 and require python2-pyparted.
2018-07-26 14:31:45 -04:00
David Cantrell
9d1cdadc55 Do not disable python2 builds by default. There are still some packages
that have not been updated to python3 and require python2-pyparted.
2018-07-26 13:29:11 -04:00
David Cantrell
a332a006d0 Conditionalize python2 and python3 builds to make the SRPM more portable
across releases.  On RHEL > 7 and Fedora > 28, do not build for python2.
  On RHEL <= 7, do not build for python3.
2018-07-25 15:21:54 -04:00
David Cantrell
fd1a7f123a Use 'python2' when building the Python 2.x bindings (#1605566)
BuildRequires gcc (#1605566)
%{python_sitearch} -> %{python2_sitearch} (#1605566)
2018-07-24 10:18:49 -04:00
David Cantrell
fa5d5e7648 Use 'python2' when building the Python 2.x bindings (#1605566)
BuildRequires gcc (#1605566)
2018-07-24 10:09:02 -04:00
David Cantrell
4bc49bbd4f Use 'python2' when building the Python 2.x bindings (#1605566) 2018-07-24 10:08:41 -04:00
Fedora Release Engineering
c184324114 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 23:11:56 +00:00
Jason Tibbitts
715574b2a5 Remove needless use of %defattr 2018-07-10 01:54:21 -05:00
Miro Hrončok
fcc63ed368 Rebuilt for Python 3.7 2018-06-15 23:21:50 +02:00
Adam Williamson
e63a0b6879 Add epoch to pyparted provides/obsoletes/requires
Without this, they don't work right, especially the obsolete -
upgrade doesn't work right as we don't properly obsolete it.
2018-04-02 16:21:13 -07:00
14eba19809
Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 07:32:21 +01:00
321540f0d0 Remove BuildRoot definition
None of currently supported distributions need that.
It was needed last for EL5 which is EOL now

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 00:22:29 +01:00
Fedora Release Engineering
6a04fce2f7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 06:16:37 +00:00
Iryna Shcherbina
f02fbabd72 Update Python 2 dependency declarations to new packaging standards 2018-01-15 19:35:05 +01:00
6c17f4a6ce Add Provides for the old name without %_isa 2017-08-20 10:41:20 -04:00
c93c7d454d Python 2 binary package renamed to python2-pyparted 2017-08-19 09:39:21 -04:00
Fedora Release Engineering
c160e96b91 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 06:35:14 +00:00
Fedora Release Engineering
6547141dac - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 09:22:38 +00:00
David Cantrell
8edcbf8542 Require parted-3.2-18 in order to ensure #25 does not occur 2017-07-13 13:35:28 -04:00
David Cantrell
86d5ab3888 BuildRequires python[3]-six 2017-06-26 08:14:27 -04:00
David Cantrell
023abd7282 Upgrade to pyparted-3.11.0 2017-06-22 17:26:14 -04:00
Fedora Release Engineering
6741677a7a - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 08:08:37 +00:00
Charalampos Stratakis
e9a00b12d9 Fix previous changelog's entry 2016-12-13 15:22:59 +01:00
Charalampos Stratakis
e4a9118239 Rebuild for Python 3.6 2016-12-13 01:28:41 +01:00
Fedora Release Engineering
00ffc0c1a2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 08:36:15 +00:00
Fedora Release Engineering
5e101acab7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 18:47:03 +00:00
Robert Kuska
8ef7f93e9d Rebuilt for Python3.5 rebuild 2015-10-15 10:01:23 +02:00
David Cantrell
01446019c7 test__ped_filesystem.py for for Python 2 vs 3. (dcantrell) 2015-08-27 16:01:54 -04:00
David Cantrell
6848d4babc Use sys.exit instead of os._exit with pocketlint. (clumens)
- Use addCleanup instead of tearDown for removing temp-device. (clumens)
- Add a new makefile target that does everything needed for jenkins.
  (clumens)
- Merge pull request #13 from atodorov/fix_imports (david.l.cantrell)
- Merge pull request #14 from vpodzime/master (david.l.cantrell)
- Do not support and use hashing on pyparted's objects (#1229186) (vpodzime)
- Fix pylint errors (atodorov)
- Merge pull request #12 from atodorov/remove_hardcoded_paths
  (david.l.cantrell)
- Merge pull request #8 from atodorov/tests_ped_filesystem (david.l.cantrell)
- Merge pull request #10 from atodorov/tests_ped_partition (david.l.cantrell)
- Merge pull request #6 from atodorov/add_coverage (david.l.cantrell)
- Remove hard-coded paths. You should have all tools in PATH when working on
  pyparted. (atodorov)
- run the test suite under python-coverage and report the results (atodorov)
- add test coverage for _ped.Partition (atodorov)
- Merge pull request #9 from atodorov/tests_dont_skip_if_root
  (david.l.cantrell)
- Merge pull request #11 from atodorov/fix_api_docs (david.l.cantrell)
- update pydoc descriptions based on actual behavior (atodorov)
- don't skip DeviceGetNextTestCase if running as root (atodorov)
- add test cases for _ped.FileSystem (atodorov)
- Merge pull request #7 from atodorov/tests_readme (david.l.cantrell)
- Remove old BUGS file. (david.l.cantrell)
- add simple test documentation (atodorov)
- Merge pull request #5 from vpodzime/master (david.l.cantrell)
- Beware of Python 3's version of the map() built-in function (vpodzime)
- Remove the MANIFEST file when doing 'make release' (dcantrell)
- Remove fedorahosted steps from the RELEASE file. (dcantrell)
- Update documentation and Makefile for github. (dcantrell)
- Stop using type() to do comparisons. (clumens)
- Merge pull request #4 from vpodzime/master-python3 (david.l.cantrell)
- Don't blindly expect that everything is hashable (vpodzime)
- Replace filter() call with list comprehension (vpodzime)
- Fix an incorrect reference to "type". (clumens)
- Merge pull request #3 from clumens/master (clumens)
- Only run pylint against a python3 build of pyparted. (clumens)
- Fix the fdisk example up to pass pylint. (clumens)
- Catch exact exceptions in a couple places. (clumens)
- Ignore some pylint warnings. (clumens)
- Don't use string formatting in calls to log.whatever. (clumens)
- Fix a couple unused variable warnings. (clumens)
- Define things in the setUp methods, not in runTest. (clumens)
- Don't redefine reserved or already used function names. (clumens)
- Fix import errors turned up by pylint. (clumens)
- Convert to using pocketlint to run pylint. (clumens)
- Don't run "git clean -fdx" in the "make clean" target. (clumens)
- Add extension whitelist for _ped to pylint call (bcl)
- Merge pull request #2 from jflorian/master (david.l.cantrell)
- New - example to create a single bootable partition (john_florian)
- Remember to pass the arguments to the exception handler. (clumens)
- Put new _ped constants and functions into the parted module. (clumens)
- PyInt_FromLong doesn't exist in python3, so always use PyLong_FromLong.
  (clumens)
- Add new functions to extend exception handling. (clumens)
- Add function for resetting partition's number. (vpodzime)
- Fix localeC imports in a handful of src/parted/*.py files. (dcantrell)
- Disable false positive E0611 errors on src/parted/__init__.py (dcantrell)
- ped_unit_get_size() returns a long long, not just a long. (dcantrell)
- Adjust test cases to deal with run-time support. (dcantrell)
- Only import partition types that exist. (dcantrell)
- Note x.y.z version number. (dcantrell)
- Remove .travis.yml and tox.ini (dcantrell)
- Skip 'aix' diskType in FreshDiskTestCase (dcantrell)
- Handle running the test suite on armv7l hosts. (dcantrell)
- Fix getPartitionByPath for disks that are just plain files. (dlehman)
- ext2 may be smaller than the end of the device (#1095904) (bcl)
- support ppc64le in pyparted (hamzy)
- Fix up the PYTHONPATH for "make check" and "make test". (clumens)
- Remove geom tests that don't fail (bcl)
- Add btrfs and ext4 for filesystem type test (bcl)
- Revert "Add support for hfs_esp flag" (bcl)
- Teach pyparted that aarch64 support GPT partitions. (dcantrell)
- And disable the length one, too. (clumens)
- Disable one test case that fails on ppc64, for the moment. (clumens)
- Update pylint options for the latest version of that program. (clumens)
- Fix 'make bumpver' to handle multiple decimal points. (dcantrell)
- Add support for hfs_esp flag (dcantrell)
- Add support for esp flag (dcantrell)
- Add support for irst flag (dcantrell)
- Add support for msftdata flag (dcantrell)
- Don't assume tools will be in the user's $PATH. (clumens)
- Fix a lot of problems pylint caught. (clumens)
- Move from pychecker to pylint. (clumens)
- Have pychecker ignore some fale positives on missing class attrs. (clumens)
- setattr doesn't return any value. (clumens)
- Fix up pychecker errors reported by Jenkins. (dcantrell)
- Subject: [PATCH] pyparted: export ped_disk_new functionality (rnsastry)
- Correct boilerplate modifications. (dcantrell)
- Tests also require the parted binary. (g2p.code)
- Work around Travis's broken defaults. (g2p.code)
2015-08-27 15:33:57 -04:00
David Cantrell
2540777db9 Use sys.exit instead of os._exit with pocketlint. (clumens)
- Use addCleanup instead of tearDown for removing temp-device. (clumens)
- Add a new makefile target that does everything needed for jenkins.
  (clumens)
- Merge pull request #13 from atodorov/fix_imports (david.l.cantrell)
- Merge pull request #14 from vpodzime/master (david.l.cantrell)
- Do not support and use hashing on pyparted's objects (#1229186) (vpodzime)
- Fix pylint errors (atodorov)
- Merge pull request #12 from atodorov/remove_hardcoded_paths
  (david.l.cantrell)
- Merge pull request #8 from atodorov/tests_ped_filesystem (david.l.cantrell)
- Merge pull request #10 from atodorov/tests_ped_partition (david.l.cantrell)
- Merge pull request #6 from atodorov/add_coverage (david.l.cantrell)
- Remove hard-coded paths. You should have all tools in PATH when working on
  pyparted. (atodorov)
- run the test suite under python-coverage and report the results (atodorov)
- add test coverage for _ped.Partition (atodorov)
- Merge pull request #9 from atodorov/tests_dont_skip_if_root
  (david.l.cantrell)
- Merge pull request #11 from atodorov/fix_api_docs (david.l.cantrell)
- update pydoc descriptions based on actual behavior (atodorov)
- don't skip DeviceGetNextTestCase if running as root (atodorov)
- add test cases for _ped.FileSystem (atodorov)
- Merge pull request #7 from atodorov/tests_readme (david.l.cantrell)
- Remove old BUGS file. (david.l.cantrell)
- add simple test documentation (atodorov)
- Merge pull request #5 from vpodzime/master (david.l.cantrell)
- Beware of Python 3's version of the map() built-in function (vpodzime)
- Remove the MANIFEST file when doing 'make release' (dcantrell)
- Remove fedorahosted steps from the RELEASE file. (dcantrell)
- Update documentation and Makefile for github. (dcantrell)
- Stop using type() to do comparisons. (clumens)
- Merge pull request #4 from vpodzime/master-python3 (david.l.cantrell)
- Don't blindly expect that everything is hashable (vpodzime)
- Replace filter() call with list comprehension (vpodzime)
- Fix an incorrect reference to "type". (clumens)
- Merge pull request #3 from clumens/master (clumens)
- Only run pylint against a python3 build of pyparted. (clumens)
- Fix the fdisk example up to pass pylint. (clumens)
- Catch exact exceptions in a couple places. (clumens)
- Ignore some pylint warnings. (clumens)
- Don't use string formatting in calls to log.whatever. (clumens)
- Fix a couple unused variable warnings. (clumens)
- Define things in the setUp methods, not in runTest. (clumens)
- Don't redefine reserved or already used function names. (clumens)
- Fix import errors turned up by pylint. (clumens)
- Convert to using pocketlint to run pylint. (clumens)
- Don't run "git clean -fdx" in the "make clean" target. (clumens)
- Add extension whitelist for _ped to pylint call (bcl)
- Merge pull request #2 from jflorian/master (david.l.cantrell)
- New - example to create a single bootable partition (john_florian)
- Remember to pass the arguments to the exception handler. (clumens)
- Put new _ped constants and functions into the parted module. (clumens)
- PyInt_FromLong doesn't exist in python3, so always use PyLong_FromLong.
  (clumens)
- Add new functions to extend exception handling. (clumens)
- Add function for resetting partition's number. (vpodzime)
- Fix localeC imports in a handful of src/parted/*.py files. (dcantrell)
- Disable false positive E0611 errors on src/parted/__init__.py (dcantrell)
- ped_unit_get_size() returns a long long, not just a long. (dcantrell)
- Adjust test cases to deal with run-time support. (dcantrell)
- Only import partition types that exist. (dcantrell)
- Note x.y.z version number. (dcantrell)
- Remove .travis.yml and tox.ini (dcantrell)
- Skip 'aix' diskType in FreshDiskTestCase (dcantrell)
- Handle running the test suite on armv7l hosts. (dcantrell)
- Fix getPartitionByPath for disks that are just plain files. (dlehman)
- ext2 may be smaller than the end of the device (#1095904) (bcl)
- support ppc64le in pyparted (hamzy)
- Fix up the PYTHONPATH for "make check" and "make test". (clumens)
- Remove geom tests that don't fail (bcl)
- Add btrfs and ext4 for filesystem type test (bcl)
- Revert "Add support for hfs_esp flag" (bcl)
- Teach pyparted that aarch64 support GPT partitions. (dcantrell)
- And disable the length one, too. (clumens)
- Disable one test case that fails on ppc64, for the moment. (clumens)
- Update pylint options for the latest version of that program. (clumens)
- Fix 'make bumpver' to handle multiple decimal points. (dcantrell)
- Add support for hfs_esp flag (dcantrell)
- Add support for esp flag (dcantrell)
- Add support for irst flag (dcantrell)
- Add support for msftdata flag (dcantrell)
- Don't assume tools will be in the user's $PATH. (clumens)
- Fix a lot of problems pylint caught. (clumens)
- Move from pychecker to pylint. (clumens)
- Have pychecker ignore some fale positives on missing class attrs. (clumens)
- setattr doesn't return any value. (clumens)
- Fix up pychecker errors reported by Jenkins. (dcantrell)
- Subject: [PATCH] pyparted: export ped_disk_new functionality (rnsastry)
- Correct boilerplate modifications. (dcantrell)
- Tests also require the parted binary. (g2p.code)
- Work around Travis's broken defaults. (g2p.code)
2015-08-27 15:33:18 -04:00
David Cantrell
3dc1bac295 Use sys.exit instead of os._exit with pocketlint. (clumens)
- Use addCleanup instead of tearDown for removing temp-device. (clumens)
- Add a new makefile target that does everything needed for jenkins.
  (clumens)
- Merge pull request #13 from atodorov/fix_imports (david.l.cantrell)
- Merge pull request #14 from vpodzime/master (david.l.cantrell)
- Do not support and use hashing on pyparted's objects (#1229186) (vpodzime)
- Fix pylint errors (atodorov)
- Merge pull request #12 from atodorov/remove_hardcoded_paths
  (david.l.cantrell)
- Merge pull request #8 from atodorov/tests_ped_filesystem (david.l.cantrell)
- Merge pull request #10 from atodorov/tests_ped_partition (david.l.cantrell)
- Merge pull request #6 from atodorov/add_coverage (david.l.cantrell)
- Remove hard-coded paths. You should have all tools in PATH when working on
  pyparted. (atodorov)
- run the test suite under python-coverage and report the results (atodorov)
- add test coverage for _ped.Partition (atodorov)
- Merge pull request #9 from atodorov/tests_dont_skip_if_root
  (david.l.cantrell)
- Merge pull request #11 from atodorov/fix_api_docs (david.l.cantrell)
- update pydoc descriptions based on actual behavior (atodorov)
- don't skip DeviceGetNextTestCase if running as root (atodorov)
- add test cases for _ped.FileSystem (atodorov)
- Merge pull request #7 from atodorov/tests_readme (david.l.cantrell)
- Remove old BUGS file. (david.l.cantrell)
- add simple test documentation (atodorov)
- Merge pull request #5 from vpodzime/master (david.l.cantrell)
- Beware of Python 3's version of the map() built-in function (vpodzime)
- Remove the MANIFEST file when doing 'make release' (dcantrell)
- Remove fedorahosted steps from the RELEASE file. (dcantrell)
- Update documentation and Makefile for github. (dcantrell)
- Stop using type() to do comparisons. (clumens)
- Merge pull request #4 from vpodzime/master-python3 (david.l.cantrell)
- Don't blindly expect that everything is hashable (vpodzime)
- Replace filter() call with list comprehension (vpodzime)
- Fix an incorrect reference to "type". (clumens)
- Merge pull request #3 from clumens/master (clumens)
- Only run pylint against a python3 build of pyparted. (clumens)
- Fix the fdisk example up to pass pylint. (clumens)
- Catch exact exceptions in a couple places. (clumens)
- Ignore some pylint warnings. (clumens)
- Don't use string formatting in calls to log.whatever. (clumens)
- Fix a couple unused variable warnings. (clumens)
- Define things in the setUp methods, not in runTest. (clumens)
- Don't redefine reserved or already used function names. (clumens)
- Fix import errors turned up by pylint. (clumens)
- Convert to using pocketlint to run pylint. (clumens)
- Don't run "git clean -fdx" in the "make clean" target. (clumens)
- Add extension whitelist for _ped to pylint call (bcl)
- Merge pull request #2 from jflorian/master (david.l.cantrell)
- New - example to create a single bootable partition (john_florian)
- Remember to pass the arguments to the exception handler. (clumens)
- Put new _ped constants and functions into the parted module. (clumens)
- PyInt_FromLong doesn't exist in python3, so always use PyLong_FromLong.
  (clumens)
- Add new functions to extend exception handling. (clumens)
- Add function for resetting partition's number. (vpodzime)
- Fix localeC imports in a handful of src/parted/*.py files. (dcantrell)
- Disable false positive E0611 errors on src/parted/__init__.py (dcantrell)
- ped_unit_get_size() returns a long long, not just a long. (dcantrell)
- Adjust test cases to deal with run-time support. (dcantrell)
- Only import partition types that exist. (dcantrell)
- Note x.y.z version number. (dcantrell)
- Remove .travis.yml and tox.ini (dcantrell)
- Skip 'aix' diskType in FreshDiskTestCase (dcantrell)
- Handle running the test suite on armv7l hosts. (dcantrell)
- Fix getPartitionByPath for disks that are just plain files. (dlehman)
- ext2 may be smaller than the end of the device (#1095904) (bcl)
- support ppc64le in pyparted (hamzy)
- Fix up the PYTHONPATH for "make check" and "make test". (clumens)
- Remove geom tests that don't fail (bcl)
- Add btrfs and ext4 for filesystem type test (bcl)
- Revert "Add support for hfs_esp flag" (bcl)
- Teach pyparted that aarch64 support GPT partitions. (dcantrell)
- And disable the length one, too. (clumens)
- Disable one test case that fails on ppc64, for the moment. (clumens)
- Update pylint options for the latest version of that program. (clumens)
- Fix 'make bumpver' to handle multiple decimal points. (dcantrell)
- Add support for hfs_esp flag (dcantrell)
- Add support for esp flag (dcantrell)
- Add support for irst flag (dcantrell)
- Add support for msftdata flag (dcantrell)
- Don't assume tools will be in the user's $PATH. (clumens)
- Fix a lot of problems pylint caught. (clumens)
- Move from pychecker to pylint. (clumens)
- Have pychecker ignore some fale positives on missing class attrs. (clumens)
- setattr doesn't return any value. (clumens)
- Fix up pychecker errors reported by Jenkins. (dcantrell)
- Subject: [PATCH] pyparted: export ped_disk_new functionality (rnsastry)
- Correct boilerplate modifications. (dcantrell)
- Tests also require the parted binary. (g2p.code)
- Work around Travis's broken defaults. (g2p.code)
2015-08-27 14:59:05 -04:00
Dennis Gilmore
32b4436a91 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 18:14:59 +00:00
David Cantrell
39e1ef8ff9 Upgrade to pyparted-3.10.5 2015-05-07 15:07:18 -04:00
David Cantrell
46d6468726 Upgrade to pyparted-3.10.4 2015-05-05 08:20:00 -04:00
David Cantrell
3bd288d3b5 Upgrade to pyparted-3.10.3 2015-01-16 16:13:30 -05:00
David Cantrell
20d2c16e9a Upgrade to pyparted-3.10.2 2014-11-26 09:23:57 -05:00
David Cantrell
76b6921ae9 Upgrade to pyparted-3.10.1 2014-11-10 14:02:57 -05:00
David Cantrell
c528d98de6 Upgrade to pyparted-3.10.1 2014-11-10 13:48:59 -05:00
David Cantrell
43eff19178 Upgrade to pyparted-3.10.0
- Add python3 subpackage (#985308)
2014-09-24 16:41:14 -04:00
9 changed files with 510 additions and 33 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

20
.gitignore vendored
View file

@ -1,4 +1,16 @@
pyparted-3.9.2.tar.gz
/pyparted-3.9.3.tar.gz
/pyparted-3.9.4.tar.gz
/pyparted-3.9.5.tar.gz
/pyparted-3.10.6.tar.gz
/pyparted-3.10.7.tar.gz
/pyparted-3.11.0.tar.gz
/pyparted-3.11.2.tar.gz
/pyparted-3.11.2.tar.gz.asc
/pyparted-3.11.3.tar.gz
/pyparted-3.11.4.tar.gz
/pyparted-3.11.4.tar.gz.asc
/pyparted-3.11.5.tar.gz
/pyparted-3.11.5.tar.gz.asc
/pyparted-3.11.7.tar.gz
/pyparted-3.11.7.tar.gz.asc
/pyparted-3.12.0.tar.gz
/pyparted-3.12.0.tar.gz.asc
/pyparted-3.13.0.tar.gz
/pyparted-3.13.0.tar.gz.asc

6
gating.yaml Normal file
View file

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing
rules:
- !PassingTestCaseRule {test_case_name: dist.depcheck}

BIN
keyring.gpg Normal file

Binary file not shown.

9
plans/run-tests.fmf Normal file
View file

@ -0,0 +1,9 @@
summary: Run pyparted tests
prepare:
how: install
package:
- python3-pyparted
execute:
script: |
fallocate -l 1G $PWD/disk.img
./tests/scripts/pyparted-tests $PWD/disk.img

View file

@ -1,48 +1,408 @@
Summary: Python module for GNU parted
Name: pyparted
Epoch: 1
Version: 3.9.5
Release: 2%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://fedorahosted.org/pyparted
Summary: Python module for GNU parted
Name: pyparted
Epoch: 1
Version: 3.13.0
Release: 17%{?dist}
License: GPL-2.0-or-later
URL: https://github.com/dcantrell/pyparted
Source0: http://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}.tar.gz
Source0: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
Source2: keyring.gpg
Source3: trustdb.gpg
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
BuildRequires: python-devel
BuildRequires: parted-devel >= 3.1-14
BuildRequires: make
BuildRequires: gcc
BuildRequires: parted-devel >= 3.4
BuildRequires: pkgconfig
BuildRequires: e2fsprogs
BuildRequires: gnupg2
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description
Python module for the parted library. It is used for manipulating
partition tables.
%package -n python3-pyparted
Summary: Python 3 module for GNU parted
%description -n python3-pyparted
Python module for the parted library. It is used for manipulating
partition tables. This package provides Python 3 bindings for parted.
%prep
%setup -q
# Verify source archive signature
gpg --no-default-keyring --keyring %{SOURCE2} --trustdb-name %{SOURCE3} --verify %{SOURCE1} %{SOURCE0} || exit 1
%autosetup
%build
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%make_build CFLAGS="%{optflags} -fcommon"
%check
make test
%clean
rm -rf %{buildroot}
%install
%make_install
%files
%defattr(-,root,root,-)
%doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO
%{python_sitearch}/_pedmodule.so
%{python_sitearch}/parted
%{python_sitearch}/%{name}-%{version}-*.egg-info
%files -n python3-pyparted
%doc AUTHORS HACKING NEWS README.md RELEASE TODO
%license LICENSE
%{python3_sitearch}/_ped.*.so
%{python3_sitearch}/parted
%{python3_sitearch}/%{name}-%{version}-*.egg-info
%changelog
* Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 1:3.13.0-17
- Rebuilt for Python 3.15.0b4 ABI change
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 1:3.13.0-15
- Rebuilt for Python 3.15
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 1:3.13.0-13
- Rebuilt for Python 3.14.0rc3 bytecode
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 1:3.13.0-12
- Rebuilt for Python 3.14.0rc2 bytecode
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sun Jun 15 2025 Yaakov Selkowitz <yselkowi@redhat.com> - 1:3.13.0-10
- Drop unused six dependency
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 1:3.13.0-9
- Rebuilt for Python 3.14
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1:3.13.0-6
- Rebuilt for Python 3.13
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jun 22 2023 Python Maint <python-maint@redhat.com> - 1:3.13.0-2
- Rebuilt for Python 3.12
* Wed Jun 21 2023 David Cantrell <dcantrell@redhat.com> - 1:3.13.0-1
- Upgrade to pyparted-3.13.0
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 1:3.12.0-11
- Rebuilt for Python 3.12
* Wed Jun 14 2023 David Cantrell <dcantrell@redhat.com> - 1:3.12.0-10
- Use non-deprecated syntax for the %%patch macros
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1:3.12.0-9
- Rebuilt for Python 3.12
* Thu Mar 02 2023 David Cantrell <dcantrell@redhat.com> - 1:3.12.0-8
- Fix FTBFS with _ped.disktype test case for gpt (#2171656)
- Update License tag to SPDX expression
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.12.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.12.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jun 21 2022 David Cantrell <dcantrell@redhat.com> - 1:3.12.0-5
- Patch pyparted to handle PED_DISK_TYPE_PARTITION_TYPE_ID for the
msdos disk type and PED_DISK_TYPE_PARTITION_TYPE_UUID for the gpt
label (#2098792)
* Mon Jun 20 2022 Adam Williamson <awilliam@redhat.com> - 1:3.12.0-4
- Backport PR #92 to fix tests with parted 3.5 (#2098792)
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1:3.12.0-3
- Rebuilt for Python 3.11
* Mon Mar 07 2022 David Cantrell <dcantrell@redhat.com> - 3.12.0-2
- BR python3-setuptools
* Mon Mar 07 2022 David Cantrell <dcantrell@redhat.com> - 3.12.0-1
- Upgrade to pyparted-3.12.0
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1:3.11.7-3
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Fri Oct 23 2020 David Cantrell <dcantrell@redhat.com> - 1:3.11.7-1
- Upgrade to pyparted-3.11.7 (BZ#1890443)
- Set PY_SSIZE_T_CLEAN for the build (bcl)
- add nvme support
- Update RELEASE file to make last step be "make pypi" (dcantrell)
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 1:3.11.5-3
- Use make macros
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1:3.11.5-2
- Rebuilt for Python 3.9
* Mon Mar 09 2020 David Cantrell <dcantrell@redhat.com> - 1:3.11.5-1
- Require at least libparted 3.3 and python 3.7 (dcantrell)
- pedmodule.c: Fix partition enum flag handling (bcl)
- Add support for chromeos_kernel and bls_boot partition flags (bcl)
- Move exception declarations to _pedmodule.c (dcantrell)
* Tue Feb 11 2020 David Cantrell <dcantrell@redhat.com> - 1:3.11.4-1
- Use Decimal for Device.getSize() operations, return a
float (#1801355)
- Update the 'twine upload' line in the Makefile
- Don't intentionally prohibit Python 2 usage (#67)
- mips64 support
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Nov 15 2019 David Cantrell <dcantrell@redhat.com> - 1:3.11.3-1
- Fix deprecation warning in parted/cachedlist.py (#1772060)
* Sun Oct 20 2019 Miro Hrončok <mhroncok@redhat.com> - 1:3.11.2-5
- Remove python2-pyparted from Fedora 32+
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1:3.11.2-4
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1:3.11.2-3
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 David Cantrell <dcantrell@redhat.com> - 1:3.11.2-1
- pyparted-3.11.2 (dcantrell)
- Do not remove the generated tarballs. (dcantrell)
- Update the RELEASE file. (dcantrell)
- tests: Fix flag_get_name tests (bcl)
- Avoid potential NULL dereferences in pydisk.c and pytimer.c
(dcantrell)
- New - example to query device capacity (jflorian)
- correct spelling mistake (edward)
- _ped's *_flag_get_name methods now throw a PartedException instead of
ValueError on unsupported flags. (lukasz.zemczak)
- Make the partition name a property on parted.Partition objects (#34)
(dcantrell)
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 1:3.11.0-17
- Rebuild with fixed binutils
* Fri Jul 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1:3.11.0-16
- Rebuild for new binutils
* Thu Jul 26 2018 David Cantrell <dcantrell@redhat.com> - 1:3.11.0-15
- Do not disable python2 builds by default. There are still some packages
that have not been updated to python3 and require python2-pyparted.
* Wed Jul 25 2018 David Cantrell <dcantrell@redhat.com> - 1:3.11.0-14
- Conditionalize python2 and python3 builds to make the SRPM more portable
across releases. On RHEL > 7 and Fedora > 28, do not build for python2.
On RHEL <= 7, do not build for python3.
* Tue Jul 24 2018 David Cantrell <dcantrell@redhat.com> - 1:3.11.0-13
- Use 'python2' when building the Python 2.x bindings (#1605566)
- BuildRequires gcc (#1605566)
- %%{python_sitearch} -> %%{python2_sitearch} (#1605566)
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1:3.11.0-11
- Rebuilt for Python 3.7
* Mon Apr 02 2018 Adam Williamson <awilliam@redhat.com> - 1:3.11.0-10
- Make pyparted provides/obsoletes include the epoch
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Jan 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1:3.11.0-8
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:3.11.0-7
- Add Provides for the old name without %%_isa
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:3.11.0-6
- Python 2 binary package renamed to python2-pyparted
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu Jul 13 2017 David Cantrell <dcantrell@redhat.com> - 1:3.11.0-3
- Require parted-3.2-18 in order to ensure #25 does not occur
* Mon Jun 26 2017 David Cantrell <dcantrell@redhat.com> - 1:3.11.0-2
- BuildRequires python[3]-six
* Thu Jun 22 2017 David Cantrell <dcantrell@redhat.com> - 1:3.11.0-1
- Upgrade to pyparted-3.11.0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.10.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 1:3.10.7-5
- Rebuild for Python 3.6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.10.7-4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.10.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Oct 15 2015 Robert Kuska <rkuska@redhat.com> - 1:3.10.7-2
- Rebuilt for Python3.5 rebuild
* Thu Aug 27 2015 David Cantrell <dcantrell@redhat.com> - 3.10.7-1
- test__ped_filesystem.py for for Python 2 vs 3. (dcantrell)
* Thu Aug 27 2015 David Cantrell <dcantrell@redhat.com> - 3.10.6-1
- Use sys.exit instead of os._exit with pocketlint. (clumens)
- Use addCleanup instead of tearDown for removing temp-device. (clumens)
- Add a new makefile target that does everything needed for jenkins.
(clumens)
- Merge pull request #13 from atodorov/fix_imports (david.l.cantrell)
- Merge pull request #14 from vpodzime/master (david.l.cantrell)
- Do not support and use hashing on pyparted's objects (#1229186) (vpodzime)
- Fix pylint errors (atodorov)
- Merge pull request #12 from atodorov/remove_hardcoded_paths
(david.l.cantrell)
- Merge pull request #8 from atodorov/tests_ped_filesystem (david.l.cantrell)
- Merge pull request #10 from atodorov/tests_ped_partition (david.l.cantrell)
- Merge pull request #6 from atodorov/add_coverage (david.l.cantrell)
- Remove hard-coded paths. You should have all tools in PATH when working on
pyparted. (atodorov)
- run the test suite under python-coverage and report the results (atodorov)
- add test coverage for _ped.Partition (atodorov)
- Merge pull request #9 from atodorov/tests_dont_skip_if_root
(david.l.cantrell)
- Merge pull request #11 from atodorov/fix_api_docs (david.l.cantrell)
- update pydoc descriptions based on actual behavior (atodorov)
- don't skip DeviceGetNextTestCase if running as root (atodorov)
- add test cases for _ped.FileSystem (atodorov)
- Merge pull request #7 from atodorov/tests_readme (david.l.cantrell)
- Remove old BUGS file. (david.l.cantrell)
- add simple test documentation (atodorov)
- Merge pull request #5 from vpodzime/master (david.l.cantrell)
- Beware of Python 3's version of the map() built-in function (vpodzime)
- Remove the MANIFEST file when doing 'make release' (dcantrell)
- Remove fedorahosted steps from the RELEASE file. (dcantrell)
- Update documentation and Makefile for github. (dcantrell)
- Stop using type() to do comparisons. (clumens)
- Merge pull request #4 from vpodzime/master-python3 (david.l.cantrell)
- Don't blindly expect that everything is hashable (vpodzime)
- Replace filter() call with list comprehension (vpodzime)
- Fix an incorrect reference to "type". (clumens)
- Merge pull request #3 from clumens/master (clumens)
- Only run pylint against a python3 build of pyparted. (clumens)
- Fix the fdisk example up to pass pylint. (clumens)
- Catch exact exceptions in a couple places. (clumens)
- Ignore some pylint warnings. (clumens)
- Don't use string formatting in calls to log.whatever. (clumens)
- Fix a couple unused variable warnings. (clumens)
- Define things in the setUp methods, not in runTest. (clumens)
- Don't redefine reserved or already used function names. (clumens)
- Fix import errors turned up by pylint. (clumens)
- Convert to using pocketlint to run pylint. (clumens)
- Don't run "git clean -fdx" in the "make clean" target. (clumens)
- Add extension whitelist for _ped to pylint call (bcl)
- Merge pull request #2 from jflorian/master (david.l.cantrell)
- New - example to create a single bootable partition (john_florian)
- Remember to pass the arguments to the exception handler. (clumens)
- Put new _ped constants and functions into the parted module. (clumens)
- PyInt_FromLong doesn't exist in python3, so always use PyLong_FromLong.
(clumens)
- Add new functions to extend exception handling. (clumens)
- Add function for resetting partition's number. (vpodzime)
- Fix localeC imports in a handful of src/parted/*.py files. (dcantrell)
- Disable false positive E0611 errors on src/parted/__init__.py (dcantrell)
- ped_unit_get_size() returns a long long, not just a long. (dcantrell)
- Adjust test cases to deal with run-time support. (dcantrell)
- Only import partition types that exist. (dcantrell)
- Note x.y.z version number. (dcantrell)
- Remove .travis.yml and tox.ini (dcantrell)
- Skip 'aix' diskType in FreshDiskTestCase (dcantrell)
- Handle running the test suite on armv7l hosts. (dcantrell)
- Fix getPartitionByPath for disks that are just plain files. (dlehman)
- ext2 may be smaller than the end of the device (#1095904) (bcl)
- support ppc64le in pyparted (hamzy)
- Fix up the PYTHONPATH for "make check" and "make test". (clumens)
- Remove geom tests that don't fail (bcl)
- Add btrfs and ext4 for filesystem type test (bcl)
- Revert "Add support for hfs_esp flag" (bcl)
- Teach pyparted that aarch64 support GPT partitions. (dcantrell)
- And disable the length one, too. (clumens)
- Disable one test case that fails on ppc64, for the moment. (clumens)
- Update pylint options for the latest version of that program. (clumens)
- Fix 'make bumpver' to handle multiple decimal points. (dcantrell)
- Add support for hfs_esp flag (dcantrell)
- Add support for esp flag (dcantrell)
- Add support for irst flag (dcantrell)
- Add support for msftdata flag (dcantrell)
- Don't assume tools will be in the user's $PATH. (clumens)
- Fix a lot of problems pylint caught. (clumens)
- Move from pychecker to pylint. (clumens)
- Have pychecker ignore some fale positives on missing class attrs. (clumens)
- setattr doesn't return any value. (clumens)
- Fix up pychecker errors reported by Jenkins. (dcantrell)
- Subject: [PATCH] pyparted: export ped_disk_new functionality (rnsastry)
- Correct boilerplate modifications. (dcantrell)
- Tests also require the parted binary. (g2p.code)
- Work around Travis's broken defaults. (g2p.code)
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.10.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Thu May 07 2015 David Cantrell <dcantrell@redhat.com> - 3.10.5-1
- Upgrade to pyparted-3.10.5
* Tue May 05 2015 David Cantrell <dcantrell@redhat.com> - 3.10.4-1
- Upgrade to pyparted-3.10.4
* Fri Jan 16 2015 David Cantrell <dcantrell@redhat.com> - 3.10.3-1
- Upgrade to pyparted-3.10.3
* Wed Nov 26 2014 David Cantrell <dcantrell@redhat.com> - 3.10.2-1
- Upgrade to pyparted-3.10.2
* Mon Nov 10 2014 David Cantrell <dcantrell@redhat.com> - 3.10.1-1
- Upgrade to pyparted-3.10.1
* Wed Sep 24 2014 David Cantrell <dcantrell@redhat.com> - 3.10.0a-1
- Upgrade to pyparted-3.10.0
- Add python3 subpackage (#985308)
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.9.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

View file

@ -1 +1,2 @@
9cf098ec38b9fe0af98782671027c5d6 pyparted-3.9.5.tar.gz
SHA512 (pyparted-3.13.0.tar.gz) = a9162afdbee48de5474de98ae8c08df028d485e122fcafae8421dddd47c9ed00d8dd9f40d854b14d4582483d8ea3469128a912491371385e4f18a0dbbbafbfd5
SHA512 (pyparted-3.13.0.tar.gz.asc) = 6f3e973b52584450c3eed97d64266df832d8820a6a72f731fbb9fbd9be06f93f2d53b47bcae01b78a831e3e3cedca3ae8629dc5f9fe35dcc3ed11226a11fd952

88
tests/scripts/pyparted-tests Executable file
View file

@ -0,0 +1,88 @@
#!/usr/bin/python3
import parted
import sys
def init_disk(disk_img):
# Make a disklabel (failures here will raise an error)
dev = parted.getDevice(disk_img)
disk = parted.freshDisk(dev, "gpt")
# Make a partition
geom = parted.Geometry(device=dev,
start=2048,
end=50*2048)
fs = parted.FileSystem(type="ext4", geometry=geom)
part = parted.Partition(disk=disk,
type=parted.PARTITION_NORMAL,
fs=fs,
geometry=geom)
disk.addPartition(partition=part,
constraint=dev.optimalAlignedConstraint)
part.setFlag(parted.PARTITION_BOOT)
disk.commit()
def read_disk(disk_img):
# Read the disk and check the partitions
dev = parted.getDevice(disk_img)
disk = parted.newDisk(dev)
if dev.length == 0:
print("ERROR: Disk has no length", file=sys.stderr)
sys.exit(1)
if len(disk.partitions) != 1:
print("ERROR: Wrong number of partitions", file=sys.stderr)
sys.exit(1)
part = disk.partitions[0]
if part.geometry.end != 50*2048:
print("ERROR: Partition is wrong length", file=sys.stderr)
sys.exit(1)
if part.geometry.start != 2048:
print("ERROR: Parition doesn't start at sector 2048", file=sys.stderr)
sys.exit(1)
def remove_partition(disk_img):
# Remove partition and check disk
dev = parted.getDevice(disk_img)
disk = parted.newDisk(dev)
if len(disk.partitions) != 1:
print("ERROR: Wrong number of partitions", file=sys.stderr)
sys.exit(1)
disk.removePartition(partition=disk.partitions[0])
disk.commit()
dev = parted.getDevice(disk_img)
disk = parted.newDisk(dev)
if len(disk.partitions) != 0:
print("ERROR: Failed to delete partition", file=sys.stderr)
sys.exit(1)
def main(disk_img):
print(f"Running tests on {disk_img}")
try:
init_disk(disk_img)
read_disk(disk_img)
remove_partition(disk_img)
except Exception as e:
print(f"ERROR: {str(e)}", file=sys.stderr)
sys.exit(1)
print("PASS", file=sys.stderr)
sys.exit(0)
if __name__ == '__main__':
if len(sys.argv) < 2:
print("Usage: %s <disk.img>" % sys.argv[0], file=sys.stderr)
sys.exit(1)
main(sys.argv[1])

BIN
trustdb.gpg Normal file

Binary file not shown.