Skip to content

Commit

Permalink
Merge pull request #72 from jasopolis/replace-deprecated-cgi
Browse files Browse the repository at this point in the history
Replace deprecated `cgi` with `email` from standard library
  • Loading branch information
siddhantgoel committed Apr 20, 2023
2 parents 59ed92e + 9c261b3 commit 575f952
Show file tree
Hide file tree
Showing 5 changed files with 1,201 additions and 1,315 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

[![image](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)


`streaming_form_data` provides a Python parser for parsing `multipart/form-data`
input chunks (the encoding used when submitting data over HTTP through HTML
forms).
Expand Down Expand Up @@ -55,7 +54,7 @@ Up-to-date documentation is available on [Read the Docs].

## Development

Please make sure you have Python 3.6+ and [pip-tools] installed.
Please make sure you have Python 3.8+ and [pip-tools] installed.

Since this package includes a C extension, please make sure you have a working C
compiler available. On Debian-based distros this usually means installing the
Expand All @@ -67,8 +66,13 @@ compiler available. On Debian-based distros this usually means installing the
2. Install the packages required for development:
`make pip-sync`

3. That's basically it. You should now be able to run the test suite:
`make test`.
3. Install `streaming_form_data` itself:
`pip install .`

4. That's basically it. You should now be able to run the test suite:
`make test`

Note that if you make any changes to Cython files (`.pyx, .pxd, .pxi`), you'll need to re-compile (`make compile`) and re-install `streaming_form_data` before you can test your changes.

[pip-tools]: https://pypi.org/project/pip-tools/
[Read the Docs]: https://streaming-form-data.readthedocs.io/
60 changes: 24 additions & 36 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
#
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile requirements.in
#
attrs==22.1.0
attrs==23.1.0
# via pytest
black==22.10.0
# via -r requirements.in
bleach==5.0.1
bleach==6.0.0
# via readme-renderer
certifi==2022.12.7
# via requests
cffi==1.15.1
# via cryptography
charset-normalizer==2.1.1
charset-normalizer==3.1.0
# via requests
click==8.1.3
# via black
commonmark==0.9.1
# via rich
cryptography==39.0.1
# via secretstorage
cython==0.29.32
# via -r requirements.in
docutils==0.19
Expand All @@ -30,57 +24,53 @@ flake8==6.0.0
# via -r requirements.in
idna==3.4
# via requests
importlib-metadata==5.1.0
importlib-metadata==6.5.0
# via
# keyring
# twine
iniconfig==1.1.1
iniconfig==2.0.0
# via pytest
jaraco-classes==3.2.3
# via keyring
jeepney==0.8.0
# via
# keyring
# secretstorage
keyring==23.11.0
keyring==23.13.1
# via twine
markdown-it-py==2.2.0
# via rich
mccabe==0.7.0
# via flake8
more-itertools==9.0.0
mdurl==0.1.2
# via markdown-it-py
more-itertools==9.1.0
# via jaraco-classes
mypy==0.982
# via -r requirements.in
mypy-extensions==0.4.3
mypy-extensions==1.0.0
# via
# black
# mypy
packaging==21.3
packaging==23.1
# via pytest
pathspec==0.10.2
pathspec==0.11.1
# via black
pkginfo==1.9.2
pkginfo==1.9.6
# via twine
platformdirs==2.5.4
platformdirs==3.2.0
# via black
pluggy==1.0.0
# via pytest
pycodestyle==2.10.0
# via flake8
pycparser==2.21
# via cffi
pyflakes==3.0.1
# via flake8
pygments==2.13.0
pygments==2.15.1
# via
# readme-renderer
# rich
pyparsing==3.0.9
# via packaging
pytest==7.2.0
# via -r requirements.in
readme-renderer==37.3
# via twine
requests==2.28.1
requests==2.28.2
# via
# requests-toolbelt
# twine
Expand All @@ -90,23 +80,21 @@ requests-toolbelt==0.10.1
# twine
rfc3986==2.0.0
# via twine
rich==12.6.0
rich==13.3.4
# via twine
secretstorage==3.3.3
# via keyring
six==1.16.0
# via bleach
twine==4.0.2
# via -r requirements.in
typing-extensions==4.4.0
typing-extensions==4.5.0
# via mypy
urllib3==1.26.13
urllib3==1.26.15
# via
# requests
# twine
webencodings==0.5.1
# via bleach
wheel==0.38.4
# via -r requirements.in
zipp==3.11.0
zipp==3.15.0
# via importlib-metadata

0 comments on commit 575f952

Please sign in to comment.