-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor setup.py to avoid cyclic dependency on trino.__version__
__version__ is defined in __init__.py in trino module which means that we cannot easily use the module version in the library code because it introduces a cyclic dependency. This change introduces a _version.py which also includes other meta-information and changes setup.py to read those values from there instead of inline. The release script is also updated since the version now needs to be updated in a different file.
- Loading branch information
Showing
5 changed files
with
48 additions
and
21 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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
__title__ = "trino" | ||
__description__ = "Client for the Trino distributed SQL Engine" | ||
__url__ = "https://github.com/trinodb/trino-python-client" | ||
__version__ = "0.326.0" | ||
__author__ = "Trino Team" | ||
__author_email__ = "python-client@trino.io" | ||
__license__ = "Apache 2.0" |