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

Merge with pypa/distutils@c97a3db2f #4778

Merged
merged 48 commits into from
Dec 27, 2024
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
3fc912a
Use minimum requirement for jaraco.functools
anderstheet Oct 8, 2024
22e845b
use a real boolean (False) default for display_option_names generated…
Avasam Oct 17, 2024
68cb6ba
Accept an `Iterable` at runtime for `Extension`
agriyakhetarpal Nov 6, 2024
115bb67
Add more tests to cover different iterables
agriyakhetarpal Nov 6, 2024
4a467fa
Delegate to `os.fspath` for type checking
agriyakhetarpal Nov 6, 2024
2930193
Fix typo
agriyakhetarpal Nov 6, 2024
ff9c684
Return real boolean from copy_file
Avasam Oct 28, 2024
9c1bec6
Fix test_mkpath_exception_uncached
Avasam Nov 24, 2024
89627a7
Set `Py_GIL_DISABLED=1` for free threading on Windows
colesbury Nov 1, 2024
de1e624
Link to setuptools issue
colesbury Nov 1, 2024
52848a0
Trim the comment a bit.
jaraco Dec 26, 2024
ed45e7b
Merge pull request pypa/distutils#310 from colesbury.
jaraco Dec 26, 2024
ace1ab0
Merge pull request pypa/distutils#301 from anderstheet/feature/300-mi…
jaraco Dec 26, 2024
6608fd5
Merge pull request pypa/distutils#303 from Avasam/patch-1
jaraco Dec 26, 2024
0bf7c1a
Merge pull request pypa/distutils#309 from Avasam/copy_file-return-re…
jaraco Dec 26, 2024
468532e
👹 Feed the hobgoblins (delint).
jaraco Dec 26, 2024
bbee59b
Use alternate spelling for flavor attribute.
jaraco Dec 26, 2024
a7fdc06
Only apply workaround on required Pythons.
jaraco Dec 26, 2024
01fbd65
Let pathlib resolve the flavor.
jaraco Dec 26, 2024
be28187
Merge pull request pypa/distutils#316 from Avasam/fix-test_mkpath_exc…
jaraco Dec 26, 2024
b24919b
👹 Feed the hobgoblins (delint).
jaraco Dec 26, 2024
1bae350
Run Ruff 0.8.0
Avasam Nov 24, 2024
f5b7336
Add review suggestions around code comments
agriyakhetarpal Dec 26, 2024
efeb97c
Use `TypeError` instead of `AssertionError`
agriyakhetarpal Dec 26, 2024
a9f832b
Merge pull request pypa/distutils#314 from Avasam/Ruff-0.8.0
jaraco Dec 26, 2024
a88eace
UP031 manual fixes for Ruff 0.8.0
Avasam Nov 24, 2024
2017969
Make reinitialize_command's return type Generic when "command" argume…
Avasam Oct 28, 2024
2a01f31
Coerce Distribution.script_args to list
Avasam Nov 25, 2024
ac54856
Remove py38 compat modules
Avasam Nov 24, 2024
e6d3191
Merge pull request pypa/distutils#308 from Avasam/Generic-reinitializ…
jaraco Dec 27, 2024
a9bc2fc
Merge branch 'main' into Remove-py38-compat-modules
jaraco Dec 27, 2024
4e6e8fc
Remove UP036 exclusion.
jaraco Dec 27, 2024
fc15d45
Prefer the standard format for imports, even though it's unnecessaril…
jaraco Dec 27, 2024
c375e92
Merge pull request pypa/distutils#315 from Avasam/Remove-py38-compat-…
jaraco Dec 27, 2024
d266359
Merge branch 'main' into Ruff-0.8.0-UP031-manual-fixes
jaraco Dec 27, 2024
22b61d9
Merge pull request pypa/distutils#317 from Avasam/Ruff-0.8.0-UP031-ma…
jaraco Dec 27, 2024
deb1d5a
type `Distribution.get_command_obj` to not return `None` with `create…
Avasam Oct 25, 2024
7a9bbd5
Merge pull request pypa/distutils#320 from Avasam/type-script_args
jaraco Dec 27, 2024
9d9887d
ClassVar classvar mutables and tuple from typeshed
Avasam Dec 27, 2024
b0aea96
Merge pull request pypa/distutils#311 from agriyakhetarpal/types/exte…
jaraco Dec 27, 2024
cebba7f
👹 Feed the hobgoblins (delint).
jaraco Dec 27, 2024
cfc8c4a
Merge pull request pypa/distutils#307 from Avasam/get_command_obj-ove…
jaraco Dec 27, 2024
a8eec20
Merge pull request pypa/distutils#319 from Avasam/classvar-mutables-a…
jaraco Dec 27, 2024
af7fcbb
Use CFLAGS if set as-is, match CXXFLAGS behavior
thesamesam Dec 22, 2024
630551a
👹 Feed the hobgoblins (delint).
jaraco Dec 27, 2024
c97a3db
Merge pull request pypa/distutils#322 from thesamesam/cflags
jaraco Dec 27, 2024
d8e7caa
Merge pypa/distutils@c97a3db2f
jaraco Dec 27, 2024
2296e9f
Add news fragment.
jaraco Dec 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Only apply workaround on required Pythons.
  • Loading branch information
jaraco committed Dec 26, 2024
commit a7fdc064b25bd395a126090dd573198d1b933003
10 changes: 7 additions & 3 deletions distutils/tests/test_dir_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import pathlib
import stat
import sys
import unittest.mock as mock
from distutils import dir_util, errors
from distutils.dir_util import (
Expand Down Expand Up @@ -124,9 +125,12 @@ class FailPath(pathlib.Path):
def mkdir(self, *args, **kwargs):
raise OSError("Failed to create directory")

_flavour = (
pathlib._windows_flavour if os.name == 'nt' else pathlib._posix_flavour
)
if sys.version_info < (3, 12):
_flavour = (
pathlib._windows_flavour
if os.name == 'nt'
else pathlib._posix_flavour
)

target = tmp_path / 'foodir'

Expand Down