-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
ci: add multiple test targets #159
Open
eigenmannmartin
wants to merge
4
commits into
master
Choose a base branch
from
ci-add-multiple-test-targets
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "icalevents" | ||
version = "0.2.0" | ||
version = "0.2.1" | ||
description = "Simple Python 3 library to download, parse and query iCal sources." | ||
authors = [ | ||
{ name = "Martin Eigenmann", email = "[email protected]" }, | ||
|
@@ -12,8 +12,8 @@ license = "MIT" | |
requires-python = ">=3.9" | ||
|
||
dependencies = [ | ||
"icalendar (~=6.0)", | ||
"python-dateutil (~=2.9)", | ||
"icalendar (>=5.0.3)", | ||
"python-dateutil (>=2.9)", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would be interested to learn what the problem with |
||
"pytz (>=2024.2)", | ||
"urllib3 (>=1.26.5)", | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That doesn't work.
icalendar
6.0 had a breaking change when using the internalWINDOWS_TO_OLSON
map (change of namespace) anduse_pytz()
needs to be used for the old behaviour as they changed the default timezone database. The latter may be not needed - I didn't tested icalevents with the new default to be honest. But I didn't want to take any risk here. See #145. It must be>=5.0.3,<6.0
here if you revert the changes from #145, but then it will not work for people who need the newesticalendar
release.I'm not that confident with Python, but I guess it's not possible to wrap the code lines in any if clause, depending on the used dependency version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, after doing some research, it may be possible. This Stack Overflow answer - together with the discussion here - would result in something like
as solution. But the question is how we would test everything with both versions in the pipelines? 🤔 I can only think about two new steps using hard-coded installation actions for
icalendar
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this would be the proper work around @DerDreschner .
Typically you use a testing matrix which allows different versions of dependencies and python versions, like the above workflow. However, you can also add into the matrix the versions of icalendar that you would like to see tested. In this case, <6.0 and >6.0. Here is an example that uses Django in that regard and should be straightforward to add in this PR.