-
Notifications
You must be signed in to change notification settings - Fork 1
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
Hotfix v0.3.1 #105
Hotfix v0.3.1 #105
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,5 +1,9 @@ | ||||||||||||||
# Change Log | ||||||||||||||
|
||||||||||||||
## 0.3.1 | ||||||||||||||
|
||||||||||||||
Update readthedocs config for current installation | ||||||||||||||
|
||||||||||||||
Comment on lines
+5
to
+6
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. 🛠️ Refactor suggestion Expand the changelog entry with more details about the configuration changes. The current entry is too brief. Consider adding specific details about:
This will help users understand the full scope of changes in this hotfix. Apply this diff to expand the entry: -Update readthedocs config for current installation
+Update readthedocs configuration:
+- Update Python version to 3.12
+- Change dependency installation to use pip directly from current directory
+- Add extra_requirements for documentation dependencies 📝 Committable suggestion
Suggested change
|
||||||||||||||
## 0.3 | ||||||||||||||
|
||||||||||||||
- Updated to use numpy `datetime64` to support a greater range of years beyond the 4-digit years supported by python's builtin `datetime.date` | ||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
# import sys | ||
# sys.path.insert(0, os.path.abspath('.')) | ||
|
||
import undate | ||
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. |
||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
|
@@ -22,7 +23,7 @@ | |
author = "DHtech Community" | ||
|
||
# The full version, including alpha/beta/rc tags | ||
release = "0.0.1.dev" | ||
release = undate.__version__ | ||
Comment on lines
25
to
+26
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. |
||
|
||
master_doc = "index" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
__version__ = "0.3.0" | ||
__version__ = "0.3.1" | ||
|
||
from undate.date import DatePrecision | ||
from undate.undate import Undate, UndateInterval | ||
|
||
__all__ = ["Undate", "UndateInterval", "DatePrecision"] | ||
__all__ = ["Undate", "UndateInterval", "DatePrecision", "__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.
💡 Codebase verification
Python 3.12 upgrade needs code modifications
The codebase currently uses pre-Python 3.10 syntax for type hints (using
Union
instead of the|
operator) and has a minimum Python requirement of ">=3.9". While upgrading to Python 3.12 is technically possible since it meets the minimum version requirement, the following code patterns should be modernized first:src/undate/undate.py
: Uses pre-3.10Union
type hintssrc/undate/date.py
: Uses pre-3.10Union
type hintssrc/undate/converters/iso8601.py
: Has type-related comments suggesting compatibility issuesConsider modernizing the type hints to use Python 3.10+ syntax before upgrading to Python 3.12 to take advantage of newer language features and maintain cleaner code.
🔗 Analysis chain
Verify Python 3.12 compatibility
The Python version has been updated from 3.9 to 3.12, which is a significant version jump. Let's verify the project's compatibility with Python 3.12.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 298
Script:
Length of output: 1208