-
-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use graphql's built-in version object (#3622)
* use graphql's built-in version object * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add RELEASE.md * Add tweet file --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Patrick Arminio <[email protected]>
- Loading branch information
1 parent
a1f3275
commit 22bd2fc
Showing
3 changed files
with
12 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Release type: patch | ||
|
||
This release updates how we check for GraphQL core's version to remove a | ||
dependency on the `packaging` package. |
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,6 @@ | ||
🆕 Release $version is out! Thanks to $contributor for the PR 👏 | ||
|
||
This release updates how we check for GraphQL core's version to remove a | ||
dependency on the `packaging` package. | ||
|
||
Get it here 👉 $release_url |
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,5 +1,4 @@ | ||
import graphql | ||
from packaging.version import Version | ||
from graphql.version import VersionInfo, version_info | ||
|
||
IS_GQL_33 = Version(graphql.__version__) >= Version("3.3.0a") | ||
IS_GQL_33 = version_info >= VersionInfo.from_str("3.3.0a0") | ||
IS_GQL_32 = not IS_GQL_33 |