Chilipp / autodocsumm

Extending your autodoc API docs with a summary
Apache License 2.0
48 stars 14 forks source link

0.2.4: problematic dependencies definition #55

Closed kloczek closed 3 years ago

kloczek commented 3 years ago
[tkloczko@barrel autodocsumm-0.2.4]$ grep -r 2.2 setup.py
setup.py:          'Sphinx>=2.2.*',

That kind of dependencies cannot be mapped in rpm dependencies generator.

error: Illegal char '*' (0x2a) in: 2.2.*
Provides: python-autodocsumm = 0.2.4-2.fc35 python3.8dist(autodocsumm) = 0.2.4 python3dist(autodocsumm) = 0.2.4
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: python(abi) = 3.8

RPM build errors:
    Illegal char '*' (0x2a) in: 2.2.*
Chilipp commented 3 years ago

thanks @kloczek! any suggestion how to fix this?

kloczek commented 3 years ago

Here is ythe patch which I'm using in my rpm package:

--- a/setup.py~ 2021-05-09 12:55:32.000000000 +0100
+++ b/setup.py  2021-05-10 22:23:21.977046666 +0100
@@ -36,7 +36,7 @@
       license="GPLv2",
       packages=find_packages(exclude=['docs', 'tests*', 'examples']),
       install_requires=[
-          'Sphinx>=2.2.*',
+          'Sphinx>=2.2',
       ],
       setup_requires=pytest_runner,
       tests_require=['pytest', 'sphinx-testing'],
kloczek commented 3 years ago

Logically >=2.2.* is equivalent of >=2.2 :)