Erik Wienhold
99f0d8734d
Fix grep warning in scripts/sync-version ( #2807 )
...
Extended regular expressions (enabled via flag -E) don't support
non-capturing groups under POSIX. Get rid of them as they don't add any
value since we don't handle the captured groups in the first place.
2026-02-15 18:01:40 +00:00
Marcelo Trylesinski
d41737158f
ci: publish docs on workflow_dispatch ( #2695 )
2025-09-13 09:05:00 +00:00
Marcelo Trylesinski
bf337d62d5
Use uv instead of plain pip ( #2693 )
2025-09-13 10:13:29 +02:00
Marcelo Trylesinski
e5f3663925
Speed up test suite with pytest-xdist ( #2537 )
...
* Speed up test suite with pytest-xdist
* add combine
* Check if loadgroup solves windows issues
* Add xdist group to multiprocess tests
* Skip reload tests on windows and mac
* skip non linux
* skip non linux
* add not linux
* add last not linux
* skip another
* skip another
* Update tests/supervisors/test_reload.py
2025-03-09 16:49:07 +01:00
Marcelo Trylesinski
80c076404e
Move changelog to release notes ( #2550 )
...
* Move changelog to release notes
* cahnge sync version script
2025-01-01 12:59:57 +01:00
Marcelo Trylesinski
be25d3bb3a
docs: replace tools/cli_usage.py by mkdocs plugin ( #2551 )
2025-01-01 12:55:27 +01:00
dependabot[bot]
35fedeeb61
Bump the python-packages group with 11 updates ( #2303 )
...
* Bump the python-packages group with 11 updates
Bumps the python-packages group with 11 updates:
| Package | From | To |
| --- | --- | --- |
| [a2wsgi](https://github.com/abersheeran/a2wsgi ) | `1.10.0` | `1.10.4` |
| [build](https://github.com/pypa/build ) | `1.0.3` | `1.2.1` |
| [twine](https://github.com/pypa/twine ) | `4.0.2` | `5.0.0` |
| [ruff](https://github.com/astral-sh/ruff ) | `0.1.15` | `0.3.7` |
| [pytest](https://github.com/pytest-dev/pytest ) | `8.0.0` | `8.1.1` |
| [pytest-mock](https://github.com/pytest-dev/pytest-mock ) | `3.12.0` | `3.14.0` |
| [mypy](https://github.com/python/mypy ) | `1.8.0` | `1.9.0` |
| [types-pyyaml](https://github.com/python/typeshed ) | `6.0.12.12` | `6.0.12.20240311` |
| [cryptography](https://github.com/pyca/cryptography ) | `42.0.4` | `42.0.5` |
| [coverage](https://github.com/nedbat/coveragepy ) | `7.4.1` | `7.4.4` |
| [mkdocs-material](https://github.com/squidfunk/mkdocs-material ) | `9.5.6` | `9.5.17` |
Updates `a2wsgi` from 1.10.0 to 1.10.4
- [Commits](https://github.com/abersheeran/a2wsgi/compare/v1.10.0...v1.10.4 )
Updates `build` from 1.0.3 to 1.2.1
- [Release notes](https://github.com/pypa/build/releases )
- [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pypa/build/compare/1.0.3...1.2.1 )
Updates `twine` from 4.0.2 to 5.0.0
- [Release notes](https://github.com/pypa/twine/releases )
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst )
- [Commits](https://github.com/pypa/twine/compare/4.0.2...5.0.0 )
Updates `ruff` from 0.1.15 to 0.3.7
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md )
- [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...v0.3.7 )
Updates `pytest` from 8.0.0 to 8.1.1
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/8.0.0...8.1.1 )
Updates `pytest-mock` from 3.12.0 to 3.14.0
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases )
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.12.0...v3.14.0 )
Updates `mypy` from 1.8.0 to 1.9.0
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.8.0...1.9.0 )
Updates `types-pyyaml` from 6.0.12.12 to 6.0.12.20240311
- [Commits](https://github.com/python/typeshed/commits )
Updates `cryptography` from 42.0.4 to 42.0.5
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/42.0.4...42.0.5 )
Updates `coverage` from 7.4.1 to 7.4.4
- [Release notes](https://github.com/nedbat/coveragepy/releases )
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst )
- [Commits](https://github.com/nedbat/coveragepy/compare/7.4.1...7.4.4 )
Updates `mkdocs-material` from 9.5.6 to 9.5.17
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases )
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG )
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.6...9.5.17 )
---
updated-dependencies:
- dependency-name: a2wsgi
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: python-packages
- dependency-name: build
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: python-packages
- dependency-name: twine
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: python-packages
- dependency-name: ruff
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: python-packages
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: python-packages
- dependency-name: pytest-mock
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: python-packages
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: python-packages
- dependency-name: types-pyyaml
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: python-packages
- dependency-name: cryptography
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: python-packages
- dependency-name: coverage
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: python-packages
- dependency-name: mkdocs-material
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: python-packages
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix all
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-04-13 02:42:24 -06:00
Amin Alaee
94593f3b8a
Replace Black with ruff formatter ( #2150 )
2023-11-08 20:51:06 +01:00
Andrew LeCody
8e68642550
Allow setting app via environment variable UVICORN_APP ( #2106 )
...
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2023-09-21 10:25:28 +02:00
Marcelo Trylesinski
1cb58c707a
Drop asgiref dependency at all ( #1999 )
2023-06-08 11:38:05 -06:00
Amin Alaee
d43afed1cf
Run black before ruff ( #1971 )
2023-05-08 14:04:37 +02:00
Amin Alaee
6dcb6a6b94
Update scripts/check ( #1952 )
2023-04-25 15:30:11 +02:00
Marcelo Trylesinski
d20c97d582
Use ruff instead of flake8, autoflake and isort ( #1925 )
2023-04-10 16:41:50 +02:00
cdeler
fcc3be545c
Fix cli_usage tool on systems without an activated virtualenv ( #1823 )
2022-12-30 09:59:16 +01:00
Marcelo Trylesinski
918e9fa2b1
Replace files by exclude on mypy configuration ( #1793 )
2022-12-02 15:06:05 +01:00
Adnaan Bheda
4502717129
Fix pip upgrade in TestSuite checks ( #1715 )
2022-10-19 07:47:26 +02:00
Marcelo Trylesinski
d83ba827bb
Install latest pip on install script ( #1696 )
2022-10-07 13:24:05 +01:00
Ofek Lev
9cd609e78b
Update package metadata ( #1612 )
2022-08-24 08:05:51 +02:00
Marcelo Trylesinski
f1f11fef3b
Add script to make sure CHANGELOG is always in sync with __version__ ( #1560 )
...
* Add script to make sure CHANGELOG is always in sync with `__version__`
* Update __init__.py
* Change file permission
2022-07-08 07:12:05 +02:00
Marcelo Trylesinski
843a6acf1c
Match coverage between systems ( #1458 )
...
* Pass coverage parameters on setup.cfg
* Drop coverage to match ubuntu 3.8
* Add pragma: py-linux
2022-05-03 08:09:33 +02:00
euri10
90acede056
Moved warning about missing ws library only in upgrade case ( #1370 )
2022-02-11 12:29:09 +01:00
Marcelo Trylesinski
632f33ec23
Replace create_server by create_unix_server ( #1362 )
...
* Replace create_server by create_unix_server
* Fix coverage
2022-02-04 13:50:24 +08:00
Marcelo Trylesinski
78f5cf1bac
Bump coverage to 96.96% ( #1357 )
...
* Bump coverage to 97.01
* Update coverage
2022-02-03 14:48:29 +00:00
Marcelo Trylesinski
efdbe7a4a6
Fix coverage precision to 96.77% ( #1351 )
...
* Fix coverage precision to 96.83%
* Add conditional coverage rule
* Modify fail-under to check if 3.7 passes
2022-02-01 15:09:30 +01:00
Sondre Lillebø Gundersen
27f76476a1
chore: Update black target version ( #1323 )
...
Python 3.6 was deprecated in #1261
2022-01-14 14:04:11 +01:00
Humberto Rocha
0dcfc0227d
Add contributing page to the docs ( #1197 ) ( #1224 )
...
* Add contributing page to the docs (#1197 )
* Applying suggestions to contributing page
2021-11-23 16:22:22 +01:00
Marcelo Trylesinski
7504f6637c
Add coverage-conditional-plugin setup ( #1260 )
2021-11-23 15:53:04 +01:00
Marcelo Trylesinski
02e50c6c90
🚨 Cover subprocess.py on mypy ( #1053 )
...
* 🚨 Cover subprocess.py on mypy
* Update scripts/check
Co-authored-by: euri10 <euri10@users.noreply.github.com>
2021-05-31 09:10:28 +02:00
Marcelo Trylesinski
4c485cc99f
coverage: pin higher coverage ( #1006 )
...
* coverage: pin higher coverage
* add more ignores
* not change previous code
* remove marker on httptools
* fix requirement
2021-05-28 22:18:19 +02:00
Florimond Manca
c4c76008bb
Add docs script ( #923 )
2020-12-29 13:29:38 +01:00
Florimond Manca
5311e11fbe
Add tool to keep CLI usage in index.md in sync ( #876 )
...
* Add tool to keep CLI usage in `index.md` in sync
* Ensure final newline
* Keep deployment.md in sync as well
* Rename and reorganize tool
2020-12-09 09:36:09 +01:00
euri10
d755fe850d
Drop pytest-cov and uses vanilla coverage ( #809 )
...
* Removed pytest-cov
* Removed pytest-cov 2
* Added vanilla coverage
* Include > source indeed
* Unused export
2020-10-08 10:11:52 +02:00
Florimond Manca
d5fa9d84f0
Move package editable install to requirements.txt ( #790 )
...
* Move package editable install to requirements.txt
* Add wsproto
2020-09-29 10:13:45 +02:00
euri10
2e22b85054
Drop deprecated isort-seed-config ( #770 )
2020-08-27 17:55:04 +02:00
euri10
a9a46e87d8
Mypy lifespan ( #751 )
...
* Progressive mypy, we begin by lifespan
* Lifespan typed
* We need mypy to use mypy ...:)
* Trying to fix windows not having uvloop in _types.py
* Using setup.cfg to specify files
* Try removing the try catch, will it please CI ?
* Removed all unecessary types
* Put back the try catch on 3.8 -
* Trying to simplify the < 3.8 for Literal and TypedDict
* After lookig back WSend was off
* Tightens http messages and put asgi ref in their docstring
* Tightens ws messages and put asgi ref in their docstring
* Blacked
* Using lifespan messages and scope
* Force typing_extensions for users under 3.8
* Simplified types
* Simplified types again !
2020-08-16 08:54:36 +02:00
euri10
11f9a71f2c
Install script back to where it was and same as httpx ( #746 )
...
Removed conditional requirements.txt for windonws from script > using pip markers
2020-08-06 14:42:05 +02:00
euri10
e77e59612e
Align most of scripts of httpx here ( #739 )
...
* WIP switch to same layout as httpx
* Align scripts on httpx layout
* Added scripts, they were ignre by my global gitignore
* Mimic httpx workflow better
* version is in init file
* Added twine and wheel for new scripts
* Added mkdocs for win build
* Putting the failing overage level to 80 to please windows CI, once this lands we're gonna grind coverage !
* Removed mypy from check
* Removed useless marker
* Removed check script
2020-08-06 09:16:16 +02:00
euri10
81f213619d
Brings back windows testing to CI ( #685 )
...
* 1st pass on adding windows vm for CI
* 2nd pass, was testing nothing
* No arrays
* No arrays 2
* No arrays 3
* No arrays 4
* Removed appveyor PATH export
* Using scripts on windows CI, will need to write ps1 scripts
* Matrix indent
* Location of scripts
* Hate CI
* Why ps1 are ignored
* Adding ps1 scripts, was globally ignored
* Chmod +x ps1
* Removing uvloop from win reqs
* Added install and test.sh scripts, globally ignored wtf
* Align win reqs to old .travis file
* Run really on windows ?
* Lost in matrix....
* Blind ps1
* Blind ps1 2nd pass
* Blind ps1 3rd pass
* Blind test.ps1 !
* Blind test.ps1 love
* Attempt specifying shell explicitely
* Try using bash on windows
* Detect os for requirements
* Use sh comparison
* Live debug
* Live debug 2
* More echo
* More echo
* More echo 2
* OSTYPE only in bash
* OSTYPE seems to be msys
* Using old names for scripts since we dont need to differentiate now between os
* Removed echo leftovers from live debugging and indented back to 4 spaces
* Correct set
* Removin=g unboud variable check
* Set -x before pip only
* Update install
* Set -e
Co-authored-by: Tom Christie <tom@tomchristie.com>
2020-07-24 10:17:39 +01:00
Tom Christie
a251ce6c53
Automate releases ( #653 )
...
* Only run tests on PRs
* GitHub Actions for releases
2020-04-28 16:15:39 +01:00
Tom Christie
3c830680ed
GitHub actions TestSuite ( #649 )
2020-04-24 14:02:34 +01:00
Tom Christie
e7f6006f72
Revert "Config coverage increase" ( #650 )
...
* Revert "Config coverage increase (#626 )"
This reverts commit 2b93b84d11 .
* Tests should capture output
* Drop flaky gunicorn test
2020-04-24 13:46:15 +01:00
euri10
44e7debe4e
Add test for uvicorn worker ( #631 )
...
* Created dummy gunicorn / uvicorn pytest, that doesnt close gently
* Fixed the close by using terminate as join doenst close the underlying asgi app process
* Lint
* Added gunicorn in travis
* Skipping tests on pypy
* Removed unecessary print
* Dont install gunicorn on pypy nor windows sinc we dont test it there
* Import gunicor inside test to avoid pypy/win travis error
* Added travis pytest verbosity since new gunicorn test might be the reason subsequent
tests timeout (most likely 8000 port not properly released)
* Added time to effectively terminate gunciorn process in travis ?
* Lint, the previous added delay seems ok ?
* Cleani9ng
* Trying to use pytest.importskip for travis to avoid local imports in tests
* Trying to use pytest.importskip for travis to avoid local imports in tests
* Removed app
2020-04-13 13:44:11 +01:00
Florimond Manca
a839da2564
Add flake8 to linters ( #621 )
...
* Add flake8 to linters
* Inline flake8 config
* Update Travis install steps
2020-04-11 09:46:02 +02:00
Florian Apolloner
b8456905c5
Added support for publishing wheel files. ( #490 )
2019-11-15 12:06:27 +00:00
johnthagen
bed9c7d2e4
Fix operator
2019-10-10 11:52:17 -04:00
johnthagen
70c9b76833
Fix string quote
2019-10-10 11:46:12 -04:00
johnthagen
525ba56fa7
Skip black only on pypy3 and not Python 3.7
2019-10-10 09:14:19 -04:00
johnthagen
9e895e439d
Fix bash syntax
2019-09-13 19:20:02 -04:00
johnthagen
ba71deb74e
Fix bash formatting
2019-09-13 19:14:11 -04:00
johnthagen
e22f529eeb
Don't run black under PyPy3
2019-09-13 19:08:05 -04:00