diff --git a/.github/workflows/python-3.7.yml b/.github/workflows/python-3.7.yml
deleted file mode 100644
index b608f0d..0000000
--- a/.github/workflows/python-3.7.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
-# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
-
-name: Python 3.7
-
-on:
- push:
- branches: ["master"]
- pull_request:
- branches: ["master"]
-
-jobs:
- build:
- runs-on: ubuntu-latest
- strategy:
- fail-fast: false
- matrix:
- python-version: ["3.7"]
-
- steps:
- - uses: actions/checkout@v3
- - name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v3
- with:
- python-version: ${{ matrix.python-version }}
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- python -m pip install flake8 pytest
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- - name: Lint with flake8
- run: |
- # stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- - name: Test with pytest
- run: |
- pytest
diff --git a/.github/workflows/python-3.8.yml b/.github/workflows/python-3.8.yml
deleted file mode 100644
index 5886d06..0000000
--- a/.github/workflows/python-3.8.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
-# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
-
-name: Python 3.8
-
-on:
- push:
- branches: ["master"]
- pull_request:
- branches: ["master"]
-
-jobs:
- build:
- runs-on: ubuntu-latest
- strategy:
- fail-fast: false
- matrix:
- python-version: ["3.8"]
-
- steps:
- - uses: actions/checkout@v3
- - name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v3
- with:
- python-version: ${{ matrix.python-version }}
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- python -m pip install flake8 pytest
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- - name: Lint with flake8
- run: |
- # stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- - name: Test with pytest
- run: |
- pytest
diff --git a/.github/workflows/python-3.9.yml b/.github/workflows/python-3.9.yml
deleted file mode 100644
index 30802f8..0000000
--- a/.github/workflows/python-3.9.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
-# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
-
-name: Python 3.9
-
-on:
- push:
- branches: ["master"]
- pull_request:
- branches: ["master"]
-
-jobs:
- build:
- runs-on: ubuntu-latest
- strategy:
- fail-fast: false
- matrix:
- python-version: ["3.9"]
-
- steps:
- - uses: actions/checkout@v3
- - name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v3
- with:
- python-version: ${{ matrix.python-version }}
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- python -m pip install flake8 pytest
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- - name: Lint with flake8
- run: |
- # stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- - name: Test with pytest
- run: |
- pytest
diff --git a/.github/workflows/python-3.10.yml b/.github/workflows/python-versions.yml
similarity index 93%
rename from .github/workflows/python-3.10.yml
rename to .github/workflows/python-versions.yml
index 4d9584e..a7704d0 100644
--- a/.github/workflows/python-3.10.yml
+++ b/.github/workflows/python-versions.yml
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
-name: Python 3.10
+name: Python 3.6|3.7|3.8|3.9|3.10
on:
push:
@@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: ["3.10"]
+ python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
diff --git a/README.md b/README.md
index 51cde77..ca4e453 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
Python client SDK for the PocketBase backend.
-This is in early development, and at first is just a translations for the javascript lib.
+This is in early development, and at first is just a translation of the javascript lib using HTTPX.
---
diff --git a/pocketbase/__init__.py b/pocketbase/__init__.py
index ae610d6..6eb6243 100644
--- a/pocketbase/__init__.py
+++ b/pocketbase/__init__.py
@@ -1,6 +1,6 @@
__title__ = "pocketbase"
__description__ = "PocketBase client SDK for python."
-__version__ = "0.1.1"
+__version__ = "0.1.2"
from .client import Client, ClientResponseError
diff --git a/pyproject.toml b/pyproject.toml
index 914a010..049a201 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -40,7 +40,7 @@ keywords = ["pocketbase", "sdk"]
"Bug Tracker" = "https://github.com/vaphes/pocketbase/issues"
[tool.poetry.dependencies]
-python = "^3.10"
+python = "^3.7"
httpx = "^0.23.0"
[tool.poetry.dev-dependencies]
diff --git a/tests/test_python_pocketbase.py b/tests/test_python_pocketbase.py
index 6365aec..dcff5ce 100644
--- a/tests/test_python_pocketbase.py
+++ b/tests/test_python_pocketbase.py
@@ -2,4 +2,4 @@ from pocketbase import __version__
def test_version():
- assert __version__ == "0.1.1"
+ assert __version__ == "0.1.2"