From eee32e38ac35a251120cc3073149d624c5bf3554 Mon Sep 17 00:00:00 2001 From: saif Date: Thu, 2 Feb 2023 12:42:14 +0200 Subject: [PATCH] release: 0.2.1 --- .github/FUNDING.yml | 2 -- .github/ISSUE_TEMPLATE/bug_report.md | 39 --------------------- .github/ISSUE_TEMPLATE/config.yml | 4 --- .github/dependabot.yml | 20 +++++------ .github/stale.yml | 40 +++++++++++----------- .github/workflows/build.yml | 51 +++++++++++++++------------- README.md | 13 ------- fastapiusers_edgedb/__init__.py | 2 +- 8 files changed, 59 insertions(+), 112 deletions(-) delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/config.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index d4860d5..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -# These are supported funding model platforms -custom: https://www.buymeacoffee.com/frankie567 diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 75dd277..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: bug -assignees: '' - ---- - -## Describe the bug - -A clear and concise description of what the bug is. - -## To Reproduce - -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -## Expected behavior - -A clear and concise description of what you expected to happen. - -## Configuration - - Python version : - - FastAPI version : - - FastAPI Users version : - -### FastAPI Users configuration - -```py -# Please copy/paste your FastAPI Users configuration here. -``` - -## Additional context - -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 947517b..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,4 +0,0 @@ -contact_links: - - name: I have a question 🤔 - url: https://github.com/fastapi-users/fastapi-users/discussions - about: If you have any question about the usage of FastAPI Users that's not clearly a bug, please open a discussion first. diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7e04fad..82ffc11 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,10 +1,10 @@ -version: 2 -updates: -- package-ecosystem: pip - directory: "/" - schedule: - interval: daily - time: "04:00" - open-pull-requests-limit: 10 - reviewers: - - frankie567 +#version: 2 +#updates: +#- package-ecosystem: pip +# directory: "/" +# schedule: +# interval: daily +# time: "04:00" +# open-pull-requests-limit: 10 +# reviewers: +# - frankie567 diff --git a/.github/stale.yml b/.github/stale.yml index 29c6054..465f27f 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -1,20 +1,20 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 14 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - pinned - - security - - bug - - enhancement - - documentation -# Label to use when marking an issue as stale -staleLabel: stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false +## Number of days of inactivity before an issue becomes stale +#daysUntilStale: 14 +## Number of days of inactivity before a stale issue is closed +#daysUntilClose: 7 +## Issues with these labels will never be considered stale +#exemptLabels: +# - pinned +# - security +# - bug +# - enhancement +# - documentation +## Label to use when marking an issue as stale +#staleLabel: stale +## Comment to post when marking an issue as stale. Set to `false` to disable +#markComment: > +# This issue has been automatically marked as stale because it has not had +# recent activity. It will be closed if no further activity occurs. Thank you +# for your contributions. +## Comment to post when closing a stale issue. Set to `false` to disable +#closeComment: false diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a8f16f..acc2803 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,37 +21,42 @@ jobs: python -m pip install --upgrade pip pip install flit flit install --deps develop + + - uses: edgedb/setup-edgedb@v1 + - name: Setup Edgedb + run: edgedb query "SELECT 'Hello from GitHub Actions'" + - name: Test with pytest env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} run: | pytest --cov=fastapiusers_edgedb/ codecov - - name: Build and install it on system host + - name: Build and install flit on system host run: | flit build flit install --python $(which python) python test_build.py - release: - runs-on: ubuntu-latest - needs: test - if: startsWith(github.ref, 'refs/tags/') - - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: 3.7 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flit - flit install --deps develop - - name: Release on PyPI - env: - FLIT_USERNAME: ${{ secrets.FLIT_USERNAME }} - FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }} - run: | - flit publish +# release: +# runs-on: ubuntu-latest +# needs: test +# if: startsWith(github.ref, 'refs/tags/') +# +# steps: +# - uses: actions/checkout@v3 +# - name: Set up Python +# uses: actions/setup-python@v3 +# with: +# python-version: 3.7 +# - name: Install dependencies +# run: | +# python -m pip install --upgrade pip +# pip install flit +# flit install --deps develop +# - name: Release on PyPI +# env: +# FLIT_USERNAME: ${{ secrets.FLIT_USERNAME }} +# FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }} +# run: | +# flit publish diff --git a/README.md b/README.md index b10f1f4..a5161ad 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,5 @@ # FastAPI Users - Database adapter for EdgeDB -

- FastAPI Users -

- -

- Ready-to-use and customizable users management for FastAPI -

- -[//]: # ([![build](https://github.com/fastapi-users/fastapi-users-db-edgedb/workflows/Build/badge.svg)](https://github.com/fastapi-users/fastapi-users/actions)) -[//]: # ([![codecov](https://codecov.io/gh/fastapi-users/fastapi-users-db-edgedb/branch/master/graph/badge.svg)](https://codecov.io/gh/fastapi-users/fastapi-users-db-edgedb)) -[//]: # ([![PyPI version](https://badge.fury.io/py/fastapi-users-db-edgedb.svg)](https://badge.fury.io/py/fastapi-users-db-edgedb)) -[//]: # ([![Downloads](https://pepy.tech/badge/fastapi-users-db-edgedb)](https://pepy.tech/project/fastapi-users-db-edgedb)) - --- **Documentation**: https://fastapi-users.github.io/fastapi-users/ diff --git a/fastapiusers_edgedb/__init__.py b/fastapiusers_edgedb/__init__.py index a3a2406..3bd27f2 100644 --- a/fastapiusers_edgedb/__init__.py +++ b/fastapiusers_edgedb/__init__.py @@ -8,7 +8,7 @@ from fastapiusers_edgedb import user_api -__version__ = "0.2.0" +__version__ = "0.2.1" class EdgeDBUserDatabase(Generic[UP, ID], BaseUserDatabase[UP, ID]):