sed -i '/python-mistune1/s/1//g' /var/lib/pacman/local/python-m2r2*/desc
If you want to escape the hell that freeze whole pacman :: removing python-mistune1 breaks dependency 'python-mistune1' required by python-m2r2
Git Clone URL: | https://aur.archlinux.org/python-m2r2.git (read-only, click to copy) |
---|---|
Package Base: | python-m2r2 |
Description: | Markdown to reStructuredText converter, forked from m2r |
Upstream URL: | https://github.com/crossnox/m2r2 |
Licenses: | MIT |
Submitter: | lmartinez-mirror |
Maintainer: | None |
Last Packager: | lmartinez-mirror |
Votes: | 2 |
Popularity: | 0.000002 |
First Submitted: | 2022-01-09 18:27 (UTC) |
Last Updated: | 2022-09-23 17:02 (UTC) |
sed -i '/python-mistune1/s/1//g' /var/lib/pacman/local/python-m2r2*/desc
If you want to escape the hell that freeze whole pacman :: removing python-mistune1 breaks dependency 'python-mistune1' required by python-m2r2
Since this package installes the /usr/bin/m2r
executable, can you add
provides=("m2r=${pkgver}")
and
conflicts=('m2r')
,
please?
Thanks for maintaining!
After digging into this situation... upstream seems dead. it might be best to work together with this package. https://aur.archlinux.org/packages/python-m2r2. Using this package to forward out the old m2r interface from m2r2 is pretty simple to do and m2r2 is maintained.
I am having problems with this package. This pull request has a bunch of listed issues. https://github.com/miyakogi/m2r/pull/67
You're right; this doesn't actually provide m2r
. I'll just remove that line.
This should not provide python-m2r since it’s installed under a different name, and won’t make import m2r
work.
Mind you, an additional package that just reexports all of m2r2 as m2r is handy. I wrote this (but won’t publish it now since it depends on the removal of the incorrect provides
line in this package, and will need to be updated along with python-m2r2, though I didn’t put an exact version dependency, for better or for worse; feel free to publish it yourself when you fix this, that way it’s maintained by one person):
pkgname=python-m2r-via-m2r2
pkgver=0.3.3
pkgrel=1
pkgdesc="m2r compatibility, backed by m2r2"
arch=(any)
depends=(python-m2r2)
provides=(python-m2r)
conflicts=(python-m2r)
package() {
local _site="$pkgdir$(python -c 'import site; print(site.getsitepackages()[0])')"
mkdir -p "$_site"
ln -s m2r2.py "$_site/m2r.py"
ln -s m2r2-$pkgver.dist-info "$_site/m2r-$pkgver.dist-info"
}
Couldn't reproduce in a clean chroot. What does your Python setup look like?
=============================================================================================================== ERRORS ================================================================================================================
_________________________________________________________________________________________________ ERROR collecting tests/test_cli.py __________________________________________________________________________________________________
tests/test_cli.py:13: in <module>
from m2r2 import parse_from_file, main, options
m2r2.py:19: in <module>
__version__ = get_distribution("m2r2").version
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:471: in get_distribution
dist = get_provider(dist)
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:347: in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:891: in require
needed = self.resolve(parse_requirements(requirements))
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:777: in resolve
raise DistributionNotFound(req, requirers)
E pkg_resources.DistributionNotFound: The 'm2r2' distribution was not found and is required by the application
======================================================================================================= short test summary info =======================================================================================================
ERROR tests/test_cli.py - pkg_resources.DistributionNotFound: The 'm2r2' distribution was not found and is required by the application
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==================================================================================================== 2 warnings, 1 error in 0.31s =====================================================================================================
Pinned Comments
ModYokosuka commented on 2022-10-01 22:16 (UTC)
After digging into this situation... upstream seems dead. it might be best to work together with this package. https://aur.archlinux.org/packages/python-m2r2. Using this package to forward out the old m2r interface from m2r2 is pretty simple to do and m2r2 is maintained.