Skip to content

Commit

Permalink
py-fastapi: update to 0.103.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cquike committed Nov 2, 2023
1 parent 52331c2 commit cb882db
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
19 changes: 10 additions & 9 deletions python/py-fastapi/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ PortSystem 1.0
PortGroup github 1.0
PortGroup python 1.0

github.setup tiangolo fastapi 0.78.0
revision 1
github.setup tiangolo fastapi 0.103.1
revision 0
name py-${github.project}

categories-append devel
Expand All @@ -20,23 +20,24 @@ long_description FastAPI is a modern, fast (high-performance), web \
framework for building APIs with Python 3.6+ based \
on standard Python type hints.

checksums rmd160 a49377b829ca5849c8a8be00b0db90524665061d \
sha256 278535022d140e2f75bb87e7926c82b04fd4aee908bbecd79d0c66c88e246882 \
size 6861419
checksums rmd160 58bc385489e642b11490055fcdee5cd324ea0f9c \
sha256 727fa4f8da1b683c2f6485375e0b99d6adf50400e92999a1fa27082b8bd8aea2 \
size 11214418

python.versions 37 38 39 310
python.versions 38 39 310

python.pep517 yes
python.pep517_backend flit
python.pep517_backend hatchling

if {${name} ne ${subport}} {
patchfiles-append \
patch-pyproject_toml.diff

depends_build-append \
port:py${python.version}-flit
port:py${python.version}-hatchling

depends_run-append \
port:py${python.version}-starlette \
port:py${python.version}-pydantic \
port:py${python.version}-starlette
port:py${python.version}-typing_extensions
}
18 changes: 9 additions & 9 deletions python/py-fastapi/files/patch-pyproject_toml.diff
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- ./pyproject.toml 2022-06-01 14:39:59.000000000 -0400
+++ ./pyproject.toml 2022-06-01 14:40:29.000000000 -0400
@@ -35,7 +35,7 @@
--- ./pyproject.toml
+++ ./pyproject.toml
@@ -40,7 +40,7 @@
"Topic :: Internet :: WWW/HTTP",
]
requires = [
- "starlette==0.19.1",
+ "starlette>=0.19.1",
"pydantic >=1.6.2,!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0",
]
description-file = "README.md"
dependencies = [
- "starlette>=0.27.0,<0.28.0",
+ "starlette>=0.27.0,<=0.31.1",
"pydantic>=1.7.4,!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0",
"typing-extensions>=4.8.0",
# TODO: remove this pin after upgrading Starlette 0.31.1

0 comments on commit cb882db

Please sign in to comment.