Commit Graph

176 Commits

Author SHA1 Message Date
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
Igor Gnatenko
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
Igor Gnatenko
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
Igor Gnatenko
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
Igor Gnatenko
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
Zbigniew Jędrzejewski-Szmek
6c17f4a6ce Add Provides for the old name without %_isa 2017-08-20 10:41:20 -04:00
Zbigniew Jędrzejewski-Szmek
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