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

Replace abandoned cchardet library #126

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

bdraco
Copy link
Contributor

@bdraco bdraco commented Feb 15, 2023

cchardet is abandonware PyYoshi/cChardet#77

There is a new active fork https://github.com/faust-streaming/cChardet
that works on python3.11
@kapi2289 kapi2289 merged commit 9b93b95 into kapi2289:master Feb 16, 2023
@kuba2k2
Copy link
Collaborator

kuba2k2 commented Feb 16, 2023

Why do we need chardet anyway? I think there's a lot of dependencies in setup.py that are no longer used.

@bdraco
Copy link
Contributor Author

bdraco commented Feb 16, 2023

Thanks

bdraco added a commit to home-assistant/core that referenced this pull request Feb 16, 2023
thecode pushed a commit to home-assistant/core that referenced this pull request Feb 16, 2023
balloob pushed a commit to home-assistant/core that referenced this pull request Feb 16, 2023
* Remove profiler.memory service

guppy3 is not python3.11 compat
zhuyifei1999/guppy3#41

This service will return if and when guppy3 becomes
python3.11 compat

* squash

* temp remove

* temp dump tests

* temp dump tests

* drop a few more to get a run

* drop a few more to get a run

* Account for changed python3.11 enum.IntFlag behavior in zha

There may be additional changes needed, but I could only
see what needed to be updated based on the tests

* merge

* restore

* restore

* legacy value

* tweak a bit for the python 3.11 timings

* block cchardet

* conditional

* adjust est

* test

* not yet

* tweak

* give a little leeway for timing

* Fix otbr tests

* Increase database test timeout

It looks like we need a little more time to run
with the addiitonal tests in #87019

* Increase database test timeout

It looks like we need a little more time to run
with the addiitonal tests in #87019

* Fix aprs tests with python 3.11

* merge fix

* hints

* Update homeassistant/package_constraints.txt

* Update script/gen_requirements_all.py

* Constrain uamqp for Python 3.10 only

* Bump vulcan-api to 2.3.0

see kapi2289/vulcan-api#126
see #88038
see home-assistant/docker#260

* add ban

* Bump python-matter-server to 2.1.1

* revert

* Update tests/asyncio_legacy.py

---------

Co-authored-by: Erik <[email protected]>
Co-authored-by: Franck Nijhof <[email protected]>
Co-authored-by: Marcel van der Veldt <[email protected]>
AlePerla pushed a commit to AlePerla/homeassistant_core that referenced this pull request Feb 17, 2023
AlePerla pushed a commit to AlePerla/homeassistant_core that referenced this pull request Feb 17, 2023
* Remove profiler.memory service

guppy3 is not python3.11 compat
zhuyifei1999/guppy3#41

This service will return if and when guppy3 becomes
python3.11 compat

* squash

* temp remove

* temp dump tests

* temp dump tests

* drop a few more to get a run

* drop a few more to get a run

* Account for changed python3.11 enum.IntFlag behavior in zha

There may be additional changes needed, but I could only
see what needed to be updated based on the tests

* merge

* restore

* restore

* legacy value

* tweak a bit for the python 3.11 timings

* block cchardet

* conditional

* adjust est

* test

* not yet

* tweak

* give a little leeway for timing

* Fix otbr tests

* Increase database test timeout

It looks like we need a little more time to run
with the addiitonal tests in home-assistant#87019

* Increase database test timeout

It looks like we need a little more time to run
with the addiitonal tests in home-assistant#87019

* Fix aprs tests with python 3.11

* merge fix

* hints

* Update homeassistant/package_constraints.txt

* Update script/gen_requirements_all.py

* Constrain uamqp for Python 3.10 only

* Bump vulcan-api to 2.3.0

see kapi2289/vulcan-api#126
see home-assistant#88038
see home-assistant/docker#260

* add ban

* Bump python-matter-server to 2.1.1

* revert

* Update tests/asyncio_legacy.py

---------

Co-authored-by: Erik <[email protected]>
Co-authored-by: Franck Nijhof <[email protected]>
Co-authored-by: Marcel van der Veldt <[email protected]>
@bdraco
Copy link
Contributor Author

bdraco commented Feb 19, 2023

Why do we need chardet anyway? I think there's a lot of dependencies in setup.py that are no longer used.

I think it can actually be dropped. Its an optimization only

bdraco added a commit to bdraco/vulcan-api that referenced this pull request Feb 19, 2023
This lib is an optimization only

Removing it per
kapi2289#126 (comment)

Also PEP 517 wheel builds are currently
failing for the lib
faust-streaming/cChardet#22 (comment)
bdraco added a commit to bdraco/vulcan-api that referenced this pull request Feb 19, 2023
This lib is an optimization only

Removing it per
kapi2289#126 (comment)

Also PEP 517 wheel builds are currently
failing for the lib
faust-streaming/cChardet#22 (comment)
@bdraco bdraco mentioned this pull request Feb 19, 2023
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.

3 participants