      author='Tom Christie',
      author_email='tom@tomchristie.com',  # SEE NOTE BELOW (*)
      packages=find_packages(exclude=['tests*']),
      include_package_data=True,
      install_requires=["django>=3.0", "pytz", 'backports.zoneinfo;python_version<"3.9"'],
      python_requires=">=3.6",
      zip_safe=False,
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Environment :: Web Environment',
 
</s> remove             except InvalidTimeError:
                self.fail('make_aware', timezone=field_timezone)
 </s> add             except Exception as e:
                if pytz and isinstance(e, pytz.exceptions.InvalidTimeError):
                    self.fail('make_aware', timezone=field_timezone)
                raise e </s> remove     field = serializers.DateTimeField(default_timezone=MockTimezone())
 </s> add         field = serializers.DateTimeField(default_timezone=MockTimezone()) </s> remove         def __str__(self):
            return 'America/New_York'
 </s> add             def __str__(self):
                return 'America/New_York' </s> remove     class MockTimezone(pytz.BaseTzInfo):
        @staticmethod
        def localize(value, is_dst):
            raise pytz.InvalidTimeError()
 </s> add     if pytz:
        class MockTimezone(pytz.BaseTzInfo):
            @staticmethod
            def localize(value, is_dst):
                raise pytz.InvalidTimeError() </s> remove import pytz
 </s> add try:
    import pytz
except ImportError:
    pytz = None

    install_requires=["django>=3.0", 'backports.zoneinfo;python_version<"3.9"'],
      author='Tom Christie',
      author_email='tom@tomchristie.com',  # SEE NOTE BELOW (*)
      packages=find_packages(exclude=['tests*']),
      include_package_data=True,
    install_requires=["django>=3.0", 'backports.zoneinfo;python_version<"3.9"'],
      python_requires=">=3.6",
      zip_safe=False,
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Environment :: Web Environment',
keep keep keep keep replace keep keep keep keep keep
 remove dependency on pytz (#8984)

* remove pytz

* Revert "remove pytz"

This reverts commit 393609dfaadbc4d82f760e6e4df8a6de6de24f9b.

* remove pytz, more subtly 
setup.py