From 3f8d2bb10801868541df15f946928e344408ac5e Mon Sep 17 00:00:00 2001 From: Vithor Jaeger Date: Mon, 19 Sep 2022 11:57:04 -0400 Subject: [PATCH] pypi fixes --- .github/workflows/python-3.7.yml | 39 ++++++++++++++++++++++++++++++++ LICENCE.txt | 21 +++++++++++++++++ README.md | 4 ++-- pyproject.toml | 18 +++++++++++++++ 4 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/python-3.7.yml create mode 100644 LICENCE.txt diff --git a/.github/workflows/python-3.7.yml b/.github/workflows/python-3.7.yml new file mode 100644 index 0000000..b608f0d --- /dev/null +++ b/.github/workflows/python-3.7.yml @@ -0,0 +1,39 @@ +# 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/LICENCE.txt b/LICENCE.txt new file mode 100644 index 0000000..8aa2645 --- /dev/null +++ b/LICENCE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) [year] [fullname] + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 84abb88..86c3b80 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # pocketbase -[![Python 3.10](https://github.com/vaphes/pocketbase/actions/workflows/python-3.10.yml/badge.svg)](https://github.com/vaphes/pocketbase/actions/workflows/python-3.10.yml)[![Python 3.9](https://github.com/vaphes/pocketbase/actions/workflows/python-3.9.yml/badge.svg)](https://github.com/vaphes/pocketbase/actions/workflows/python-3.9.yml)[![Python 3.8](https://github.com/vaphes/pocketbase/actions/workflows/python-3.8.yml/badge.svg)](https://github.com/vaphes/pocketbase/actions/workflows/python-3.8.yml) +[![Python 3.10](https://github.com/vaphes/pocketbase/actions/workflows/python-3.10.yml/badge.svg)](https://github.com/vaphes/pocketbase/actions/workflows/python-3.10.yml) [![Python 3.9](https://github.com/vaphes/pocketbase/actions/workflows/python-3.9.yml/badge.svg)](https://github.com/vaphes/pocketbase/actions/workflows/python-3.9.yml) [![Python 3.8](https://github.com/vaphes/pocketbase/actions/workflows/python-3.8.yml/badge.svg)](https://github.com/vaphes/pocketbase/actions/workflows/python-3.8.yml) -Python client for PocketBase database. +Python client SDK for PocketBase database. This is in early development, and at first is just a translations for the javascript lib. diff --git a/pyproject.toml b/pyproject.toml index fb95ff3..8cfef5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,21 @@ +[project] +name = "pocketbase" +version = "0.1.0" +description = "PocketBase client SDK for python." +authors = ["Vithor Jaeger "] +readme = "README.md" +requires-python = ">=3.7" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] +keywords = "pocketbase client sdk" + +[project.urls] +"Homepage" = "https://github.com/vaphes/pocketbase" +"Bug Tracker" = "https://github.com/vaphes/pocketbase/issues" + [tool.poetry] name = "pocketbase" version = "0.1.0"