Skip to content
Open
Changes from 4 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6bb87ef
Update utils.py
harumaki4649 Sep 7, 2025
375173e
Update utils.py
harumaki4649 Sep 7, 2025
d453ba6
Add UTF-8 encoding to config file opening
harumaki4649 Sep 7, 2025
2fa12c5
Merge branch 'main' into main
harumaki4649 Sep 20, 2025
517dd30
utils.py を更新
harumaki4649 Oct 1, 2025
38a81a6
utils.py を更新
harumaki4649 Oct 1, 2025
a176289
Refactor config file parsing with helper functions
harumaki4649 Oct 5, 2025
a17d766
Simplify config file parsing error handling
harumaki4649 Oct 5, 2025
a064c86
tests: add UTF-8 fallback tests for parsing config
harumaki4649 Oct 7, 2025
421f3c5
Merge pull request #1 from harumaki4649/tests/add-utf8-fallback-test
harumaki4649 Oct 7, 2025
86b67f9
Fix assertion for configuration log message
harumaki4649 Oct 7, 2025
916e1c8
Refactor caplog setup in config parsing tests
harumaki4649 Oct 7, 2025
15aa23b
Merge branch 'pypa:main' into main
harumaki4649 Oct 17, 2025
1807ea5
Apply suggestion from @sigmavirus24
harumaki4649 Dec 6, 2025
92dcbad
Update twine/utils.py
harumaki4649 Dec 6, 2025
2aec62b
Update test_parse_config_encoding.py
harumaki4649 Dec 6, 2025
fb2003f
Merge branch 'pypa:main' into main
harumaki4649 Dec 6, 2025
0e30d28
Apply suggestion from @Copilot
harumaki4649 Dec 6, 2025
887d5cf
Apply suggestion from @Copilot
harumaki4649 Dec 6, 2025
de444cf
Apply suggestion from @Copilot
harumaki4649 Dec 6, 2025
8ba4716
Apply suggestion from @Copilot
harumaki4649 Dec 6, 2025
c45c3f3
Apply suggestion from @Copilot
harumaki4649 Dec 6, 2025
c7a44d5
Apply suggestion from @Copilot
harumaki4649 Dec 6, 2025
ae97e15
Apply suggestion from @Copilot
harumaki4649 Dec 6, 2025
b7516e0
Update twine/utils.py
harumaki4649 Dec 6, 2025
fe62b65
Apply suggestion from @sigmavirus24
harumaki4649 Dec 6, 2025
ef01422
Enhance UTF-8 fallback tests in config parsing
harumaki4649 Dec 6, 2025
d7cd544
Force UTF-8 encoding in config parsing tests
harumaki4649 Dec 6, 2025
7d9bc82
Apply suggestion from @Copilot
harumaki4649 Dec 6, 2025
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
2 changes: 1 addition & 1 deletion twine/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_config(path: str) -> Dict[str, RepositoryConfig]:
parser = configparser.RawConfigParser()

try:
with open(realpath) as f:
with open(realpath, encoding="utf-8") as f:
parser.read_file(f)
logger.info(f"Using configuration from {realpath}")
except FileNotFoundError:
Expand Down
Loading