Repository navigation
Conversation
README.md has non-cp1252 characters (the trophy emoji), so building from source on windows without utf-8 mode failed with UnicodeDecodeError, e.g. pip install -e . or pip install git+https://github.com/roboflow/roboflow-python.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
installing from source on windows fails unless utf-8 mode is on:
setup.pyreadsREADME.mdwithout anencoding, so on a default windows install it's decoded as cp1252, and the readme now has a 🏆 (f0 9f 8f 86) that cp1252 can't decode. the wheel on pypi is built on linux sopip install roboflowis fine, this only hits source installs: editable dev setups,git+installs and building the sdist on windows.this is probably also why
test.ymlsetsPYTHONUTF8: 1, the windows jobs runpip install ".[dev]".changes
encoding="utf-8"on the three reads insetup.pyand the same three insetup_slim.pytesting
windows 11, python 3.12, utf-8 mode off (
sys.flags.utf8_mode == 0), clean venv,uv pip install --no-deps --reinstall .:notes
PYTHONUTF8: 1in ci alone. dropping it would make the windows jobs cover the default encoding, but some tests read fixtures without an encoding too, so that's a separate change