Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop python<=3.7 support #634

Merged
merged 6 commits into from
Jun 25, 2024
Merged

drop python<=3.7 support #634

merged 6 commits into from
Jun 25, 2024

Conversation

kloczek
Copy link
Contributor

@kloczek kloczek commented Jun 20, 2024

According to https://endoflife.date/python python 3.7 has been EOSed 27 Jun 2023.
Filter all code over pyupgracde --py38-plus.

According to https://endoflife.date/python python 3.7 has been
EOSed 27 Jun 2023.
Filter all code over `pyupgracde --py38-plus`.

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
@coveralls
Copy link

coveralls commented Jun 20, 2024

Pull Request Test Coverage Report for Build 9600575936

Details

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.228%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/icalendar/tests/test_with_doctest.py 0 1 0.0%
Totals Coverage Status
Change from base Build 9598258374: 0.0%
Covered Lines: 3087
Relevant Lines: 3175

💛 - Coveralls

Mostly ruff drops unused imports.

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
@coveralls
Copy link

coveralls commented Jun 20, 2024

Pull Request Test Coverage Report for Build 9600600563

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-97.2%) to 0.0%

Totals Coverage Status
Change from base Build 9598258374: -97.2%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 20, 2024

Pull Request Test Coverage Report for Build 9600575936

Details

  • 9 of 10 (90.0%) changed or added relevant lines in 8 files are covered.
  • 14 unchanged lines in 4 files lost coverage.
  • Overall coverage remained the same at 97.228%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/icalendar/tests/test_with_doctest.py 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
src/icalendar/tests/test_icalendar.py 1 98.78%
src/icalendar/tests/test_unit_cal.py 2 98.92%
src/icalendar/tests/conftest.py 5 96.89%
src/icalendar/cal.py 6 97.9%
Totals Coverage Status
Change from base Build 9598258374: 0.0%
Covered Lines: 3087
Relevant Lines: 3175

💛 - Coveralls

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
@coveralls
Copy link

coveralls commented Jun 20, 2024

Pull Request Test Coverage Report for Build 9600659732

Details

  • 9 of 10 (90.0%) changed or added relevant lines in 8 files are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.02%) to 97.205%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/icalendar/tests/test_with_doctest.py 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
src/icalendar/timezone/zoneinfo.py 2 94.67%
src/icalendar/tests/test_cli_tool.py 2 88.0%
Totals Coverage Status
Change from base Build 9598258374: -0.02%
Covered Lines: 3060
Relevant Lines: 3148

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 20, 2024

Pull Request Test Coverage Report for Build 9600685185

Details

  • 9 of 10 (90.0%) changed or added relevant lines in 8 files are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.02%) to 97.205%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/icalendar/tests/test_with_doctest.py 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
src/icalendar/timezone/zoneinfo.py 2 94.67%
src/icalendar/tests/test_cli_tool.py 2 88.0%
Totals Coverage Status
Change from base Build 9598258374: -0.02%
Covered Lines: 3060
Relevant Lines: 3148

💛 - Coveralls

Copy link
Member

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is correct. icalendar v6 supports both timezone implementations pytz and zoneinfo and it will continue to support Python 3.7. This will allow an upgrade path for those stuck on old Pythons.

Some of the other changes in this PR could be useful, if Python 3.7 supports it.

setup.py Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Jun 21, 2024

Pull Request Test Coverage Report for Build 9615372085

Details

  • 9 of 10 (90.0%) changed or added relevant lines in 8 files are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.02%) to 97.205%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/icalendar/tests/test_with_doctest.py 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
src/icalendar/timezone/zoneinfo.py 2 94.67%
src/icalendar/tests/test_cli_tool.py 2 88.0%
Totals Coverage Status
Change from base Build 9598258374: -0.02%
Covered Lines: 3060
Relevant Lines: 3148

💛 - Coveralls

Copy link
Member

@niccokunzmann niccokunzmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Thanks for using this tool to update the codebase! It is really useful!
I added a few points that would be hard to find.
I wonder why the tests break in that place. It is unusual to have this inconsistent. I added my idea of why.

What do you think? How would you like to proceed? Thanks again for taking this up!

- ["3.8", "py38"]
- ["3.9", "py39"]
- ["3.10", "py310"]
- ["pypy-3.9", "pypy3"]
- ["3.10", "docs"]
- ["3.11", "py311"]
- ["3.12", "py312"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

src/icalendar/tests/test_with_doctest.py Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
@niccokunzmann
Copy link
Member

Thanks! If you could...

  • add yourself to the contributors' list
  • add a changelog entry under "breaking change"

@niccokunzmann
Copy link
Member

I wonder why py39 fails... I will have a look.

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
@coveralls
Copy link

coveralls commented Jun 22, 2024

Pull Request Test Coverage Report for Build 9627287775

Details

  • 9 of 10 (90.0%) changed or added relevant lines in 8 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 97.205%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/icalendar/tests/test_with_doctest.py 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
src/icalendar/timezone/zoneinfo.py 2 94.67%
Totals Coverage Status
Change from base Build 9626822147: -0.02%
Covered Lines: 3060
Relevant Lines: 3148

💛 - Coveralls

@kloczek
Copy link
Contributor Author

kloczek commented Jun 22, 2024

I've corrected last commit from "<= 3.9" to "< 3.9".

@niccokunzmann niccokunzmann mentioned this pull request Jun 23, 2024
12 tasks
@niccokunzmann
Copy link
Member

@kloczek Thanks for creating this PR! I am planning on releasing v6 and including this PR in it. So, I hope we can get this merged. 🚀
Where would you like to go with this?

@niccokunzmann
Copy link
Member

niccokunzmann commented Jun 23, 2024

The only changes I would request are these:

Copy link
Member

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait for #647 to be merged. Then update CHANGES.rst. See #647 (review)

@kloczek
Copy link
Contributor Author

kloczek commented Jun 24, 2024

As I;ve mentioned as globally it is declared to exit with error on any try to build on python < 3.8 it is not possible pass that rule on generate .whl archive where are placed install time dependencies.
From my package icalendar-5.0.13.dist-info/METADATA:

Metadata-Version: 2.1
Name: icalendar
Version: 5.0.13
Summary: iCalendar parser/generator
Home-page: https://github.com/collective/icalendar
Author: Plone Foundation
Author-email: plone-developers@lists.sourceforge.net
License: BSD-2-Clause
Keywords: calendar calendaring ical icalendar event todo journal recurring
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.8                      <<<<<<<<==== HERE.
License-File: LICENSE.rst
Requires-Dist: python-dateutil
Requires-Dist: pytz                              <<<<<<<===== AAND HERE
Requires-Dist: backports.zoneinfo ; python_version < "3.9" <<== AND HERE
Provides-Extra: test

@niccokunzmann
Copy link
Member

niccokunzmann commented Jun 24, 2024

Cool, yes. That is alright.

If you address these two concerns, I would merge it:

@niccokunzmann niccokunzmann merged commit 6122447 into collective:main Jun 25, 2024
12 of 13 checks passed
@niccokunzmann
Copy link
Member

Thanks @kloczek for your contribution!
For others: The changelog entry is not mandatory but a good indicator.

@kloczek
Copy link
Contributor Author

kloczek commented Jun 25, 2024

Thank you 👍
Sorry but I have some shortages of time to finish your requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants