[Bug 1739786] Review Request: python-makefun - Dynamically create python functions with a proper signature

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1739786

Patrik Kopkan <pkopkan@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |needinfo?(pkopkan@xxxxxxxxx
                   |                            |m)



--- Comment #8 from Patrik Kopkan <pkopkan@xxxxxxxxxx> ---
diff -Naur makefun-1.6.10.orig/pyproject.toml makefun-1.6.10/pyproject.toml
--- makefun-1.6.10.orig/pyproject.toml  1970-01-01 01:00:00.000000000 +0100
+++ makefun-1.6.10/pyproject.toml       2019-08-13 13:39:52.688122126 +0200
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["setuptools", "setuptools-scm", "wheel"]
+build-backend = "setuptools.build_meta"

I tried this patch adding pyproject.toml. Build still fails, will investigate.

INFO: mock.py version 1.4.17 starting (python version = 3.7.3)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(python-makefun-1.6.10-1.fc29.src.rpm) 
Config(fedora-rawhide-x86_64)
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled dnf cache
Start: cleaning dnf metadata
Finish: cleaning dnf metadata
INFO: enabled HW Info plugin
Mock Version: 1.4.17
INFO: Mock Version: 1.4.17
Finish: chroot init
Start: build phase for python-makefun-1.6.10-1.fc29.src.rpm
Start: build setup for python-makefun-1.6.10-1.fc29.src.rpm
Building target platforms: x86_64
Building for target x86_64
setting SOURCE_DATE_EPOCH=1565395200
Wrote: /builddir/build/SRPMS/python-makefun-1.6.10-1.fc31.src.rpm
fedora                                                                    37
kB/s |  19 kB     00:00    
Package pyproject-rpm-macros-0-4.fc31.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Finish: build setup for python-makefun-1.6.10-1.fc29.src.rpm
Start: rpmbuild python-makefun-1.6.10-1.fc29.src.rpm
Start: Outputting list of installed packages
Finish: Outputting list of installed packages
Building target platforms: x86_64
Building for target x86_64
setting SOURCE_DATE_EPOCH=1565395200
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.TUBPvu
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf makefun-1.6.10
+ /usr/bin/gzip -dc /builddir/build/SOURCES/makefun-1.6.10.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd makefun-1.6.10
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /builddir/build/SOURCES/pyproject.toml.patch
+ /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch
+ sed -r -i 's/'\''pandoc'\'', //' setup.py
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.oYCEIw
+ umask 022
+ cd /builddir/build/BUILD
+ cd makefun-1.6.10
+ echo python3-devel
+ echo 'python3dist(packaging)'
+ echo 'python3dist(pip) >= 19'
+ echo 'python3dist(pytoml)'
+ rm -rfv '*.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ /usr/bin/python3 -I /usr/lib/rpm/redhat/pyproject_buildrequires.py -r
Handling setuptools from build-system.requires
Requirement satisfied: setuptools
   (installed: setuptools 41.0.1)
Handling setuptools-scm from build-system.requires
Requirement satisfied: setuptools-scm
   (installed: setuptools-scm 3.3.3)
Handling wheel from build-system.requires
Requirement satisfied: wheel
   (installed: wheel 0.33.1)
setup.py:46: DeprecationWarning: Due to possible ambiguity, 'convert()' is
deprecated. Use 'convert_file()'  or 'convert_text()'.
  LONG_DESCRIPTION = pypandoc.convert(path.join(here, 'docs',
'long_description.md'), 'rst').replace('\r', '')
Handling wheel from get_requires_for_build_wheel
Requirement satisfied: wheel
   (installed: wheel 0.33.1)
Handling pytest-runner from get_requires_for_build_wheel
Handling setuptools_scm from get_requires_for_build_wheel
Handling pypandoc from get_requires_for_build_wheel
Requirement satisfied: pypandoc
   (installed: pypandoc 1.4)
Handling six from get_requires_for_build_wheel
Requirement satisfied: six
   (installed: six 1.12.0)
setup.py:46: DeprecationWarning: Due to possible ambiguity, 'convert()' is
deprecated. Use 'convert_file()'  or 'convert_text()'.
  LONG_DESCRIPTION = pypandoc.convert(path.join(here, 'docs',
'long_description.md'), 'rst').replace('\r', '')
Download error on https://pypi.org/simple/pytest-runner/: [Errno -2] Name or
service not known -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.org/simple/: [Errno -2] Name or service not
known -- Some packages may not be found!
No local packages or working download links found for pytest-runner
Traceback (most recent call last):
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 241, in main
    extras=args.extras,
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 195, in
generate_requires
    generate_run_requirements(backend, requirements)
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 169, in
generate_run_requirements
    dir_basename = prepare_metadata('.')
  File "/usr/lib/python3.7/site-packages/setuptools/build_meta.py", line 155,
in prepare_metadata_for_build_wheel
    self.run_setup()
  File "/usr/lib/python3.7/site-packages/setuptools/build_meta.py", line 141,
in run_setup
    exec(compile(code, __file__, 'exec'), locals())
  File "setup.py", line 136, in <module>
    extras_require=EXTRAS_REQUIRE,
  File "/usr/lib/python3.7/site-packages/setuptools/__init__.py", line 144, in
setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3.7/site-packages/setuptools/__init__.py", line 139, in
_install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib/python3.7/site-packages/setuptools/dist.py", line 717, in
fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 782,
in resolve
    replace_conflicting=replace_conflicting
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1065,
in best_match
    return self.obtain(req, installer)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1077,
in obtain
    return installer(requirement)
  File "/usr/lib/python3.7/site-packages/setuptools/dist.py", line 784, in
fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib/python3.7/site-packages/setuptools/command/easy_install.py",
line 678, in easy_install
    raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for
Requirement.parse('pytest-runner')
python3-devel
python3dist(packaging)
python3dist(pip) >= 19
python3dist(pytoml)
python3dist(setuptools)
python3dist(setuptools-scm)
python3dist(wheel)
python3dist(wheel)
python3dist(pytest-runner)
python3dist(setuptools-scm)
python3dist(pypandoc)
python3dist(six)


RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.oYCEIw (%generate_buildrequires)
    Bad exit status from /var/tmp/rpm-tmp.oYCEIw (%generate_buildrequires)
ERROR: Exception(python-makefun-1.6.10-1.fc29.src.rpm)
Config(fedora-rawhide-x86_64) 0 minutes 5 seconds
INFO: Results and/or logs in:
/home/pkopkan/Documents/review/1739786-python-makefun/srpm-unpacked/result
ERROR: state finish mismatch: current: rpmbuild
python-makefun-1.6.10-1.fc29.src.rpm, state: build phase for
python-makefun-1.6.10-1.fc29.src.rpm

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux