Skip to content

Add "CloudPath" to possible cloud_path types in CloudPath class - #342

Merged
pjbull merged 1 commit into
drivendataorg:342-live-testsfrom
karolzlot:patch-2
Jun 21, 2023
Merged

Add "CloudPath" to possible cloud_path types in CloudPath class#342
pjbull merged 1 commit into
drivendataorg:342-live-testsfrom
karolzlot:patch-2

Conversation

@karolzlot

@karolzlot karolzlot commented Jun 18, 2023

Copy link
Copy Markdown
Contributor

This solves my issue in #179 (comment)

After reading https://peps.python.org/pep-0673/ it seems to me that this change won't cause any problems. What do you think?

@codecov

codecov Bot commented Jun 18, 2023

Copy link
Copy Markdown

Codecov Report

Merging #342 (4c80788) into master (2a3d712) will decrease coverage by 0.5%.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #342     +/-   ##
========================================
- Coverage    94.2%   93.8%   -0.5%     
========================================
  Files          22      22             
  Lines        1484    1484             
========================================
- Hits         1399    1393      -6     
- Misses         85      91      +6     
Impacted Files Coverage Δ
cloudpathlib/cloudpath.py 92.2% <ø> (-0.4%) ⬇️

... and 2 files with indirect coverage changes

@karolzlot

karolzlot commented Jun 18, 2023

Copy link
Copy Markdown
Contributor Author

It seems to me that "Self" is misused here so we could also remove it.

@pjbull
pjbull changed the base branch from master to 342-live-tests June 21, 2023 16:12
@pjbull

pjbull commented Jun 21, 2023

Copy link
Copy Markdown
Member

Merging into a local branch to run live server tests

@pjbull
pjbull merged commit e1dd6b7 into drivendataorg:342-live-tests Jun 21, 2023
pjbull added a commit that referenced this pull request Jul 22, 2023
* Add "CloudPath" to possible cloud_path types (#342)

* Add to changelog

---------

Co-authored-by: Karol Zlot <11590960+karolzlot@users.noreply.github.com>
msmitherdc added a commit to CRREL/cloudpathlib that referenced this pull request Nov 1, 2023
* Add "CloudPath" to possible cloud_path types (drivendataorg#342) (drivendataorg#343)

* Add "CloudPath" to possible cloud_path types (drivendataorg#342)

* Add to changelog

---------

Co-authored-by: Karol Zlot <11590960+karolzlot@users.noreply.github.com>

* Added with_stem support (drivendataorg#290) (drivendataorg#354)

* Added with_stem support

* Update readme (+small fix to make_support_table)

* Added test

* Update history.md

* Fallback to trivial CPython implementation if `with_stem` is not available

* Add a clarification comment

Co-authored-by: Daniel Oriyan <gilthans@gmail.com>

* Fix flake8 errors (drivendataorg#359)

* Fix flake8 errors

* Fix wrong comparison

* Bump codecov action version; add codecov token

---------

Co-authored-by: Jay Qi <jayqi@users.noreply.github.com>

* Update write_text to include newline variable (drivendataorg#362) (drivendataorg#363)

* Update write_text to include newline variable

* Remove old docstring link

* Update cloudpathlib/cloudpath.py with black correction

* Remove use of io module

* update HISTORY.md

Co-authored-by: Matthew Price <matthew.price23@gmail.com>

* Add support for Python 3.12 (drivendataorg#364)

* passing tests

* remove print

* make method signatures match

* Remove unused import

* ignore type errors

* ignore more type errors

* make linting and tests work on multiple py versions

* add 3.12 to CI and pyproject

* use pytest-cases fork

* More performant walk implementation

* format

* update methods

* Test walk method

* Version agnostic tests

* update tests

* Add tests

* Order agnostic walk test

* Changes

* Update changelog

* sleep for flaky test

* Sleep flaky tests

* sleepier

* implement env var for local cache dir (drivendataorg#361)

* Add contributing guidelines (drivendataorg#367)

* contributing guidelines

* Apply suggestions from code review

Co-authored-by: Katie Wetstone <46792169+klwetstone@users.noreply.github.com>

* WIP

* Contrib tweaks and PR template

* clarification

* update history typo

---------

Co-authored-by: Katie Wetstone <46792169+klwetstone@users.noreply.github.com>

* Version bump

* format with black

* ignore type checking here

* update client reference

* update

* no need to change

---------

Co-authored-by: Peter Bull <pjbull@gmail.com>
Co-authored-by: Karol Zlot <11590960+karolzlot@users.noreply.github.com>
Co-authored-by: Daniel Oriyan <gilthans@gmail.com>
Co-authored-by: Jay Qi <2721979+jayqi@users.noreply.github.com>
Co-authored-by: Jay Qi <jayqi@users.noreply.github.com>
Co-authored-by: Matthew Price <matthew.price23@gmail.com>
Co-authored-by: Peter Bull <peter@drivendata.org>
Co-authored-by: Katie Wetstone <46792169+klwetstone@users.noreply.github.com>
Co-authored-by: Michael D. Smith <michael.smith@erdc.dren.mil>
msmitherdc added a commit to CRREL/cloudpathlib that referenced this pull request Feb 22, 2025
* Add "CloudPath" to possible cloud_path types (drivendataorg#342) (drivendataorg#343)

* Add "CloudPath" to possible cloud_path types (drivendataorg#342)

* Add to changelog

---------

Co-authored-by: Karol Zlot <11590960+karolzlot@users.noreply.github.com>

* Added with_stem support (drivendataorg#290) (drivendataorg#354)

* Added with_stem support

* Update readme (+small fix to make_support_table)

* Added test

* Update history.md

* Fallback to trivial CPython implementation if `with_stem` is not available

* Add a clarification comment

Co-authored-by: Daniel Oriyan <gilthans@gmail.com>

* Fix flake8 errors (drivendataorg#359)

* Fix flake8 errors

* Fix wrong comparison

* Bump codecov action version; add codecov token

---------

Co-authored-by: Jay Qi <jayqi@users.noreply.github.com>

* Update write_text to include newline variable (drivendataorg#362) (drivendataorg#363)

* Update write_text to include newline variable

* Remove old docstring link

* Update cloudpathlib/cloudpath.py with black correction

* Remove use of io module

* update HISTORY.md

Co-authored-by: Matthew Price <matthew.price23@gmail.com>

* Add support for Python 3.12 (drivendataorg#364)

* passing tests

* remove print

* make method signatures match

* Remove unused import

* ignore type errors

* ignore more type errors

* make linting and tests work on multiple py versions

* add 3.12 to CI and pyproject

* use pytest-cases fork

* More performant walk implementation

* format

* update methods

* Test walk method

* Version agnostic tests

* update tests

* Add tests

* Order agnostic walk test

* Changes

* Update changelog

* sleep for flaky test

* Sleep flaky tests

* sleepier

* implement env var for local cache dir (drivendataorg#361)

* Add contributing guidelines (drivendataorg#367)

* contributing guidelines

* Apply suggestions from code review

Co-authored-by: Katie Wetstone <46792169+klwetstone@users.noreply.github.com>

* WIP

* Contrib tweaks and PR template

* clarification

* update history typo

---------

Co-authored-by: Katie Wetstone <46792169+klwetstone@users.noreply.github.com>

* Version bump

* format with black

* ignore type checking here

* update client reference

* update

* no need to change

---------

Co-authored-by: Peter Bull <pjbull@gmail.com>
Co-authored-by: Karol Zlot <11590960+karolzlot@users.noreply.github.com>
Co-authored-by: Daniel Oriyan <gilthans@gmail.com>
Co-authored-by: Jay Qi <2721979+jayqi@users.noreply.github.com>
Co-authored-by: Jay Qi <jayqi@users.noreply.github.com>
Co-authored-by: Matthew Price <matthew.price23@gmail.com>
Co-authored-by: Peter Bull <peter@drivendata.org>
Co-authored-by: Katie Wetstone <46792169+klwetstone@users.noreply.github.com>
Co-authored-by: Michael D. Smith <michael.smith@erdc.dren.mil>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants