Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
248 commits
Select commit Hold shift + click to select a range
614af28
Set version to 4.0.0a1 for v4 development
m1yag1 May 1, 2025
602b552
Merge branch 'main' into 4.x-dev
sirosen May 5, 2025
86522c9
Configure 'Breaking Changes' changelog section (#1187)
sirosen May 12, 2025
0633eaf
Remove the "default requested scopes" (#1186)
sirosen May 12, 2025
45b6909
Remove base_path from all client classes (#1185)
MaxTueckeGlobus May 13, 2025
1a05bac
Updated CollectionDocument with MissingType
JasonAlt May 13, 2025
1522d76
Make 'GlobusAPIError.code' default to 'None' (#1190)
sirosen May 14, 2025
6504387
Merge pull request #1189 from JasonAlt/SC-XXXXX-SDK-Update-Collection…
kurtmckee May 14, 2025
613aed9
Simplify custom parsing for TimersAPIError (#1191)
sirosen May 15, 2025
d465ac7
Merge branch 'main' into release-4.0.0a1
kurtmckee May 20, 2025
d4229f7
Bump version and changelog for release
kurtmckee May 20, 2025
f4ce312
Merge pull request #1193 from globus/release-4.0.0a1
kurtmckee May 20, 2025
6a8e22e
Remove the `globus_sdk.version` module
kurtmckee May 20, 2025
a4a82a7
Merge pull request #1195 from globus/rm-executable-version-code
kurtmckee May 20, 2025
89df1de
Remove the 'MutableScope' type (#1198)
sirosen May 28, 2025
4495a79
Add an entry to the upgrading doc for MutableScope
sirosen May 29, 2025
aa4a7af
Refine upgrade doc on MutableScope
sirosen May 29, 2025
6ac8936
Merge pull request #1200 from globus/doc-mutable-scope-removal-upgrade
sirosen May 29, 2025
92b9f51
Remove legacy "GARE" module aliasing
sirosen May 29, 2025
f307e06
Convert to a csv-table in docs
sirosen May 29, 2025
f34d895
Merge pull request #1203 from sirosen/remove-legacy-gare-alias
sirosen May 29, 2025
86c8587
Remove the setter for GlobusAPIError.message (#1204)
sirosen May 30, 2025
ed8fc5e
Update flows client classes to use MISSING defaults (#1205)
MaxTueckeGlobus Jun 2, 2025
ca7f229
Remove deprecated aliases for "Timers" (#1206)
sirosen Jun 4, 2025
8cba581
Merge tag '3.57.0' into merge-back-3.57.0
sirosen Jun 4, 2025
b9d3ef9
Typo-fix from merge: double-set value
sirosen Jun 4, 2025
a639fcf
Merge pull request #1210 from sirosen/merge-back-3.57.0
sirosen Jun 5, 2025
c2b9883
Remove experimental 'scope_parser' alias
sirosen Jun 5, 2025
4d2e6b3
Updated GCS client to use MISSING defaults
MaxTueckeGlobus Jun 5, 2025
6af3c45
Added changelog
MaxTueckeGlobus Jun 5, 2025
97053e8
Update search client classes to use MISSING defaults (#1207)
MaxTueckeGlobus Jun 5, 2025
c328c8a
Update compute and groups clients classes to use MISSING defaults (#1…
MaxTueckeGlobus Jun 5, 2025
74c7d0f
Merge pull request #1214 from globus/sc-15807-gcs-missing-defaults
sirosen Jun 5, 2025
17fc1dc
Bump version and changelog for release
sirosen Jun 5, 2025
d78879d
Merge pull request #1215 from sirosen/release-4.0.0a2
sirosen Jun 5, 2025
8ed0566
Add `add_app_transfer_data_access_scope` for flows
sirosen Apr 15, 2025
9bdf30f
Merge pull request #1166 from sirosen/add-specific-flow-data-access-s…
sirosen Jun 5, 2025
80697d8
Merge pull request #1213 from sirosen/remove-deprecated-scope-parser-…
sirosen Jun 5, 2025
04f15ea
Updated transfer client to use MISSING defaults
MaxTueckeGlobus Jun 5, 2025
93ae45d
Added changelog
MaxTueckeGlobus Jun 5, 2025
6fd0ee8
Requested fix: changelog formatting
MaxTueckeGlobus Jun 5, 2025
624ad1c
Requested change: revert submission_id check
MaxTueckeGlobus Jun 5, 2025
644ae89
Requested change: remove SDK defaults
MaxTueckeGlobus Jun 6, 2025
4eadaf4
Requested change: revert filter rule method default
MaxTueckeGlobus Jun 6, 2025
7ea88fa
Convert the parser perf test to pytest-benchmark
sirosen Jun 7, 2025
3ed6a76
Merge pull request #1219 from sirosen/try-pytest-benchmark
sirosen Jun 9, 2025
7cb4bc4
Merge pull request #1216 from globus/sc-15807-transfer-missing-defaults
sirosen Jun 9, 2025
b42aa5d
Move classproperty to a dedicated private module
sirosen Jun 9, 2025
f4a0480
Move the MISSING sentinel to a dedicated module
sirosen Jun 10, 2025
19e26ca
Move a base64 helper from `utils`
sirosen Jun 10, 2025
49b7687
Convert "PayloadWrapper" type to "Payload"
sirosen Jun 10, 2025
cd64e42
Move tools of 'utils' and into '_remarshal'
sirosen Jun 10, 2025
fc4186f
Rename 'utils' to '_utils'
sirosen Jun 10, 2025
fd81e19
Convert GCS payload types from "_set_opt..."
sirosen Jun 11, 2025
9641db4
Convert Transfer payload types from _set_opt...
sirosen Jun 11, 2025
93b593a
Add a changelog for cleanup to 'utils'
sirosen Jun 11, 2025
95951ab
Linting fixes + adjust PR number in changelog
sirosen Jun 11, 2025
ec6692f
Fix lazy import test
sirosen Jun 11, 2025
c911038
Apply suggestions from code review
sirosen Jun 13, 2025
dfda3a2
Merge remote-tracking branch 'origin/main' into 4.x-dev
kurtmckee Jun 16, 2025
be86381
Rename "Payload" -> "GlobusPayload"
sirosen Jun 17, 2025
92fe40a
Remove imprecise use of 'Any' in _remarshal
sirosen Jun 17, 2025
3e13d3a
Refine the internal naming of remarshal functions
sirosen Jun 17, 2025
156b0b8
Merge pull request #1222 from sirosen/utils-cleanup
sirosen Jun 17, 2025
0202409
Merge branch 'fix-changelog-rendering' into fix-changelog-rendering-v4
kurtmckee Jun 23, 2025
4167548
Convert the CHANGELOG to Markdown-compatible headers (v4 branch)
kurtmckee Jun 23, 2025
dcfc391
Merge pull request #1231 from globus/fix-changelog-rendering-v4
kurtmckee Jun 23, 2025
3360547
Remove transfer_client param to data constructors
sirosen Jun 20, 2025
2243996
Begin converting Auth clients to use MISSING
MaxTueckeGlobus Jun 6, 2025
631df85
Update get_identities and JWK methods w/ MISSING
sirosen Jun 18, 2025
7aff753
Update project and policy usages w/ MISSING
sirosen Jun 18, 2025
306bf99
Fix errors from AuthClient MISSING updates
sirosen Jun 18, 2025
50fed2f
Typo fix: double-conversion of a value
sirosen Jun 18, 2025
92a0e00
Add changelog for Auth client MISSING conversion
sirosen Jun 23, 2025
b96ec00
Apply suggestions from code review
sirosen Jun 23, 2025
c195812
Remove unnecessary backslash continuations
sirosen Jun 23, 2025
bfa385a
Apply suggestions from code review
sirosen Jun 23, 2025
3bfaf16
Make tests of `provision` flag clearer
sirosen Jun 23, 2025
7bac3a6
Merge pull request #1229 from sirosen/remove-transfer-client-param
sirosen Jun 23, 2025
93514eb
Separate the ScopeParser from Scope
sirosen Jun 3, 2025
a6e7635
Make Scope objects immutable
sirosen Jun 4, 2025
aaf1f43
Add sections to upgrading guide about scopes
sirosen Jun 4, 2025
91cc7e3
Update all usages of 'Scope.add_dependency'
sirosen Jun 9, 2025
2da0046
Fix an unannotated dict type under py3.8
sirosen Jun 9, 2025
e64b29f
Refine changelog for scope parsing + immutability
sirosen Jun 9, 2025
d412ab9
Apply suggestions from code review
sirosen Jun 23, 2025
9d262dd
Merge pull request #1208 from sirosen/update-scope-parsing
sirosen Jun 23, 2025
0f540ec
Add minor comment about type-ignore usage
sirosen Jun 24, 2025
557ae2a
Merge pull request #1228 from sirosen/auth-missing-defaults
sirosen Jun 24, 2025
372533e
Fix a bug recently introduced into a typing test
sirosen Jun 24, 2025
a726701
Merge pull request #1234 from sirosen/fix-typing-test
sirosen Jun 24, 2025
63ff466
Remove '.mypy_cache' from GHA caching
sirosen Jun 24, 2025
1504752
Merge pull request #1236 from sirosen/temporarily-remove-mypy-caching
sirosen Jun 24, 2025
0427f5a
Replace ScopeBuilder types with Scope Collections
sirosen Jun 23, 2025
a50b499
Simplify the behavior of ScopeCollection types
sirosen Jun 25, 2025
e44c7dd
Add documentation on ScopeCollection rewrite
sirosen Jun 25, 2025
f34f843
Split scope collection docs to improve doc flow
sirosen Jun 25, 2025
af11122
Use 'is MISSING' to compare for missing-ness
sirosen Jun 24, 2025
da0a6e8
Add a type checking test for MISSING
sirosen Jun 24, 2025
dac9827
Remove "new in" comment
sirosen Jun 24, 2025
93273d1
Reflow the new flake8 plugin rule
sirosen Jun 24, 2025
0f202f8
Restructure flake8 plugin to be simpler to read
sirosen Jun 27, 2025
a070af0
Improve comments on MISSING type checker trick
sirosen Jun 27, 2025
322c5ac
(actions) update PR references
actions-user Jul 1, 2025
b7083e6
Merge origin/main into 4.x-dev to sync latest changes from 3.59.0 rel…
m1yag1 Jul 1, 2025
1631a77
Merge origin/4.x-dev to resolve changelog conflicts
m1yag1 Jul 1, 2025
f340136
Fix compute client imports for 4.x-dev branch structure
m1yag1 Jul 1, 2025
2b13e0d
Merge pull request #1240 from globus/merge-main-to-4x-dev-20250701
m1yag1 Jul 1, 2025
3826588
Merge pull request #1235 from sirosen/missing-is-also-a-valid-annotat…
sirosen Jul 3, 2025
5acecaa
Merge pull request #1237 from sirosen/service-scopes-collection
sirosen Jul 3, 2025
b2d848d
Merge remote-tracking branch 'origin/main' into merge-main-to-4x-dev-…
m1yag1 Jul 10, 2025
fe50b55
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 10, 2025
b157ad1
Merge pull request #1250 from globus/merge-main-to-4x-dev-20250709
m1yag1 Jul 10, 2025
3926f60
Bump version and changelog for release
m1yag1 Jul 10, 2025
258d69c
Merge pull request #1253 from globus/release-4.0.0a3
m1yag1 Jul 10, 2025
00d7e16
Rename `tokenstorage` to `token_storage` (#1252)
MaxTueckeGlobus Jul 10, 2025
0896f3b
Move `globus_sdk._testing` to `globus_sdk.testing` (#1251)
MaxTueckeGlobus Jul 10, 2025
7accb3c
Remove deprecated 'consents' experimental module
sirosen Jul 10, 2025
209084d
Merge pull request #1254 from sirosen/remove-deprecated-experimental-…
sirosen Jul 11, 2025
cfbca5e
Fix PR links in changelog (#1256)
sirosen Jul 11, 2025
cf1a867
Remove the compatibility shim from `create_policy` (#1257)
sirosen Jul 14, 2025
55bc971
Replace `ScopeCollectionType` alias with explicit expansion of types …
MaxTueckeGlobus Jul 16, 2025
dffca9c
Create 'globus_sdk._internal', move 'lazy_import'
sirosen Jul 8, 2025
3538fa1
Move classproperty into _internal
sirosen Jul 8, 2025
c6b5963
Move the flake8 extension into _internal
sirosen Jul 8, 2025
cae215a
Move the sphinx extension into _internal
sirosen Jul 8, 2025
677bfdf
Move guards into _internal
sirosen Jul 8, 2025
b130c8c
Move remarshal into _internal
sirosen Jul 8, 2025
fa1ae80
Move serializable into _internal
sirosen Jul 8, 2025
da5fc06
Move utils into _internal
sirosen Jul 8, 2025
b38494d
Move type definitions into _internal
sirosen Jul 8, 2025
5babdb5
Move internal components into 'globus_sdk._internal' namespace (#1245)
sirosen Jul 16, 2025
3eddb61
Remove the `UUIDLike` type alias
sirosen Jul 11, 2025
9e476cd
Improve upgrading guide for optional scope dependencies
m1yag1 Jul 17, 2025
ac874f9
Update migration guide scope docs with optional dependency example an…
m1yag1 Jul 17, 2025
d0a97d2
Remove the 'UUIDLike' type alias (v4 branch) (#1262)
sirosen Jul 17, 2025
eca28da
Remove the experimental GlobusApp aliases
sirosen Jul 17, 2025
468b31e
Remove the experimental GlobusApp aliases (#1263)
sirosen Jul 17, 2025
28b422c
Add RequestCallerInfo data object to RequestsTransport.request (#1261)
m1yag1 Jul 17, 2025
f082a2c
(actions) update PR references
actions-user Jul 17, 2025
211306b
Fix the PR autofixer job to use fetch-depth=0
sirosen Jul 17, 2025
00a4e9c
Fix the PR autofixer job to use fetch-depth=0 (#1266)
sirosen Jul 17, 2025
3aed16c
Remove the experimental login_flows alias
sirosen Jul 18, 2025
9cad5f9
Remove deprecated 'oauth2_validate_token' method
sirosen Jul 18, 2025
9437bf8
Remove deprecated 'oauth2_validate_token' method (#1270)
sirosen Jul 18, 2025
1aafe1b
(actions) update PR references
actions-user Jul 18, 2025
5377ff2
Remove the experimental login_flows alias (#1267)
sirosen Jul 18, 2025
d7101e3
Rename 'function_data' to 'data'
sirosen Jul 18, 2025
7843ec5
Remove 'TimerJob.from_transfer_data' constructor (#1269)
sirosen Jul 18, 2025
d310867
(actions) update PR references
actions-user Jul 18, 2025
fec898e
Remove the 'oauth2_userinfo' alias
sirosen Jul 18, 2025
696278e
Remove `ConfidentialAppAuthClient.get_identities`
actions-user Jul 18, 2025
c2be51a
Remove the 'oauth2_userinfo' alias (#1272)
sirosen Jul 19, 2025
747d394
(actions) update PR references
actions-user Jul 19, 2025
0579bae
Rename 'function_data' to 'data' (#1268)
sirosen Jul 21, 2025
d87d87a
(actions) update PR references
actions-user Jul 21, 2025
bba8edc
Document 'get_identities' upgrading process
sirosen Jul 18, 2025
46026bd
Remove 'TransferClient.create_endpoint'
sirosen Jul 22, 2025
c1145bf
Remove `GCSClient.connector_id_to_name`
sirosen Jul 22, 2025
0720bba
Remove `GCSClient.connector_id_to_name` (#1277)
sirosen Jul 22, 2025
a4b64f0
(actions) update PR references
actions-user Jul 22, 2025
a3ea248
Remove 'TransferClient.create_endpoint' (#1276)
sirosen Jul 22, 2025
022303a
(actions) update PR references
actions-user Jul 22, 2025
8b24abb
Remove `ConfidentialAppAuthClient.get_identities` (#1273)
sirosen Jul 22, 2025
dcba881
(actions) update PR references
actions-user Jul 22, 2025
9bb4f53
Remove 'client_id' from 'AuthClient' (#1271)
sirosen Jul 23, 2025
3c8b81c
(actions) update PR references
actions-user Jul 23, 2025
a8ea231
Merge '3.61.0' into version 4
sirosen Jul 23, 2025
b3949b0
Merge v3.61.0 back to 4.x-dev (#1281)
sirosen Jul 23, 2025
de085f2
Remove Endpoint Activation support (#1279)
sirosen Jul 23, 2025
d53e063
(actions) update PR references
actions-user Jul 23, 2025
b193def
Remove the ComputeClient alias (#1282)
sirosen Jul 23, 2025
efa4b10
(actions) update PR references
actions-user Jul 23, 2025
5041fc0
Remove the "write" endpoint server methods (#1284)
sirosen Jul 23, 2025
daf5f6e
Remove 'raw_text' (deprecated) (#1283)
sirosen Jul 23, 2025
f6b47c2
(actions) update PR references
actions-user Jul 23, 2025
dee0ca6
Remove 'operation_symlink' (deprecated) (#1286)
sirosen Jul 24, 2025
77eb6ad
(actions) update PR references
actions-user Jul 24, 2025
7e4b64b
Remove deprecated Compute data helpers (#1285)
sirosen Jul 24, 2025
82cce06
(actions) update PR references
actions-user Jul 24, 2025
e564f19
Bump version and changelog for release
sirosen Jul 25, 2025
a493759
Release v4.0.0a4 (#1288)
sirosen Jul 25, 2025
7808e30
Convert 'scopes_to_str' to 'ScopeParser.serialize'
sirosen Jul 23, 2025
f2afc52
Move 'scopes_to_scope_list' to private function
sirosen Jul 25, 2025
5a6ac14
Make ScopeParser.serialize handle the empty case
sirosen Jul 25, 2025
6b710e7
Add a changelog for scope normalization updates
sirosen Jul 25, 2025
98711f3
Make legacy token storage less accessible
sirosen Jul 17, 2025
8732e91
Move 'v2' token_storage up a level
sirosen Jul 28, 2025
743425e
Remove the 'filter_role' param for list_flows (#1291)
sirosen Jul 29, 2025
16202e2
(actions) update PR references
actions-user Jul 29, 2025
f62891e
Remove SearchClient.update_entry (#1292)
sirosen Jul 29, 2025
23d3f05
(actions) update PR references
actions-user Jul 29, 2025
f73d236
Make the `globus_sdk.token_storage` namespace only present 'v2' membe…
sirosen Jul 29, 2025
b73565f
(actions) update PR references
actions-user Jul 29, 2025
6809887
Remove the "SearchQuery" type
sirosen Jul 29, 2025
f2449c4
Add upgrading doc for 'SearchQuery'
sirosen Jul 29, 2025
db21ddd
Cleanup the scope normalization interfaces for v4 (#1289)
sirosen Jul 29, 2025
26fd489
(actions) update PR references
actions-user Jul 29, 2025
6d3fffe
Remove the "SearchQuery" type (#1294)
sirosen Jul 29, 2025
e61a38b
(actions) update PR references
actions-user Jul 29, 2025
cd63493
Remove SearchClient.create_entry
sirosen Jul 29, 2025
b85c0f0
Add a small section to upgrading doc for 'ingest'
sirosen Jul 29, 2025
a5726ee
Change how `BaseClient.transport` is customized
sirosen Jul 21, 2025
78e4c06
Introduce RetryCheckCollection
sirosen Jul 21, 2025
9739010
Refactor to expose `RetryConfiguration`
sirosen Jul 22, 2025
4db7bcc
Add a changelog for RequestsTransport refactoring
sirosen Jul 22, 2025
184d1c7
Refactor RetryConfig to isolate hook registration
sirosen Jul 22, 2025
fbb9897
Fix minor documentation errors
sirosen Jul 29, 2025
0a090ed
Split the RequestsTransport into two parts, introducing RetryConfig (…
sirosen Jul 29, 2025
d87bae9
(actions) update PR references
actions-user Jul 29, 2025
438e2b5
Remove SearchClient.create_entry (#1293)
sirosen Jul 29, 2025
d728768
(actions) update PR references
actions-user Jul 29, 2025
b22410d
Update `warn_deprecated` to emit `RemovedInV5Warning`
m1yag1 Jul 31, 2025
d3d5161
Merge v3.62.0 back to 4.x-dev
sirosen Jul 31, 2025
da5ef29
Update `warn_deprecated` to emit `RemovedInV5Warning` (#1295)
m1yag1 Jul 31, 2025
fc09db3
(actions) update PR references
actions-user Jul 31, 2025
103c9f9
Bump version and changelog for release
sirosen Jul 31, 2025
40a0cf7
Release v4.0.0b1 (#1298)
sirosen Jul 31, 2025
c4a2e32
Put error text in `__notes__` where supported
sirosen Aug 5, 2025
3c10ca8
Put error text in `__notes__` where supported (#1299)
sirosen Aug 6, 2025
b8aa68f
(actions) update PR references
actions-user Aug 6, 2025
99d5eb7
Set pytest-xdist parallelism to 0 under `tox p`
sirosen Aug 9, 2025
c846928
Set pytest-xdist parallelism to 0 under `tox p` (#1301)
sirosen Aug 11, 2025
8a087eb
Raise TypeError on invalid Scope constructions
sirosen Aug 9, 2025
9984e3b
Raise TypeError on invalid Scope constructions (#1300)
sirosen Aug 11, 2025
eca4f9b
(actions) update PR references
actions-user Aug 11, 2025
9ee949b
Merge remote-tracking branch 'upstream/main' into merge-main-to-4x-de…
derek-globus Sep 8, 2025
0bbb778
Merge main into 4.x-dev (#1306)
derek-globus Sep 8, 2025
b657570
Merge 'main' into v4.x development
sirosen Sep 17, 2025
5f07c14
Remove support for symlinks and 'skip_activation_check' from Transfer…
sirosen Sep 17, 2025
819b79c
(actions) update PR references
actions-user Sep 17, 2025
0d8671e
Add guidance on 'base_path' to upgrading doc
sirosen Sep 22, 2025
5b01dbc
Convert malformed csv-table to simple table
sirosen Sep 23, 2025
dc0b954
Add guidance on 'base_path' to upgrading doc (#1312)
sirosen Sep 23, 2025
0e9d428
Fix doc title for SDK v4 (#1313)
sirosen Sep 23, 2025
ab8f670
Merge branch 'main' into merge-main-to-4x-dev-20250924
sirosen Sep 24, 2025
aa91e83
Update '_testing' usages for 4.x
sirosen Sep 24, 2025
7a78996
Merge main into 4.x-dev (#1315)
sirosen Sep 24, 2025
ee24f9c
Bump version and changelog for release
sirosen Sep 24, 2025
6a9e604
Release v4.0.0b2 (#1316)
sirosen Sep 24, 2025
748c6d2
Merge commit 'deac5b40' into merge-auth-get_my_groups
kurtmckee Sep 29, 2025
c6b5bc0
Merge #1317 to `4.x-dev` (#1321)
kurtmckee Sep 29, 2025
7411792
(actions) update PR references
actions-user Sep 29, 2025
52213ef
Merge remote-tracking branch 'origin/main' into merge-main-to-4x-dev-…
kurtmckee Oct 3, 2025
2316c9c
Merge main into 4.x-dev (#1325)
kurtmckee Oct 3, 2025
8ce289c
Add ScopeCollections to upgrading guide (#1328)
sirosen Oct 7, 2025
e0338d3
Merge branch '3.x-line' into 4.0-merge-back
sirosen Oct 8, 2025
5b9e017
Bump version and changelog for release
sirosen Oct 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ per-file-ignores = *.pyi:E302,E305

[flake8:local-plugins]
extension =
SDK = _globus_sdk_flake8:Plugin
paths = ./src/globus_sdk/
SDK = globus_sdk_flake8:Plugin
paths = ./src/globus_sdk/_internal/extensions/
8 changes: 6 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ jobs:
- "pylint"
- "test-lazy-imports"
- "twine-check"
cache-paths:
- ".mypy_cache/"
# TODO: revisit caching strategy for '.mypy_cache'
# we believe a bad cache can be restored when the package changes,
# tricking 'mypy-test' into seeing an old version of the SDK
#
# cache-paths:
# - ".mypy_cache/"

uses: "globus/workflows/.github/workflows/tox.yaml@f41714f6a8b102569807b348fce50960f9617df8" # v1.2
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SDK_VERSION=$(shell grep '^__version__' src/globus_sdk/version.py | cut -d '"' -f2)
SDK_VERSION=$(shell grep '^version' pyproject.toml | head -n 1 | cut -d '"' -f2)

# these are just tox invocations wrapped nicely for convenience
.PHONY: lint test docs all-checks
Expand Down
4 changes: 2 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- Decide on the new version number and create a branch;
`git checkout -b release-$SDK_VERSION`

- Update the version in `src/globus_sdk/version.py`
- Update the version in `pyproject.toml`

- Update metadata and changelog, then verify changes in `changelog.rst`

Expand All @@ -28,7 +28,7 @@ $EDITOR changelog.rst
```

- Add changed files;
`git add changelog.d/ changelog.rst src/globus_sdk/version.py`
`git add changelog.d/ changelog.rst pyproject.toml`

- Commit; `git commit -m 'Bump version and changelog for release'`

Expand Down
22 changes: 10 additions & 12 deletions changelog.d/check-version-is-new.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,22 @@
import re
import sys

if sys.version_info >= (3, 11):
import tomllib
else:
# Older Python versions
import tomli as tomllib

PATTERN_FORMAT = "^v{version}\\s+\\({date}\\)$"
CHANGELOG_D = os.path.dirname(__file__)
REPO_ROOT = os.path.dirname(CHANGELOG_D)


def parse_version():
# single source of truth for package version
version_string = ""
version_pattern = re.compile(r'__version__ = "([^"]*)"')
with open(os.path.join(REPO_ROOT, "src", "globus_sdk", "version.py")) as f:
for line in f:
match = version_pattern.match(line)
if match:
version_string = match.group(1)
break
if not version_string:
raise RuntimeError("Failed to parse version information")
return version_string
with open(os.path.join(REPO_ROOT, "pyproject.toml"), "rb") as f:
pyproject = tomllib.load(f)

return pyproject["project"]["version"]


def get_header_re(version):
Expand Down
Loading
Loading