-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use datetime functions from python standard lib (#371)
* remote setup.py, get version.py info from pyproject.toml * Use timezone class from stdlib * Parse date values using fromisoformat * Add timezone test for expiration date * Use date parse function for P3.6 compatibility * Update datetime format string WIP sad update format * remove dateutil dep * backwards compatible __version__ --------- Co-authored-by: evan <[email protected]>
- Loading branch information
Showing
6 changed files
with
83 additions
and
84 deletions.
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
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,3 +1,5 @@ | ||
__version__ = "4.0.6" | ||
|
||
__all__= ["__version__"] | ||
|
||
# FIXME: switch to using importlib.metadata when dropping Python<=3.7 | ||
import pkg_resources | ||
__version__ = pkg_resources.get_distribution('pykeepass').version |
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