Néstor Pérez
54ca6a6178
Log remote address if available ( #2207 )
...
* Log remote address if available
* Add tests
* Fix testing version
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2021-08-02 12:41:47 +03:00
Robert Palmer
ac784759d5
Update sanic-routing to fix path issues plus lookahead / lookbehind support ( #2178 )
...
* Update sanic-routing to fix path issues plus lookahead / lookbehind support
* Update setup.py
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2021-07-12 08:22:53 +03:00
L. Kärkkäinen
08a4b3013f
Fix the handling of the end of a chunked request. ( #2188 )
...
* Fix the handling of the end of a chunked request.
* Avoid hardcoding final chunk header size.
* Add some unit tests for pipeline body reading
* Decode bytes for json serialization
Co-authored-by: L. Kärkkäinen <tronic@users.noreply.github.com>
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2021-07-11 13:44:40 +03:00
Zhiwei
1dd0332e8b
Remove Duplicated Dependencies and PEP 517 Support ( #2173 )
...
* Remove duplicated dependencies
* Specify setuptools as the tool for generating distribution (PEP 517)
* Add `isort` to `dev_require`
* manage all dependencies in setup.py
* Execute `make pretty`
* Set usedevelop to true (revert previous change)
2021-07-08 09:12:56 +03:00
Adam Hopkins
8df80e276b
sanic-routing==0.7.0
2021-06-27 23:01:47 +03:00
Adam Hopkins
108a4a99c7
v2 AST router ( #2133 )
...
* Update some tests
* Update some tests
* Resolve #2122 route decorator returning tuple
* Use rc sanic-routing version
* Update unit tests to <:str>
2021-06-21 15:10:26 +03:00
Aymeric Augustin
aff6604636
Upgrade websockets dependency. ( #2154 )
...
* Upgrade websockets dependency.
Fix #2142 .
* Bumpt sanic-testing version
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2021-06-16 21:49:50 +03:00
Adam Hopkins
28ba8e53df
Implement 0.6 routing and some cleanup ( #2117 )
...
* Implement 0.6 routing and some cleanup
* Additional tests and annotation cleanup
* Resolve sorting
* cleanup test with encoding
2021-04-20 00:53:42 +03:00
Adam Hopkins
13630a79ad
Update sanic-org URL on setup.py
2021-03-21 12:00:32 +02:00
elis-k
5c624f8b76
Find packages ( #2049 )
...
Error when installing from master because some packages ('models' & 'mixins') are not being included.
2021-03-07 16:51:14 +02:00
Adam Hopkins
37f0a51063
Remove Python 3.6 support
2021-02-21 23:28:28 +02:00
Adam Hopkins
375319038f
Merge branch 'master' of github.com:sanic-org/sanic into sanic-routing
2021-02-16 01:34:44 +02:00
Adam Hopkins
c942a5c51c
Change uvloop ro range
2021-02-16 01:17:34 +02:00
Adam Hopkins
aea2e4e7f4
Fix uvloop to 0.14.0
2021-02-15 14:18:42 +02:00
Adam Hopkins
e91b3d40a2
squash
2021-02-15 10:47:16 +02:00
Adam Hopkins
5545264cea
Remove test client ( #2009 )
...
* Initial
* remove testmanager
* Resolve tests
2021-01-28 09:22:22 +02:00
Adam Hopkins
a0066e5752
Initial
2021-01-19 15:54:20 +02:00
Adam Hopkins
0c252e7904
21.3 deprecations ( #2007 )
...
* Cleanup deprecations
* Remove config deprecations and fix config compat
* Add some tests and remove unneeded dependency
* Add some tests and remove unneeded dependency
* Remove pytest-dependency
2021-01-19 01:36:50 +02:00
Adam Hopkins
b9b3b4051a
Update reqs to get tox running
2020-12-24 21:56:35 +02:00
Adam Hopkins
35f28f7a64
Merge branch 'master' into py39
2020-12-09 11:52:49 +02:00
Trevor Bekolay
63567c2ae4
Add py.typed file ( #1970 )
2020-11-19 11:18:25 +02:00
allandialpad
d0f0e73e96
remove upper bound for multidict
2020-11-17 11:18:18 -05:00
7
b4fe2c8a6b
bump up aiofile version constraint ( #1967 )
2020-11-06 08:32:04 +02:00
Ashley Sommer
4ca3e98082
Add pytest-dependency
requirement to tests_require list in setup.py ( #1955 )
...
Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2020-10-25 21:31:34 +02:00
Adam Hopkins
16ea99b0c0
Update testing for Python 3.9
2020-10-25 15:21:48 +02:00
Adam Hopkins
7dbd3eb5e8
Update multidict version
2020-10-24 23:49:55 +03:00
Adam Hopkins
eb8df1fc18
Upgrade httpx
2020-09-27 02:58:36 +03:00
David Bordeynik
1b324ae981
fix-#1856: adjust websockets version to setup.py and make nightly (py39) tests pass ( #1857 )
...
* fix-#1856: adjust websockets version to setup.py and make nightly (py39) tests pass
* fix-#1856: set min websockets version to 8.1
* fix-#1856: suppress timeout for CI to pass
* fix-#1856: timeout -> close_timeout due to deprecation warning
Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
Co-authored-by: 7 <yunxu1992@gmail.com>
2020-06-28 08:43:12 +03:00
Adam Hopkins
496e87e4ba
Add sanic as an entry point command ( #1866 )
...
* Add sanic as an entry point command
* Fix linting issue in imports
Co-authored-by: 7 <yunxu1992@gmail.com>
2020-06-05 07:14:18 -07:00
Subham Roy
ce71514d71
bump httpx dependency version to 0.11.1 ( #1794 )
2020-03-01 11:42:11 -08:00
Adam Hopkins
258dbee3b9
Py38 tox env ( #1752 )
...
* Set version
Set version
* Add Python 3.8 to tests and package classifiers
Add Python3.8 to Appveyor config
2020-02-05 13:17:55 -06:00
Adam Hopkins
3f6a978328
Swap out requests-async for httpx ( #1728 )
...
* Begin swap of requests-async for httpx
* Finalize httpx adoption and resolve tests
Resolve linting and formatting
* Remove documentation references to requests-async in favor of httpx
2019-12-20 19:23:52 -08:00
Bruno Oliveira
fcdc9c83c5
Add 'python_requires' key to setup.py ( #1701 )
...
This key is important so that `pip` doesn't try to install `sanic` in unsupported Python versions:
https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
2019-10-14 21:17:05 -07:00
Yun Xu
01be691936
misc: bump up pytest version for fixing ci build
2019-10-07 11:41:44 -07:00
Simon
134c414fe5
Support websockets 8.x as well as 7.x ( #1687 )
...
Sanic currently requires websockets 7.x, but it's straightforward to
also support the more recent 8.x.
2019-10-01 23:03:09 -07:00
7
3f9c94ba4a
Merge pull request #1635 from huge-success/upgrade-websockets
...
Upgrade websockets, resolve incompatible issue between multidict and websockets
2019-08-12 10:48:56 -07:00
Yun Xu
b397637bb9
bugfix: fix incompatible api between multidict and websockets, and bump up websockets version to match uvicorn
2019-07-18 19:57:17 -07:00
Harsha Narayana
32eb8abb63
fix : #1631 : add towncrier support and fix documentation warnings
...
Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
2019-07-13 21:47:48 +05:30
Christo Goosen
78fe97b9cb
Add bandit code static analyzer for security, some false positives removed with #nosec.
...
Bandit is a python package for staticly scanning code for security issues.
* Added to tox.ini
* Added to setup.py
* Added to .travis.yml
As part of CI/CD pipeline
2019-06-24 09:53:29 +02:00
Adam Hopkins
a57c14c70b
Add requests-async as a hard requirement. See #1592 ( #1595 )
2019-05-28 08:30:07 -05:00
Yun Xu
3661afa461
bump request-async version for fixing build time issue
2019-05-16 08:56:25 -07:00
Adam Hopkins
ccd4c9615c
Create requests-async based TestClient, remove aiohttp dependency, drop Python 3.5
...
Update all tests to be compatible with requests-async
Cleanup testing client changes with black and isort
Remove Python 3.5 and other meta doc cleanup
rename pyproject and fix pep517 error
Add black config to tox.ini
Cleanup tests and remove aiohttp
tox.ini change for easier development commands
Remove aiohttp from changelog and requirements
Cleanup imports and Makefile
2019-04-30 15:26:06 +03:00
andreymal
d83d829e0a
Add pytest-benchmark to tests_require
2019-04-19 17:31:23 +03:00
7
8dd8e9916e
upgrade pytest version that compatible with pytest-cov, fixes some caplog unit tests ( #1464 )
2019-01-08 09:15:23 -06:00
Harsha Narayana
82f7f847ba
cleanup requirements and move dependency inside setup.py
...
Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
2018-12-28 10:24:03 +05:30
Harsha Narayana
4880761fe0
add setuputil based test running and makefile support
...
Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
2018-12-28 10:24:02 +05:30
Yun Xu
272f6e195d
added black for lint check
2018-10-13 18:10:43 -07:00
Yun Xu
1bdf9ca057
add py37 in setup.py
2018-10-12 22:58:49 -07:00
Stephen Sadowski
4466e8cce1
Merge pull request #1304 from ignatenkobrain/fedora
...
Switch to websockets 6.0
2018-10-04 18:45:22 -05:00
Richard Kuesters
d1a578b555
pinned httptools requirement to version 0.0.10+
2018-10-03 12:22:29 -03:00