#2 Update to 2.7.2, drop i686, rpmautospec, confirm SPDX, make noarch, other details
Merged 10 months ago by music. Opened 10 months ago by music.
rpms/ music/python-hdfs v2.7.1  into  rawhide

file modified
+2
@@ -4,3 +4,5 @@ 

  /hdfs-2.5.6.tar.gz

  /hdfs-2.5.8.tar.gz

  /hdfs-2.6.0.tar.gz

+ /hdfs-2.7.1.tar.gz

+ /hdfs-2.7.2.tar.gz

file removed
-41
@@ -1,41 +0,0 @@ 

- From 697c460a3a58da299fc7e7d257984988c032abc1 Mon Sep 17 00:00:00 2001

- From: "Benjamin A. Beasley" <code@musicinmybrain.net>

- Date: Sun, 10 Oct 2021 11:41:34 -0400

- Subject: [PATCH] Use unittest.mock where available

- MIME-Version: 1.0

- Content-Type: text/plain; charset=UTF-8

- Content-Transfer-Encoding: 8bit

- 

- In Python 3.3 and later, unittest.mock belongs to the standard library,

- and the PyPI backport module “mock” is not needed.

- ---

-  doc/conf.py          | 5 ++++-

-  doc/requirements.txt | 2 +-

-  2 files changed, 5 insertions(+), 2 deletions(-)

- 

- diff --git a/doc/conf.py b/doc/conf.py

- index 1b1d44e..7726848 100644

- --- a/doc/conf.py

- +++ b/doc/conf.py

- @@ -14,7 +14,10 @@

-  

-  import os

-  import sys

- -import mock

- +try:

- +    from unittest import mock

- +except ImportError:

- +    import mock

-  

-  MOCK_MODULES = ['fastavro', 'pandas', 'requests_kerberos']

-  for mod_name in MOCK_MODULES:

- diff --git a/doc/requirements.txt b/doc/requirements.txt

- index 6d3b812..3f2873f 100644

- --- a/doc/requirements.txt

- +++ b/doc/requirements.txt

- @@ -1,4 +1,4 @@

-  avro

-  docopt

-  requests>=2.0.1

- -mock

- +mock;python_version<"3.3"

file added
+92
@@ -0,0 +1,92 @@ 

+ From 85cb5cfd073b8d71c1e212f3946dcfcc925e0fa8 Mon Sep 17 00:00:00 2001

+ From: "Benjamin A. Beasley" <code@musicinmybrain.net>

+ Date: Sat, 12 Aug 2023 09:37:42 -0400

+ Subject: [PATCH] Replace imp.load_source()

+ 

+ ---

+  hdfs/config.py        | 22 ++++++++++++++--------

+  test/test_examples.py | 10 ++--------

+  2 files changed, 16 insertions(+), 16 deletions(-)

+ 

+ diff --git a/hdfs/config.py b/hdfs/config.py

+ index 2c3627d..fce85ed 100644

+ --- a/hdfs/config.py

+ +++ b/hdfs/config.py

+ @@ -15,21 +15,27 @@

+  from logging.handlers import TimedRotatingFileHandler

+  from six.moves.configparser import ParsingError, RawConfigParser

+  from tempfile import gettempdir

+ +import importlib.util

+ +import importlib.machinery

+  import logging as lg

+  import os

+  import os.path as osp

+  import sys

+  

+ -try:

+ -  # Python 3.12 and above

+ -  from importlib import load_source

+ -except ImportError:

+ -  # Below Python 3.12

+ -  from imp import load_source

+ -

+  _logger = lg.getLogger(__name__)

+  

+  

+ +def _load_source(modname, filename):

+ +  """Imitate the old imp.load_source() function, removed in Python 3.12"""

+ +  # Based on sample code in https://docs.python.org/3.12/whatsnew/3.12.html.

+ +  loader = importlib.machinery.SourceFileLoader(modname, filename)

+ +  spec = importlib.util.spec_from_file_location(modname, filename, loader=loader)

+ +  module = importlib.util.module_from_spec(spec)

+ +  sys.modules[module.__name__] = module

+ +  loader.exec_module(module)

+ +  return module

+ +

+ +

+  class NullHandler(lg.Handler):

+  

+    """Pass-through logging handler.

+ @@ -177,7 +183,7 @@ def _load(suffix, loader):

+  

+  

+      _load('modules', __import__)

+ -    _load('paths', lambda path: load_source(

+ +    _load('paths', lambda path: _load_source(

+        osp.splitext(osp.basename(path))[0],

+        path

+      ))

+ diff --git a/test/test_examples.py b/test/test_examples.py

+ index 7e988b0..a5739c0 100644

+ --- a/test/test_examples.py

+ +++ b/test/test_examples.py

+ @@ -4,19 +4,13 @@

+  """Test that the examples run correctly."""

+  

+  from hdfs import Config

+ +from hdfs.config import _load_source

+  from six import add_metaclass

+  from test.util import _IntegrationTest

+  import os

+  import os.path as osp

+  import pytest

+  

+ -try:

+ -  # Python 3.12 and above

+ -  from importlib import load_source

+ -except ImportError:

+ -  # Below Python 3.12

+ -  from imp import load_source

+ -

+  class _ExamplesType(type):

+  

+    """Metaclass generating a test for each example."""

+ @@ -31,7 +25,7 @@ def make_test(fname):

+  

+        def test(self):

+          try:

+ -          load_source(module, fpath)

+ +          _load_source(module, fpath)

+          except ImportError:

+            # Unmet dependency.

+            pytest.skip()

file added
+108
@@ -0,0 +1,108 @@ 

+ * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-7

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

+ 

+ * Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 2.6.0-6

+ - Rebuilt for Python 3.12

+ 

+ * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-5

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

+ 

+ * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-4

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

+ 

+ * Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 2.6.0-3

+ - Rebuilt for Python 3.11

+ 

+ * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

+ 

+ * Mon Nov 08 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.6.0-1

+ - Update to 2.6.0 (close RHBZ#2020978)

+ 

+ * Fri Oct 29 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.8-12

+ - Use the new %%pyproject_check_import macro

+ 

+ * Wed Oct 27 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.8-11

+ - Fix a typo in a comment in the spec file

+ 

+ * Sun Oct 10 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.8-10

+ - Fully modernize the packaging

+ - Switch to “new guidelines” / pyproject-rpm-macros

+ - Drop conditionals for Python 2 on obsolete Fedora releases

+ - Rely on Python dependency generator (no manual Requires)

+ - Build PDF instead of HTML documentation due to guideline issues

+ - Drop dependencies on deprecated nose and mock

+ - Properly handle extras metapackages and dependency on unported

+   python-fastavro for 32-bit architectures; move the hdfscli-avro entry point

+   into the new python3-hdfs+avro package

+ - Add man pages for command-line tools

+ 

+ * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.8-9

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

+ 

+ * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.5.8-8

+ - Rebuilt for Python 3.10

+ 

+ * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.8-7

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

+ 

+ * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.8-6

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

+ 

+ * Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.5.8-5

+ - Rebuilt for Python 3.9

+ 

+ * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.8-4

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

+ 

+ * Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.8-3

+ - Rebuilt for Python 3.8.0rc1 (#1748018)

+ 

+ * Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.8-2

+ - Rebuilt for Python 3.8

+ 

+ * Thu Aug 01 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.5.8-1

+ - Update to new version

+ 

+ * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.6-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

+ 

+ * Wed Jun 19 2019 Luis Bazan <lbazan@fedoraproject.org> - 2.5.6-1

+ - New upstream version

+ 

+ * Wed Jun 12 2019 Luis Bazan <lbazan@fedoraproject.org> - 2.5.4-1

+ - New upstream version

+ 

+ * Mon May 27 2019 Luis Bazan <lbazan@fedoraproject.org> - 2.5.2-2

+ - Add buildrequire

+ - Fix readme extension

+ 

+ * Mon May 27 2019 Luis Bazan <lbazan@fedoraproject.org> - 2.5.2-1

+ - New upstream version

+ 

+ * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-8

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

+ 

+ * Thu Nov 08 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.1.0-7

+ - Disable py2 on F30+

+ - Use py3 sphinx for document generation

+ 

+ * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

+ 

+ * Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-5

+ - Rebuilt for Python 3.7

+ 

+ * Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-4

+ - Rebuilt for Python 3.7

+ 

+ * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

+ 

+ * Tue Jan 23 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.1.0-2

+ - Fix doc generation

+ - Fix summary macro

+ - List binary files

+ 

+ * Mon Jan 15 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1.0-1

+ - Initial build

file removed
-13
@@ -1,13 +0,0 @@ 

- diff --git a/hdfs/config.py b/hdfs/config.py

- index 8aa7fb2..1ad85a6 100644

- --- a/hdfs/config.py

- +++ b/hdfs/config.py

- @@ -12,7 +12,7 @@ In particular it exposes the ability to instantiate clients from aliases (see

-  from .client import Client

-  from .util import HdfsError

-  from functools import wraps

- -from imp import load_source

- +from importlib import import_module

-  from logging.handlers import TimedRotatingFileHandler

-  from six.moves.configparser import ParsingError, RawConfigParser

-  from tempfile import gettempdir

file modified
+50 -200
@@ -2,42 +2,39 @@ 

  # https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.

  #

  # We can generate PDF documentation as a lesser substitute.

- %bcond_without doc_pdf

+ %bcond doc_pdf 1

  

  Name:           python-hdfs

- Version:        2.6.0

- Release:        7%{?dist}

+ Version:        2.7.2

+ Release:        %autorelease

  Summary:        API and command line interface for HDFS

  

+ # SPDX

  License:        MIT

  URL:            https://github.com/mtth/hdfs

- Source0:        %{url}/archive/%{version}/hdfs-%{version}.tar.gz

+ Source0:        %{url}/archive/v%{version}/hdfs-%{version}.tar.gz

  # Downstream man pages in groff_man(7) format. These were written for Fedora

  # based on the tools’ --help output and should be updated if the command-line

  # interface changes.

  Source1:        hdfscli.1

  Source2:        hdfscli-avro.1

  

- # Use unittest.mock where available

- # https://github.com/mtth/hdfs/pull/177

- Patch0:         https://github.com/mtth/hdfs/pull/177.patch

- # imp has been removed from Python3.12, use importlib

- # https://github.com/mtth/hdfs/issues/191

- # NOTE: The referenced PR suggests `from importlib import load_source`

- # But that fails! Use `from importlib import import_module` instead.

- Patch1:         imp_deprecation.patch

- 

- # The base package is arched because extras metapackages requiring fastavro are

- # not available on 32-bit architectures

- # (https://bugzilla.redhat.com/show_bug.cgi?id=1943932).

- %ifnarch %{arm32} %{ix86}

- %global fastavro_arch 1

- %endif

- # Of the binary RPMs, only the conditionally-enabled extras metapackages

- # python3-hdfs+avro and python3-hdfs+dataframe are arched.

+ # Replace imp.load_source()

+ # https://github.com/mtth/hdfs/pull/204

+ #

+ # Fixes:

  #

- # Since there is no compiled code, there are no debugging symbols.

- %global debug_package %{nil}

+ # Support Python 3.12

+ # https://github.com/mtth/hdfs/issues/203

+ Patch:          %{url}/pull/204.patch

+ 

+ BuildArch:      noarch

+ # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval

+ #

+ # Additionally, fastavro (required by some extras metapackages) is not

+ # available on 32-bit architectures. Excluding these allows us to stop

+ # conditionalizing those architectures.

+ ExcludeArch:    %{ix86}

  

  BuildRequires:  python3-devel

  
@@ -69,65 +66,14 @@ 

  %package -n python3-hdfs

  Summary:        %{summary}

  

- BuildArch:      noarch

- 

  %description -n python3-hdfs %{_description}

  

  

- %package doc

- Summary:    Documentation and examples for %{name}

- 

- BuildArch:      noarch

- 

- %description doc %{_description}

- 

- 

- %prep

- %autosetup -n hdfs-%{version} -p1

- 

- # Remove shebangs from non-script sources. The find-then-modify pattern keeps

- # us from discarding mtimes on sources that do not need modification.

- find . -type f ! -perm /0111 \

-     -exec gawk '/^#!/ { print FILENAME }; { nextfile }' '{}' '+' |

-   xargs -r -t sed -r -i '1{/^#!/d}'

- 

- cp -p '%{SOURCE1}' %{?fastavro_arch:'%{SOURCE2}'} .

- 

- 

- %generate_buildrequires

- %pyproject_buildrequires -x kerberos%{?fastavro_arch:,avro,dataframe}

- 

- 

- # We manually write out the python3-hdfs+kerberos metapackage so that it (like

- # python3-hdfs) can be noarch even though the base package is arched. The

- # definition is based on:

- #

- #   rpm -E '%%pyproject_extras_subpkg -n python3-hdfs kerberos

- %package -n python3-hdfs+kerberos

- Summary:        Metapackage for python3-hdfs: kerberos extras

- 

- BuildArch:      noarch

- 

- Requires:       python3-hdfs = %{version}-%{release}

- 

- %description -n python3-hdfs+kerberos

- This is a metapackage bringing in kerberos extras requires for python3-hdfs.

- It makes sure the dependencies are installed.

- 

- %files -n python3-hdfs+kerberos

- %ghost %{python3_sitelib}/*.dist-info

- 

- 

- %if 0%{?fastavro_arch}

- 

- # Note that this subpackage is arched because it is not available on 32-bit

- # architectures.

- #

  # We manually write out the python3-hdfs+avro subpackage so that it can contain

  # the hdfscli-avro CLI entry point, and so that its summary and description can

  # be tweaked to reflect this.  The definition is based on:

  #

- #   rpm -E '%%pyproject_extras_subpkg -n python3-hdfs avro

+ #   rpm -E '%%pyproject_extras_subpkg -n python3-hdfs avro'

  %package -n python3-hdfs+avro

  Summary:        Package for python3-hdfs: avro extras

  
@@ -139,50 +85,61 @@ 

  

  It also includes the avro-specific command-line tool, hdfscli-avro.

  

- %files -n python3-hdfs+avro

- %ghost %{python3_sitelib}/*.dist-info

+ %pyproject_extras_subpkg -n python3-hdfs dataframe kerberos

  

- %{_bindir}/hdfscli-avro

- %{_mandir}/man1/hdfscli-avro.1*

  

+ %package doc

+ Summary:    Documentation and examples for %{name}

  

- # Note that this metapackage is arched because it is not available on 32-bit

- # architectures.

- %pyproject_extras_subpkg -n python3-hdfs dataframe

+ %description doc %{_description}

  

- %endif

+ 

+ %prep

+ %autosetup -n hdfs-%{version} -p1

+ 

+ # Remove shebangs from non-script sources. The find-then-modify pattern keeps

+ # us from discarding mtimes on sources that do not need modification.

+ find . -type f ! -perm /0111 \

+     -exec gawk '/^#!/ { print FILENAME }; { nextfile }' '{}' '+' |

+   xargs -r -t sed -r -i '1{/^#!/d}'

+ 

+ 

+ %generate_buildrequires

+ %pyproject_buildrequires -x avro,dataframe,kerberos

  

  

  %build

  %pyproject_wheel

  

  %if %{with doc_pdf}

- PYTHONPATH="${PWD}" sphinx-build -b latex doc _latex %{?_smp_mflags}

- %make_build -C _latex

+ PYTHONPATH="${PWD}" sphinx-build -b latex doc _latex -j%{?_smp_build_ncpus}

+ %make_build -C _latex LATEXMKOPTS='-quiet'

  %endif

  

  

  %install

  %pyproject_install

  %pyproject_save_files hdfs

- install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 \

-     hdfscli.1 %{?fastavro_arch:hdfscli-avro.1}

+ install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 %{SOURCE1} %{SOURCE2}

  

  

  %check

  # Ignore upstream tests - require a hadoop cluster setup

  # https://github.com/mtth/hdfs/blob/master/.travis.yml#L10

- %{pyproject_check_import \

-     %{?!fastavro_arch:-e hdfs.ext.avro -e hdfs.ext.dataframe}}

+ %pyproject_check_import

  

  

  %files -n python3-hdfs -f %{pyproject_files}

  # pyproject-rpm-macros handles the license file; verify with rpm -qL -p …

  %{_bindir}/hdfscli

  %{_mandir}/man1/hdfscli.1*

- # This is packaged in python3-hdfs+avro on 64-bit architectures; it is not

- # packaged at all on 32-bit architectures.

- %exclude %{_bindir}/hdfscli-avro

+ 

+ 

+ %files -n python3-hdfs+avro

+ %ghost %{python3_sitelib}/*.dist-info

+ 

+ %{_bindir}/hdfscli-avro

+ %{_mandir}/man1/hdfscli-avro.1*

  

  

  %files doc
@@ -197,111 +154,4 @@ 

  

  

  %changelog

- * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-7

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

- 

- * Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 2.6.0-6

- - Rebuilt for Python 3.12

- 

- * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-5

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

- 

- * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-4

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

- 

- * Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 2.6.0-3

- - Rebuilt for Python 3.11

- 

- * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

- 

- * Mon Nov 08 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.6.0-1

- - Update to 2.6.0 (close RHBZ#2020978)

- 

- * Fri Oct 29 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.8-12

- - Use the new %%pyproject_check_import macro

- 

- * Wed Oct 27 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.8-11

- - Fix a typo in a comment in the spec file

- 

- * Sun Oct 10 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.8-10

- - Fully modernize the packaging

- - Switch to “new guidelines” / pyproject-rpm-macros

- - Drop conditionals for Python 2 on obsolete Fedora releases

- - Rely on Python dependency generator (no manual Requires)

- - Build PDF instead of HTML documentation due to guideline issues

- - Drop dependencies on deprecated nose and mock

- - Properly handle extras metapackages and dependency on unported

-   python-fastavro for 32-bit architectures; move the hdfscli-avro entry point

-   into the new python3-hdfs+avro package

- - Add man pages for command-line tools

- 

- * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.8-9

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

- 

- * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.5.8-8

- - Rebuilt for Python 3.10

- 

- * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.8-7

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

- 

- * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.8-6

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

- 

- * Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.5.8-5

- - Rebuilt for Python 3.9

- 

- * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.8-4

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

- 

- * Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.8-3

- - Rebuilt for Python 3.8.0rc1 (#1748018)

- 

- * Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.8-2

- - Rebuilt for Python 3.8

- 

- * Thu Aug 01 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.5.8-1

- - Update to new version

- 

- * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.6-2

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

- 

- * Wed Jun 19 2019 Luis Bazan <lbazan@fedoraproject.org> - 2.5.6-1

- - New upstream version

- 

- * Wed Jun 12 2019 Luis Bazan <lbazan@fedoraproject.org> - 2.5.4-1

- - New upstream version

- 

- * Mon May 27 2019 Luis Bazan <lbazan@fedoraproject.org> - 2.5.2-2

- - Add buildrequire

- - Fix readme extension

- 

- * Mon May 27 2019 Luis Bazan <lbazan@fedoraproject.org> - 2.5.2-1

- - New upstream version

- 

- * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-8

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

- 

- * Thu Nov 08 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.1.0-7

- - Disable py2 on F30+

- - Use py3 sphinx for document generation

- 

- * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

- 

- * Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-5

- - Rebuilt for Python 3.7

- 

- * Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-4

- - Rebuilt for Python 3.7

- 

- * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

- 

- * Tue Jan 23 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.1.0-2

- - Fix doc generation

- - Fix summary macro

- - List binary files

- 

- * Mon Jan 15 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1.0-1

- - Initial build

+ %autochangelog

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (hdfs-2.6.0.tar.gz) = 262b351589043fb724ca71a39c02b0376193969c03d868edd57551ee50aa2ae0f24c634e0ee23a9f1cbe11cb8336d2b7bdcd35345adec2c370f98ccd1a8f4f60

+ SHA512 (hdfs-2.7.2.tar.gz) = 5f2abaf6f64aa82de89cad1b70ac25708496d1bfd103f6bcb48f4f7a73452d198fcc5eb0f5dca4d114c6864cbb8fa991bcc0c3622b225342595e6da642bc66a2

Please see commit messages for details.

Upstream does not yet have proper Python 3.12 support (https://github.com/mtth/hdfs/issues/203); a zombie-imp dependency is added (on Python 3.12 only!) as a temporary workaround.

This is also OK for F39. It could be backported to F37/F38 if we don’t drop i686 support in those releases.

Ah, I was missing a few commits when I branched this. It looks like there is a workaround for https://src.fedoraproject.org/rpms/python-hdfs/c/648e66154747556a3cbd018790ae6683476b6542?branch=rawhide, but it seems incomplete; the patch changes the import, but not the code that uses it.

Let me go back to the drawing board for a bit.

I don’t think the existing imp_deprecation.patch is going to work. It fixes hdfs.config not importing, but I don’t see a straightforward way to make the code in question actually work with importlib.load_module instead of the undocumented-and-now-removed imp.load_source.

@gui1ty , am I missing anything? I would love to be able to offer upstream something, as I don’t think they know exactly what to do either, but I don’t think I have time to dig into what they are trying to do with this magic autoload code.

rebased onto 53786f2

10 months ago

1 new commit added

  • Update to 2.7.2
10 months ago

Upstream pointed out that https://docs.python.org/3.12/whatsnew/3.12.html now contains suggested replacement code for imp.load_source(), so I’m testing a proper patch: https://github.com/mtth/hdfs/pull/204

1 new commit added

  • Improved Python 3.12 fix, without zombie-imp
10 months ago

Updated with the improved patch; ready to merge.

Pull-Request has been merged by music

10 months ago