Symptoms: the "simple.html" page retrieved by the /api/pypi/pypi-repo/simple/ API call is filled with incorrect package names that lead to duplicate packages.
Â
Steps to reproduce:
- Use a working Pypi project, and modify the setup.py file:
from setuptools import setup
with open('README.md') as f:
readme = f.read()
setup(name='example-proj',
version='0.2',
python_requires='>3.5',
description='hahahahaha',
long_description=readme,
author='Patrick',
author_email='pat@pat.vm',
url='https://pat.vm:8081/artifactory',
license='LOL'
)
- Upload multiple versions of the package, at least 4
- Recalculate the PyPi index
Observe that the package names in the HTML file are incorrect:
3.5" href="example-proj" rel="internal" >example-proj
Mypackage
example-proj
The behavior is somewhat difficult to reproduce, multiple uploads should trigger it. There look to be problems processing multiple setup.py files with the "python_requires" field.
- is duplicated by
-
RTFACT-17080 PyPI simple index gets broken by python packages with "requires python"
- Done
-
RTFACT-17770 Pypi packages with "<" or ">" in the "data-requires-python" section corrupts the html metadata
- Done