Pārlūkot izejas kodu

Merge pull request #1798 from zauberzeug/python3.12

Python 3.12
Rodja Trappe 1 gadu atpakaļ
vecāks
revīzija
b1fa53458e
4 mainītis faili ar 296 papildinājumiem un 575 dzēšanām
  1. 3 2
      .github/workflows/test.yml
  2. 282 569
      poetry.lock
  3. 5 3
      pyproject.toml
  4. 6 1
      test_startup.sh

+ 3 - 2
.github/workflows/test.yml

@@ -6,7 +6,7 @@ jobs:
   test:
     strategy:
       matrix:
-        python: ["3.8", "3.9", "3.10", "3.11"]
+        python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
       fail-fast: false
     runs-on: ubuntu-latest
     timeout-minutes: 40
@@ -19,9 +19,10 @@ jobs:
       - name: set up Poetry
         uses: abatilo/actions-poetry@v2.0.0
         with:
-          poetry-version: "1.3.1"
+          poetry-version: "1.6.1"
       - name: install dependencies
         run: |
+          set -x
           poetry config virtualenvs.create false
           poetry install --all-extras
           # install packages to run the examples

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 282 - 569
poetry.lock


+ 5 - 3
pyproject.toml

@@ -27,9 +27,8 @@ aiofiles = "^23.1.0"
 pywebview = { version = "^4.4.0", optional = true }
 plotly = { version = "^5.13.0", optional = true }
 matplotlib = { version = "^3.5.0", optional = true }
-nicegui-highcharts = { version = "^1.0.1", optional = true }
 httpx = ">=0.24.0,<1.0.0"
-aiohttp = "^3.8.5"
+nicegui-highcharts = { version = "^1.0.1", optional = true }
 ifaddr = "^0.2.0"
 
 [tool.poetry.extras]
@@ -51,7 +50,10 @@ docutils = "^0.19"
 pandas = "^2.0.0"
 secure = "^0.3.0"
 webdriver-manager = "^3.8.6"
-numpy = ">=1.24.0"
+numpy = [
+    {version = "^1.24.0", python = "~3.8"},
+    {version = "^1.26.0", python = ">=3.9,<3.13"}
+]
 selenium = "^4.11.2"
 beautifulsoup4 = "^4.12.2"
 urllib3 = ">=1.26.18,^1.26 || >=2.0.7" # https://github.com/zauberzeug/nicegui/security/dependabot/23

+ 6 - 1
test_startup.sh

@@ -36,7 +36,12 @@ do
     if test $(python3 --version | cut -d' ' -f2 | cut -d'.' -f1,2) = "3.11" && test $path = "examples/sqlite_database"; then
         continue # until https://github.com/omnilib/aiosqlite/issues/241 is fixed
     fi
-    
+
+    # skip if python is 3.12 and if path is examples/sqlite_database
+    if test $(python3 --version | cut -d' ' -f2 | cut -d'.' -f1,2) = "3.12" && test $path = "examples/sqlite_database"; then
+        continue # until https://github.com/omnilib/aiosqlite/issues/241 is fixed
+    fi
+
     # install all requirements except nicegui
     if test -f $path/requirements.txt; then
         sed '/^nicegui/d' $path/requirements.txt > $path/requirements.tmp.txt || error=1 # remove nicegui from requirements.txt

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels