supabase-orm 0.0.1.dev1__tar.gz → 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. supabase_orm-0.1.0/.github/workflows/publish.yml +97 -0
  2. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/PKG-INFO +6 -6
  3. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/README.md +1 -1
  4. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/pyproject.toml +4 -4
  5. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/src/supabase_orm/_version.py +2 -2
  6. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/.env.example +0 -0
  7. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/.gitignore +0 -0
  8. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/LICENSE +0 -0
  9. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/src/supabase_orm/__init__.py +0 -0
  10. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/src/supabase_orm/_base.py +0 -0
  11. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/src/supabase_orm/_client.py +0 -0
  12. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/src/supabase_orm/_embed.py +0 -0
  13. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/src/supabase_orm/_exceptions.py +0 -0
  14. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/src/supabase_orm/_filters.py +0 -0
  15. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/src/supabase_orm/_query.py +0 -0
  16. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/src/supabase_orm/_rpc.py +0 -0
  17. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/src/supabase_orm/_serializers.py +0 -0
  18. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/__init__.py +0 -0
  19. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/conftest.py +0 -0
  20. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/integration/README.md +0 -0
  21. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/integration/__init__.py +0 -0
  22. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/integration/conftest.py +0 -0
  23. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/integration/schema.sql +0 -0
  24. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/integration/test_embeds.py +0 -0
  25. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/integration/test_filters.py +0 -0
  26. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/integration/test_rpc.py +0 -0
  27. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/integration/test_writes_and_terminals.py +0 -0
  28. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/test_base.py +0 -0
  29. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/test_client.py +0 -0
  30. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/test_embed.py +0 -0
  31. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/test_exceptions.py +0 -0
  32. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/test_filters.py +0 -0
  33. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/test_query.py +0 -0
  34. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/test_rpc.py +0 -0
  35. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/test_serializers.py +0 -0
  36. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/tests/test_wire.py +0 -0
  37. {supabase_orm-0.0.1.dev1 → supabase_orm-0.1.0}/uv.lock +0 -0
@@ -0,0 +1,97 @@
1
+ name: Publish to PyPI
2
+
3
+ # Fires when a PEP 440 version tag is pushed (e.g. 0.1.0, 0.1.0a1, 0.1.0.dev0).
4
+ # We tag without a ``v`` prefix so hatch-vcs reads the tag as the version directly.
5
+ on:
6
+ push:
7
+ tags:
8
+ - "[0-9]+.[0-9]+.[0-9]+*"
9
+
10
+ concurrency:
11
+ group: ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress: false
13
+
14
+ # Single source of truth for the PyPI distribution name. Used in the
15
+ # environment URL, the release-notes install snippet, and the PyPI link.
16
+ env:
17
+ PACKAGE_NAME: supabase-orm
18
+
19
+ jobs:
20
+ publish:
21
+ name: Build and publish
22
+ runs-on: ubuntu-latest
23
+
24
+ # Requires a "pypi" environment with trusted-publishing configured.
25
+ # See https://docs.pypi.org/trusted-publishers/
26
+ environment:
27
+ name: pypi
28
+ url: https://pypi.org/p/${{ env.PACKAGE_NAME }}
29
+
30
+ permissions:
31
+ id-token: write # trusted publishing
32
+ contents: write # create GitHub release
33
+
34
+ steps:
35
+ - name: Checkout
36
+ uses: actions/checkout@v6
37
+ with:
38
+ fetch-depth: 0 # hatch-vcs needs full history to resolve the tag
39
+
40
+ - name: Install uv
41
+ uses: astral-sh/setup-uv@v8.1.0
42
+
43
+ - name: Install dependencies
44
+ run: uv sync --dev
45
+
46
+ - name: Lint
47
+ run: uv run ruff check .
48
+
49
+ - name: Run mock tests
50
+ run: uv run pytest
51
+
52
+ - name: Build distribution
53
+ run: uv build
54
+
55
+ - name: Publish to PyPI
56
+ uses: pypa/gh-action-pypi-publish@release/v1
57
+
58
+ - name: Create GitHub release
59
+ env:
60
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61
+ run: |
62
+ set -euo pipefail
63
+
64
+ VERSION="${GITHUB_REF_NAME}"
65
+
66
+ # PEP 440 pre-release? aN / bN / rcN / .devN
67
+ PRERELEASE_FLAG=""
68
+ if [[ "${VERSION}" =~ (a|b|rc|\.dev)[0-9] ]]; then
69
+ PRERELEASE_FLAG="--prerelease"
70
+ fi
71
+
72
+ # Categorised notes from GitHub's native generator
73
+ # (driven by .github/release.yml if present).
74
+ AUTO_NOTES=$(gh api \
75
+ -X POST \
76
+ "repos/${GITHUB_REPOSITORY}/releases/generate-notes" \
77
+ -f tag_name="${VERSION}" \
78
+ --jq .body)
79
+
80
+ {
81
+ echo "## Install"
82
+ echo
83
+ echo '```bash'
84
+ echo "pip install '${PACKAGE_NAME}==${VERSION}'"
85
+ echo '```'
86
+ echo
87
+ echo "PyPI: https://pypi.org/project/${PACKAGE_NAME}/${VERSION}/"
88
+ echo
89
+ echo "${AUTO_NOTES}"
90
+ } > /tmp/release-notes.md
91
+
92
+ gh release create "${VERSION}" \
93
+ --title "${VERSION}" \
94
+ --notes-file /tmp/release-notes.md \
95
+ --verify-tag \
96
+ ${PRERELEASE_FLAG} \
97
+ dist/*
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: supabase-orm
3
- Version: 0.0.1.dev1
3
+ Version: 0.1.0
4
4
  Summary: Lightweight async ORM on top of supabase-py with Pydantic validation.
5
- Project-URL: Homepage, https://github.com/viperadnan/supabase-orm
6
- Project-URL: Repository, https://github.com/viperadnan/supabase-orm
7
- Project-URL: Issues, https://github.com/viperadnan/supabase-orm/issues
8
- Project-URL: Documentation, https://github.com/viperadnan/supabase-orm#readme
5
+ Project-URL: Homepage, https://github.com/viperadnan-git/supabase-orm
6
+ Project-URL: Repository, https://github.com/viperadnan-git/supabase-orm
7
+ Project-URL: Issues, https://github.com/viperadnan-git/supabase-orm/issues
8
+ Project-URL: Documentation, https://github.com/viperadnan-git/supabase-orm#readme
9
9
  Author-email: Adnan Ahmad <viperadnan@gmail.com>
10
10
  License: Apache-2.0
11
11
  License-File: LICENSE
@@ -485,7 +485,7 @@ The integration suite needs a Supabase project with the test schema applied. See
485
485
 
486
486
  ## Contributing
487
487
 
488
- Issues and PRs welcome at [github.com/viperadnan/supabase-orm](https://github.com/viperadnan/supabase-orm). Run the test suite before sending a PR:
488
+ Issues and PRs welcome at [github.com/viperadnan-git/supabase-orm](https://github.com/viperadnan-git/supabase-orm). Run the test suite before sending a PR:
489
489
 
490
490
  ```bash
491
491
  uv run pytest # mock suite (fast, no network)
@@ -451,7 +451,7 @@ The integration suite needs a Supabase project with the test schema applied. See
451
451
 
452
452
  ## Contributing
453
453
 
454
- Issues and PRs welcome at [github.com/viperadnan/supabase-orm](https://github.com/viperadnan/supabase-orm). Run the test suite before sending a PR:
454
+ Issues and PRs welcome at [github.com/viperadnan-git/supabase-orm](https://github.com/viperadnan-git/supabase-orm). Run the test suite before sending a PR:
455
455
 
456
456
  ```bash
457
457
  uv run pytest # mock suite (fast, no network)
@@ -32,10 +32,10 @@ dependencies = [
32
32
  ]
33
33
 
34
34
  [project.urls]
35
- Homepage = "https://github.com/viperadnan/supabase-orm"
36
- Repository = "https://github.com/viperadnan/supabase-orm"
37
- Issues = "https://github.com/viperadnan/supabase-orm/issues"
38
- Documentation = "https://github.com/viperadnan/supabase-orm#readme"
35
+ Homepage = "https://github.com/viperadnan-git/supabase-orm"
36
+ Repository = "https://github.com/viperadnan-git/supabase-orm"
37
+ Issues = "https://github.com/viperadnan-git/supabase-orm/issues"
38
+ Documentation = "https://github.com/viperadnan-git/supabase-orm#readme"
39
39
 
40
40
  [build-system]
41
41
  requires = ["hatchling", "hatch-vcs"]
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.0.1.dev1'
22
- __version_tuple__ = version_tuple = (0, 0, 1, 'dev1')
21
+ __version__ = version = '0.1.0'
22
+ __version_tuple__ = version_tuple = (0, 1, 0)
23
23
 
24
24
  __commit_id__ = commit_id = None
File without changes
File without changes