-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Breaking changes with arrow 1.0.0 #407
Comments
- requirements.txt: specify arrow==1.00 - frames.py, fullmoon.py, watson.py: change "timestamp" to "int_timestamp"
Also need to update the tzinfo calls. According to the arrow 1.0.0 migration guide.
The following seems to address this:
|
- cli.py: change "date.tzinfo = tz.tzlocal()" to "date.replace(tzinfo=tz.tzlocal())"
Looks wonderful. Can you submit a PR with your fix? |
Thank you. PR submitted. |
- watson.cli.py: use date = date.replace(tzinfo=tz.tzlocal()) (date.replace does not modify the existing object)
Update unit test cases: - tests/test_cli.py: replace arrow.arrow.datetime with arrow.arrow.dt_datetime - tests/test_watson.py: replace .timestamp with .int_timestamp
- .travis.yml: remove python 3.5 - setup.py: require python >= 3.6 - CHANGELOG.md: mention arrow upgrade and drop of python 3.5 support
- requirements.txt: specify arrow==1.00 - frames.py, fullmoon.py, watson.py: change "timestamp" to "int_timestamp"
- cli.py: change "date.tzinfo = tz.tzlocal()" to "date.replace(tzinfo=tz.tzlocal())"
- watson.cli.py: use date = date.replace(tzinfo=tz.tzlocal()) (date.replace does not modify the existing object)
Update unit test cases: - tests/test_cli.py: replace arrow.arrow.datetime with arrow.arrow.dt_datetime - tests/test_watson.py: replace .timestamp with .int_timestamp
- .travis.yml: remove python 3.5 - setup.py: require python >= 3.6 - CHANGELOG.md: mention arrow upgrade and drop of python 3.5 support
Added: - The `log` command output can now be filtered to exclude projects and tags via `--ignore-project` and `--ignore-tag` (#395) - Python 3.8 support (#402) - Python 3.9 support (#402) - Support for the TZ environment variable to specify the local time zone (#391) Changed: - Upgrade to major arrow release 1.0.0 (#407) Fixed: - Zsh completion (#379) Removed: - Python 2.7 support (#305). - Python 3.5 support (#407).
Added: - The `log` command output can now be filtered to exclude projects and tags via `--ignore-project` and `--ignore-tag` (#395) - Python 3.8 support (#402) - Python 3.9 support (#402) - Support for the TZ environment variable to specify the local time zone (#391) Changed: - Upgrade to major arrow release 1.0.0 (#407) Fixed: - Zsh completion (#379) Removed: - Python 2.7 support (#305). - Python 3.5 support (#407).
📢 The new |
Added: - The `log` command output can now be filtered to exclude projects and tags via `--ignore-project` and `--ignore-tag` (jazzband#395) - Python 3.8 support (jazzband#402) - Python 3.9 support (jazzband#402) - Support for the TZ environment variable to specify the local time zone (jazzband#391) Changed: - Upgrade to major arrow release 1.0.0 (jazzband#407) Fixed: - Zsh completion (jazzband#379) Removed: - Python 2.7 support (jazzband#305). - Python 3.5 support (jazzband#407).
* Resolve Issue jazzband#407: Migrate to arrow 1.0.0 - requirements.txt: specify arrow==1.00 - frames.py, fullmoon.py, watson.py: change "timestamp" to "int_timestamp" * Resolve Issue jazzband#407: Migrate to arrow 1.0.0 - cli.py: change "date.tzinfo = tz.tzlocal()" to "date.replace(tzinfo=tz.tzlocal())" * Update requirements.txt This makes sense, especially given that arrow is already up to 1.0.2 Co-authored-by: Julien Maupetit <jmaupetit@users.noreply.github.com> * Resolve Issue jazzband#407: Migrate to arrow 1.0.0 - watson.cli.py: use date = date.replace(tzinfo=tz.tzlocal()) (date.replace does not modify the existing object) * Resolve Issue jazzband#407: Migrate to arrow 1.0.0 Update unit test cases: - tests/test_cli.py: replace arrow.arrow.datetime with arrow.arrow.dt_datetime - tests/test_watson.py: replace .timestamp with .int_timestamp * Resolve Issue jazzband#407: Migrate to arrow 1.0.0 - .travis.yml: remove python 3.5 - setup.py: require python >= 3.6 - CHANGELOG.md: mention arrow upgrade and drop of python 3.5 support * Update watson.zsh-completion fix: autocompletion won't work with zsh 5.8 * Use TZ environment variable to set the timezone (jazzband#411) Watson did not have a way to set the timezone, other than what the system used. In UNIX you can set the TZ variable to represent the timezone you want your programs to respect. * Bump release to 2.0.0 Added: - The `log` command output can now be filtered to exclude projects and tags via `--ignore-project` and `--ignore-tag` (jazzband#395) - Python 3.8 support (jazzband#402) - Python 3.9 support (jazzband#402) - Support for the TZ environment variable to specify the local time zone (jazzband#391) Changed: - Upgrade to major arrow release 1.0.0 (jazzband#407) Fixed: - Zsh completion (jazzband#379) Removed: - Python 2.7 support (jazzband#305). - Python 3.5 support (jazzband#407). * Fix year in 2.0.0 release Believe it or not its 2021! * Gracefully handle empty stop time (jazzband#418) Recent arrow library update broke the current frame edition. * Bump release to 2.0.1 Fixed: - Ability to `edit` the current frame (jazzband#418) * Add 'notes' field to frames. This is a large commit that adds the following: 1. Syntax: `watson stop --notes "some additional information"`. 2. Print only non-empty notes in log. 3. Always pass id to `new_frame` so that the length of array with/without notes doesn't cause ambiguity. 4. Print a warning message and the existing note if overwriting a note. 5. Print notes in report. Primary work here was done by the following people: Co-authored-by: Tristan Pratt <prat0088@gmail.com> Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com> * notes: Print notes in `watson log`. * notes: Fix tests. * Set requirements for click >= 8.0 and rename autocompletion parameter to shell_complete. Remove 'multiple' paramater on reporting option Co-authored-by: Jason Youzwak <jyouzwak@perspectalabs.com> Co-authored-by: veganjay <veganjay@gmail.com> Co-authored-by: Julien Maupetit <jmaupetit@users.noreply.github.com> Co-authored-by: Nikolay Shkrylev <snnwolf@users.noreply.github.com> Co-authored-by: Eddie Ash <cazador481@users.noreply.github.com> Co-authored-by: Julien Maupetit <julien@maupetit.net> Co-authored-by: Matthew Barry <komputerwiz.matt@gmail.com> Co-authored-by: Rohitt Vashishtha <aero31aero@gmail.com> Co-authored-by: Tristan Pratt <prat0088@gmail.com> Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Problem Description
I installed td-watson in a fresh environment and received an error when running:
The arrow library was updated on Feb 24, 2021 and there are breaking changes.
The default td-watson installation uses the new version, arrow 1.0.0:
Workaround
Downgrade to arrow 0.17.0:
And td-watson works again:
Quick fix
Update requirements.txt changing the line:
To specify the exact version:
Long-term solution
According to the arrow 1.0.0 migration guide:
I tried this and it appears to work.
The changes are:
The text was updated successfully, but these errors were encountered: