Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-17812

Multiple PyPi packages with "python_requires" field causes errors

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.9.0
    • Component/s: PyPI
    • Labels:
      None

      Description

      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:

      1. 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'
      )

      1. Upload multiple versions of the package, at least 4
      2. 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Dudim Dudi Morad
                Reporter:
                patrickr Patrick Russell
              • Votes:
                5 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: