prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Fix bug where Last-Modified header was being updated on duplicate package uploads
  Fixes a bug where the Last-Modified header of a package stored in django-storages was being updated on duplicate uploads.
  
  Closes #5149
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 from setuptools import find_packages, setup
  2 
  3 with open('README.md') as f:
  4     long_description = f.read()
  5 
  6 requirements = [
  7     'coreapi',
  8     'Django~=2.2',  # LTS version, switch only if we have a compelling reason to
  9     'django-filter',
  10     'djangorestframework',
  11     'djangorestframework-queryfields',
  12     'drf-nested-routers',
  13     'drf-yasg',
  14     'gunicorn',
  15     'packaging',  # until drf-yasg 1.16.2 is out https://github.com/axnsan12/drf-yasg/issues/412
  16     'PyYAML',
  17     'rq~=1.0',
  18     'redis<3.2.0',
  19     'setuptools',
  20     'dynaconf~=2.0',
  21     'whitenoise',
  22 ]
  23 
  24 setup(
  25     name='pulpcore',
  26     version='3.0.0rc5.dev',
  27     description='Pulp Django Application and Related Modules',
  28     long_description=long_description,
  29     long_description_content_type="text/markdown",
  30     license='GPLv2+',
  31     packages=find_packages(exclude=['test']),
  32     author='Pulp Team',
  33     author_email='pulp-list@redhat.com',
  34     url='http://www.pulpproject.org',
  35     python_requires='>=3.6',
  36     install_requires=requirements,
  37     extras_require={
  38         'postgres': ['psycopg2-binary'],
  39         'mysql': ['mysqlclient']
  40     },
  41     include_package_data=True,
  42     classifiers=(
  43         'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
  44         'Operating System :: POSIX :: Linux',
  45         'Development Status :: 4 - Beta',
  46         'Framework :: Django',
  47         'Programming Language :: Python',
  48         'Programming Language :: Python :: 3',
  49         'Programming Language :: Python :: 3.6',
  50         'Programming Language :: Python :: 3.7',
  51     ),
  52     scripts=['bin/pulp-content'],
  53 )
  54
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -4,21 +4,21 @@
       long_description = f.read()
   
   requirements = [
  -    'coreapi',
  -    'Django~=2.2',  # LTS version, switch only if we have a compelling reason to
  -    'django-filter',
  -    'djangorestframework',
  -    'djangorestframework-queryfields',
  -    'drf-nested-routers',
  -    'drf-yasg',
  -    'gunicorn',
  +    'coreapi~=2.3.3',
  +    'Django~=2.2.3',  # LTS version, switch only if we have a compelling reason to
  +    'django-filter~=2.2.0',
  +    'djangorestframework~=3.10.2',
  +    'djangorestframework-queryfields~=1.0.0',
  +    'drf-nested-routers~=0.91.0',
  +    'drf-yasg~=1.16.1',
  +    'gunicorn~=19.9.0',
       'packaging',  # until drf-yasg 1.16.2 is out https://github.com/axnsan12/drf-yasg/issues/412
  -    'PyYAML',
  -    'rq~=1.0',
  -    'redis<3.2.0',
  -    'setuptools',
  -    'dynaconf~=2.0',
  -    'whitenoise',
  +    'PyYAML~=5.1.1',
  +    'rq~=1.1.0',
  +    'redis~=3.1.0',
  +    'setuptools~=41.0.1',
  +    'dynaconf~=2.0.3',
  +    'whitenoise~=4.1.3',
   ]
   
   setup(
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -4,21 +4,21 @@\n     long_description = f.read()\n \n requirements = [\n-    'coreapi',\n-    'Django~=2.2',  # LTS version, switch only if we have a compelling reason to\n-    'django-filter',\n-    'djangorestframework',\n-    'djangorestframework-queryfields',\n-    'drf-nested-routers',\n-    'drf-yasg',\n-    'gunicorn',\n+    'coreapi~=2.3.3',\n+    'Django~=2.2.3',  # LTS version, switch only if we have a compelling reason to\n+    'django-filter~=2.2.0',\n+    'djangorestframework~=3.10.2',\n+    'djangorestframework-queryfields~=1.0.0',\n+    'drf-nested-routers~=0.91.0',\n+    'drf-yasg~=1.16.1',\n+    'gunicorn~=19.9.0',\n     'packaging',  # until drf-yasg 1.16.2 is out https://github.com/axnsan12/drf-yasg/issues/412\n-    'PyYAML',\n-    'rq~=1.0',\n-    'redis<3.2.0',\n-    'setuptools',\n-    'dynaconf~=2.0',\n-    'whitenoise',\n+    'PyYAML~=5.1.1',\n+    'rq~=1.1.0',\n+    'redis~=3.1.0',\n+    'setuptools~=41.0.1',\n+    'dynaconf~=2.0.3',\n+    'whitenoise~=4.1.3',\n ]\n \n setup(\n", "issue": "Fix bug where Last-Modified header was being updated on duplicate package uploads\nFixes a bug where the Last-Modified header of a package stored in django-storages was being updated on duplicate uploads.\r\n\r\nCloses #5149\n", "before_files": [{"content": "from setuptools import find_packages, setup\n\nwith open('README.md') as f:\n    long_description = f.read()\n\nrequirements = [\n    'coreapi',\n    'Django~=2.2',  # LTS version, switch only if we have a compelling reason to\n    'django-filter',\n    'djangorestframework',\n    'djangorestframework-queryfields',\n    'drf-nested-routers',\n    'drf-yasg',\n    'gunicorn',\n    'packaging',  # until drf-yasg 1.16.2 is out https://github.com/axnsan12/drf-yasg/issues/412\n    'PyYAML',\n    'rq~=1.0',\n    'redis<3.2.0',\n    'setuptools',\n    'dynaconf~=2.0',\n    'whitenoise',\n]\n\nsetup(\n    name='pulpcore',\n    version='3.0.0rc5.dev',\n    description='Pulp Django Application and Related Modules',\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    license='GPLv2+',\n    packages=find_packages(exclude=['test']),\n    author='Pulp Team',\n    author_email='pulp-list@redhat.com',\n    url='http://www.pulpproject.org',\n    python_requires='>=3.6',\n    install_requires=requirements,\n    extras_require={\n        'postgres': ['psycopg2-binary'],\n        'mysql': ['mysqlclient']\n    },\n    include_package_data=True,\n    classifiers=(\n        'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',\n        'Operating System :: POSIX :: Linux',\n        'Development Status :: 4 - Beta',\n        'Framework :: Django',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n    ),\n    scripts=['bin/pulp-content'],\n)\n", "path": "setup.py"}], "after_files": [{"content": "from setuptools import find_packages, setup\n\nwith open('README.md') as f:\n    long_description = f.read()\n\nrequirements = [\n    'coreapi~=2.3.3',\n    'Django~=2.2.3',  # LTS version, switch only if we have a compelling reason to\n    'django-filter~=2.2.0',\n    'djangorestframework~=3.10.2',\n    'djangorestframework-queryfields~=1.0.0',\n    'drf-nested-routers~=0.91.0',\n    'drf-yasg~=1.16.1',\n    'gunicorn~=19.9.0',\n    'packaging',  # until drf-yasg 1.16.2 is out https://github.com/axnsan12/drf-yasg/issues/412\n    'PyYAML~=5.1.1',\n    'rq~=1.1.0',\n    'redis~=3.1.0',\n    'setuptools~=41.0.1',\n    'dynaconf~=2.0.3',\n    'whitenoise~=4.1.3',\n]\n\nsetup(\n    name='pulpcore',\n    version='3.0.0rc5.dev',\n    description='Pulp Django Application and Related Modules',\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    license='GPLv2+',\n    packages=find_packages(exclude=['test']),\n    author='Pulp Team',\n    author_email='pulp-list@redhat.com',\n    url='http://www.pulpproject.org',\n    python_requires='>=3.6',\n    install_requires=requirements,\n    extras_require={\n        'postgres': ['psycopg2-binary'],\n        'mysql': ['mysqlclient']\n    },\n    include_package_data=True,\n    classifiers=(\n        'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',\n        'Operating System :: POSIX :: Linux',\n        'Development Status :: 4 - Beta',\n        'Framework :: Django',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n    ),\n    scripts=['bin/pulp-content'],\n)\n", "path": "setup.py"}]}