You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2023/01/16 20:25:03 UTC

[streampipes] branch chore/python-dependencies created (now 8c6cce676)

This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a change to branch chore/python-dependencies
in repository https://gitbox.apache.org/repos/asf/streampipes.git


      at 8c6cce676 chore: add doc check to pr-validation

This branch includes the following new commits:

     new a2c893a7a chore: pin dev dependencies
     new 8c6cce676 chore: add doc check to pr-validation

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[streampipes] 02/02: chore: add doc check to pr-validation

Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch chore/python-dependencies
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 8c6cce6763f29165043a0174e516f72775e3ee6b
Author: bossenti <bo...@posteo.de>
AuthorDate: Mon Jan 16 21:24:47 2023 +0100

    chore: add doc check to pr-validation
---
 .github/workflows/pr-validation.yml | 36 ++++++++++++++++++++++++++++++++----
 1 file changed, 32 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml
index 07ace7096..90bc06e31 100644
--- a/.github/workflows/pr-validation.yml
+++ b/.github/workflows/pr-validation.yml
@@ -131,12 +131,10 @@ jobs:
       - name: Run style & code checks
         run: |
           cd ./streampipes-client-python
-          pre-commit run --files streampipes_client/*
-          pre-commit run --files tests/*
+          pre-commit run -a
           make mypy
           make lint
 
-
   python-unit-tests:
     runs-on: ${{ matrix.os }}
     strategy:
@@ -171,4 +169,34 @@ jobs:
       - name: Run unit-tests
         run: |
           cd ./streampipes-client-python
-          make unit-tests
\ No newline at end of file
+          make unit-tests
+
+  python-doc-checks:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: Set up Python
+        uses: actions/setup-python@v2
+        with:
+          python-version: 3.8
+
+      - name: Cache Python dependencies
+        uses: actions/cache@v2
+        with:
+          path: ~/.cache/pip
+          key: ${{ runner.os }}-pip${{ hashFiles('**/setup.py') }}
+          restore-keys: |
+            ${{ runner.os }}-pip-
+
+      - name: Install Python dependencies
+        run: |
+          cd ./streampipes-client-python
+          python -m pip install --upgrade pip
+          pip install wheel
+          pip install -e ".[docs]"
+
+      - name: Build MkDocs
+        run: |
+          cd ./streampipes-client-python
+          make doc
\ No newline at end of file


[streampipes] 01/02: chore: pin dev dependencies

Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch chore/python-dependencies
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit a2c893a7af1a0728ab40ee64446aeb63ec57e7e6
Author: bossenti <bo...@posteo.de>
AuthorDate: Mon Jan 16 21:23:35 2023 +0100

    chore: pin dev dependencies
---
 streampipes-client-python/setup.py                 | 43 +++++++++++-----------
 .../streampipes_client/client/client.py            |  1 -
 2 files changed, 21 insertions(+), 23 deletions(-)

diff --git a/streampipes-client-python/setup.py b/streampipes-client-python/setup.py
index 462dd3d87..aed785b92 100644
--- a/streampipes-client-python/setup.py
+++ b/streampipes-client-python/setup.py
@@ -38,30 +38,30 @@ base_packages = [
 ]
 
 dev_packages = base_packages + [
-    "autoflake>=1.7.7",
-    "black>=22.10.0",
-    "flake8>=5.0.4",
-    "interrogate>=1.5.0",
-    "isort>=5.10.1",
-    "mypy>=0.990",
-    "pandas-stubs>=1.2.0.62",
-    "pre-commit>=2.20.0",
-    "pytest>=7.2.0",
-    "pytest-cov>=4.0.0",
-    "pyupgrade>=3.2.2",
-    "types-requests>=2.28.11.4",
+    "autoflake==2.0.0",
+    "black==22.12.0",
+    "flake8==6.0.0",
+    "interrogate==1.5.0",
+    "isort==5.11.4",
+    "mypy==0.991",
+    "pandas-stubs==1.5.2.230105",
+    "pre-commit==2.21.0",
+    "pytest==7.2.1",
+    "pytest-cov==4.0.0",
+    "pyupgrade==3.2.1",
+    "types-requests==2.28.11.7",
 ]
 
 docs_packages = [
-    "mkdocs>=1.2.3",
-    "mkdocs-awesome-pages-plugin>=2.7.0",
-    "mkdocs-material>=8.1.11",
-    "mkdocstrings[python]>=0.19.0",
-    "pytkdocs[numpy-style]>=0.5.0",
-    "mkdocs-gen-files>=0.3.5",
-    "mkdocs-literate-nav>=0.4.1",
-    "numpydoc>=1.2",
-    "mkdocs-jupyter>=0.22.0 "
+    "mkdocs==1.4.2",
+    "mkdocs-awesome-pages-plugin==2.8.0",
+    "mkdocs-material==8.5.11",  # < 9.x.y is required by mkdocs-jupyter
+    "mkdocstrings[python]==0.19.1",
+    "pytkdocs[numpy-style]>=0.16.1",
+    "mkdocs-gen-files==0.4.0",
+    "mkdocs-literate-nav==0.6.0",
+    "numpydoc==1.5.0",
+    "mkdocs-jupyter==0.22.0 "
 ]
 
 here = os.path.abspath(os.path.dirname(__file__))
@@ -111,7 +111,6 @@ setuptools.setup(
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
         "Programming Language :: Python :: 3.10",
-        "Programming Language :: Python :: 3.11",
         "Topic :: Scientific/Engineering"
     ],
     ext_modules=[],
diff --git a/streampipes-client-python/streampipes_client/client/client.py b/streampipes-client-python/streampipes_client/client/client.py
index 21c3c856f..e22ed5fcd 100644
--- a/streampipes-client-python/streampipes_client/client/client.py
+++ b/streampipes-client-python/streampipes_client/client/client.py
@@ -28,7 +28,6 @@ import sys
 from typing import Dict, Optional
 
 from requests import Session
-
 from streampipes_client.client.client_config import StreamPipesClientConfig
 from streampipes_client.endpoint import DataLakeMeasureEndpoint, DataStreamEndpoint
 from streampipes_client.endpoint.endpoint import APIEndpoint