Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
name: Python Package Publish

on:
# 当测试工作流成功完成时自动触发发布审批流程
workflow_run:
workflows: ["Python Test and Coverage"]
types:
- completed
branches:
- main

# 手动触发发布工作流
workflow_dispatch:
inputs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ jobs:
pip install -r requirements.txt
pip install -r requirements-dev.txt

- name: Install activerecord and testsuite from Git
- name: Install activerecord and testsuite from PyPI
run: |
pip install git+https://github.com/rhosocial/python-activerecord.git@release/v1.0.0.dev23
pip install git+https://github.com/rhosocial/python-activerecord-testsuite.git@release/v1.0.0.dev10
pip install rhosocial-activerecord==1.0.0.dev24
pip install rhosocial-activerecord-testsuite==1.0.0.dev11

- name: Create postgres scenario config
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ __pycache__/
*.py[cod]
*$py.class

# macOS
.DS_Store

# C extensions
*.so

Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [v1.0.0.dev11] - 2026-04-17

### Added

- Add comprehensive PostgreSQL backend examples covering connection, CRUD, transactions, CTEs, window functions, and more ([#30](https://github.com/rhosocial/python-activerecord-postgres/issues/30))


## [v1.0.0.dev10] - 2026-04-13

### Added
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
global-exclude *.pyc
global-exclude __pycache__
recursive-exclude * *.pyc
recursive-include src/rhosocial/activerecord/backend/impl/postgres *
recursive-include src/rhosocial/activerecord/backend/impl/postgres *.py *.pyi
include LICENSE
include README.md
12 changes: 10 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"

[project]
name = "rhosocial_activerecord_postgres"
version = "1.0.0.dev10"
name = "rhosocial-activerecord-postgres"
version = "1.0.0.dev11"
description = "postgres backend implementation for rhosocial-activerecord, providing a robust and optimized postgres database support."
readme = "README.md"
license = { file = "LICENSE" }
Expand Down Expand Up @@ -71,13 +71,21 @@ Issues = "https://github.com/rhosocial/python-activerecord-postgres/issues"
where = ["src"]
namespaces = true

[tool.setuptools.package-data]
rhosocial = ["**/*.pyi", "**/*.py"]

[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q"
asyncio_mode = "auto"
testpaths = [
"tests",
]
markers = [
"requires_capability: marks tests requiring specific backend capabilities",
"requires_protocol: marks tests requiring specific backend protocol support",
"requires_inner_join: marks tests requiring INNER JOIN support",
]

[tool.coverage.run]
source = ["rhosocial"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from .transaction import PostgresTransactionManager, AsyncPostgresTransactionManager
from .types import PostgresEnumType
from .explain import PostgresExplainResult, PostgresExplainPlanLine
from .statements import (
from .expression.ddl import (
CreateEnumTypeExpression,
DropEnumTypeExpression,
AlterEnumTypeAddValueExpression,
Expand Down
Loading
Loading