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

Move esp32spi_wsgi server code to here #20

Merged
merged 2 commits into from
Jul 8, 2023

Conversation

FoamyGuy
Copy link
Contributor

This change is to go along with: adafruit/Adafruit_CircuitPython_ESP32SPI#167

This moves the esp32spi_wsgiserver code that had resided in that library over to here. In #167 it is slated for removal from that library due to having non-standard socket behavior and causing many other libraries to then need logic for handling different sockets types.

This proposal would move it to here, so that this library can still exist and be functional. This class was modified minimally in order to integrate it with the more standardized socket behavior that #167 will bring.

I tested the simpletest script on a PyPortal Titano successfully but haven't done any testing beyond that.

@FoamyGuy
Copy link
Contributor Author

FoamyGuy commented Jun 26, 2023

The latest commit adds back the example that includes static files, which used to be located in the esp32spi library as well.

I have tested successfully the simpletest and the serving of static files from the new example on a PyPortal 8.2.0

I think this is ready for review

@FoamyGuy FoamyGuy requested a review from a team June 26, 2023 22:29
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thank you! Not merging, so you can time it right.

@FoamyGuy FoamyGuy merged commit 63ede55 into adafruit:main Jul 8, 2023
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 9, 2023
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 6.0.0 from 5.0.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#167 from dhalbert/compatible-socket

Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 7.4.0 from 7.3.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#169 from vladak/loop_vs_timeout
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#162 from adafruit/settings_dot_toml
  > Update .pylintrc, fix jQuery for docs
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#167 from tekktrik/main
  > Run pre-commit
  > Update pre-commit hooks
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#164 from zbauman3/zane/cert-key-pair-example

Updating https://github.com/adafruit/Adafruit_CircuitPython_Requests to 2.0.0 from 1.14.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_Requests#135 from FoamyGuy/remove_backward_compat

Updating https://github.com/adafruit/Adafruit_CircuitPython_WSGI to 2.0.0 from 1.1.16:
  > Merge pull request adafruit/Adafruit_CircuitPython_WSGI#20 from FoamyGuy/compatibility_refactor
  > Merge pull request adafruit/Adafruit_CircuitPython_WSGI#19 from tekktrik/dev/fix-packaging

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
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.

2 participants