Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow working without ctypes #275

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

youknowone
Copy link
Contributor

ctypes in windows is perfectly optional, but it doesn't fall back to other methods when import ctypes fails.

Copy link
Contributor

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test please

@youknowone youknowone force-pushed the windows-ctypes branch 2 times, most recently from a15c2d9 to 7adab13 Compare April 21, 2024 12:37
@youknowone youknowone changed the title Allow windows without ctypes environment Allow working without ctypes Apr 21, 2024
@youknowone youknowone force-pushed the windows-ctypes branch 4 times, most recently from e6d0bc1 to a6e2dfd Compare April 21, 2024 13:00
@youknowone
Copy link
Contributor Author

Thanks! I added test for all platforms to prevent regression because other platforms are already safe to work without ctypes

@gaborbernat gaborbernat enabled auto-merge (squash) April 21, 2024 16:02
ofek
ofek previously approved these changes Apr 21, 2024
Copy link
Contributor

@ofek ofek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as a Windows user

Copy link
Contributor

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type checker fail

auto-merge was automatically disabled April 21, 2024 23:27

Head branch was pushed to by a user without write access

Copy link
Contributor

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaborbernat gaborbernat merged commit b44d57d into platformdirs:main Apr 23, 2024
29 checks passed
alicejli added a commit to googleapis/sdk-platform-java that referenced this pull request May 3, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [platformdirs](https://togithub.com/platformdirs/platformdirs) |
`==4.1.0` -> `==4.2.1` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/platformdirs/4.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/platformdirs/4.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/platformdirs/4.1.0/4.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/platformdirs/4.1.0/4.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>platformdirs/platformdirs (platformdirs)</summary>

###
[`v4.2.1`](https://togithub.com/platformdirs/platformdirs/releases/tag/4.2.1)

[Compare
Source](https://togithub.com/platformdirs/platformdirs/compare/4.2.0...4.2.1)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

- Switch to ruff for formatting and use codespell and docformatter by
[@&#8203;gaborbernat](https://togithub.com/gaborbernat) in
[platformdirs/platformdirs#261
- Use hatch over tox by
[@&#8203;gaborbernat](https://togithub.com/gaborbernat) in
[platformdirs/platformdirs#262
- chore: various minor fixes by
[@&#8203;deronnax](https://togithub.com/deronnax) in
[platformdirs/platformdirs#263
- chore: update dead Microsoft's known folders documentation link by
[@&#8203;deronnax](https://togithub.com/deronnax) in
[platformdirs/platformdirs#267
- Allow working without ctypes by
[@&#8203;youknowone](https://togithub.com/youknowone) in
[platformdirs/platformdirs#275

#### New Contributors

- [@&#8203;deronnax](https://togithub.com/deronnax) made their first
contribution in
[platformdirs/platformdirs#263
- [@&#8203;youknowone](https://togithub.com/youknowone) made their first
contribution in
[platformdirs/platformdirs#275

**Full Changelog**:
platformdirs/platformdirs@4.2.0...4.2.1

###
[`v4.2.0`](https://togithub.com/platformdirs/platformdirs/releases/tag/4.2.0)

[Compare
Source](https://togithub.com/platformdirs/platformdirs/compare/4.1.0...4.2.0)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

- Fix 2 typos about XDG_DATA_DIR by
[@&#8203;Freed-Wu](https://togithub.com/Freed-Wu) in
[platformdirs/platformdirs#256
- Add convenience methods to `PlatformDirsAPI` that allow iterating over
both user and site dirs/paths. by
[@&#8203;SpaceshipOperations](https://togithub.com/SpaceshipOperations)
in
[platformdirs/platformdirs#258

#### New Contributors

-
[@&#8203;SpaceshipOperations](https://togithub.com/SpaceshipOperations)
made their first contribution in
[platformdirs/platformdirs#258

**Full Changelog**:
platformdirs/platformdirs@4.1.0...4.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/googleapis/sdk-platform-java).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: Alice <65933803+alicejli@users.noreply.github.com>
@youknowone youknowone deleted the windows-ctypes branch May 20, 2024 10:26
lqiu96 pushed a commit to googleapis/sdk-platform-java that referenced this pull request May 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [platformdirs](https://togithub.com/platformdirs/platformdirs) |
`==4.1.0` -> `==4.2.1` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/platformdirs/4.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/platformdirs/4.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/platformdirs/4.1.0/4.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/platformdirs/4.1.0/4.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>platformdirs/platformdirs (platformdirs)</summary>

###
[`v4.2.1`](https://togithub.com/platformdirs/platformdirs/releases/tag/4.2.1)

[Compare
Source](https://togithub.com/platformdirs/platformdirs/compare/4.2.0...4.2.1)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

- Switch to ruff for formatting and use codespell and docformatter by
[@&#8203;gaborbernat](https://togithub.com/gaborbernat) in
[platformdirs/platformdirs#261
- Use hatch over tox by
[@&#8203;gaborbernat](https://togithub.com/gaborbernat) in
[platformdirs/platformdirs#262
- chore: various minor fixes by
[@&#8203;deronnax](https://togithub.com/deronnax) in
[platformdirs/platformdirs#263
- chore: update dead Microsoft's known folders documentation link by
[@&#8203;deronnax](https://togithub.com/deronnax) in
[platformdirs/platformdirs#267
- Allow working without ctypes by
[@&#8203;youknowone](https://togithub.com/youknowone) in
[platformdirs/platformdirs#275

#### New Contributors

- [@&#8203;deronnax](https://togithub.com/deronnax) made their first
contribution in
[platformdirs/platformdirs#263
- [@&#8203;youknowone](https://togithub.com/youknowone) made their first
contribution in
[platformdirs/platformdirs#275

**Full Changelog**:
platformdirs/platformdirs@4.2.0...4.2.1

###
[`v4.2.0`](https://togithub.com/platformdirs/platformdirs/releases/tag/4.2.0)

[Compare
Source](https://togithub.com/platformdirs/platformdirs/compare/4.1.0...4.2.0)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

- Fix 2 typos about XDG_DATA_DIR by
[@&#8203;Freed-Wu](https://togithub.com/Freed-Wu) in
[platformdirs/platformdirs#256
- Add convenience methods to `PlatformDirsAPI` that allow iterating over
both user and site dirs/paths. by
[@&#8203;SpaceshipOperations](https://togithub.com/SpaceshipOperations)
in
[platformdirs/platformdirs#258

#### New Contributors

-
[@&#8203;SpaceshipOperations](https://togithub.com/SpaceshipOperations)
made their first contribution in
[platformdirs/platformdirs#258

**Full Changelog**:
platformdirs/platformdirs@4.1.0...4.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/googleapis/sdk-platform-java).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: Alice <65933803+alicejli@users.noreply.github.com>
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.

None yet

4 participants