Skip to content

Commit 7cdd4fb

Browse files
committed
fix: Package version, CI
- Corrected version number in docs and package - disabled coveralls - fix tox not running selected env only - Parallel runner support for coveralls TODO: - Split github action
1 parent e3fa898 commit 7cdd4fb

7 files changed

Lines changed: 25 additions & 14 deletions

File tree

.github/workflows/github-actions.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,21 @@ jobs:
5252
- name: Install Dependencies
5353
run: uv sync --only-group test
5454
- name: Run test suite
55-
run: uv run tox run-parallel -e "$(tox -a | grep py$(echo "${{ matrix.python-version }}" | tr -d . ))" -- "--cov=mongoengine"
56-
- name: Send coverage to Coveralls
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59-
COVERALLS_SERVICE_NAME: github
60-
run: coveralls
55+
run: |
56+
envs="$(uv run tox -a | grep py$(echo "${{ matrix.python-version }}" | tr -d . ) || true)"
57+
if [ -z "$envs" ]; then
58+
echo "Error: No matching tox envs found" >&2
59+
exit 1
60+
fi
61+
echo "Running with: $envs"
62+
uv run tox run-parallel -e "$envs" -- "--cov=mongoengine --cov-report="
63+
uv run coverage combine
64+
uv run coverage report
65+
# - name: Send coverage to Coveralls
66+
# env:
67+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
# COVERALLS_SERVICE_NAME: github
69+
# run: uv run coveralls
6170

6271
build_doc_dryrun:
6372
# ensures that readthedocs can be built continuously

docs/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Development
88
===========
99
- (Fill this out as you fix issues and develop your features).
1010

11-
Changes in 0.3.0
11+
Changes in 0.30.0
1212
=================
1313
- feat!: migrate MongoEngine to native async PyMongo (>= 4.14)
1414
- Refactored the core ODM to support PyMongo’s native async API

docs/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Frequently Asked Questions
55
Does MongoEngine support asynchronous operations?
66
-------------------------------------------------
77

8-
Yes, as of version 0.3.0, MongoEngine provides built-in support for asynchronous operations.
8+
Yes, as of version 0.30.0, MongoEngine provides built-in support for asynchronous operations.
99
This support is based on PyMongo's native asynchronous driver (available in PyMongo 4.14+).
1010

1111
You can use the :attr:`~mongoengine.Document.aobjects` attribute for asynchronous queries and

mongoengine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
del _sync_queryset
5757
del _async_queryset
5858

59-
VERSION = (0, 3, 0)
59+
VERSION = (0, 30, 0)
6060

6161

6262
def get_version():

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mongoengine"
3-
version = "0.29.0"
3+
version = "0.30.0"
44
description = "MongoEngine is a Python Object-Document Mapper for working with MongoDB."
55
authors = [
66
{ name = "Harry Marr", email = "harry.marr@gmail.com" }
@@ -33,7 +33,7 @@ classifiers = [
3333
]
3434
requires-python = ">=3.10"
3535
dependencies = [
36-
"pymongo (>=4.13,<5.0)",
36+
"pymongo (>=4.14,<5.0)",
3737
]
3838

3939
[dependency-groups]

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ envlist =
88
package = wheel
99
runner = uv-venv-runner
1010
dependency_groups = test
11+
setenv =
12+
COVERAGE_FILE = .coverage.{envname}
1113

1214
commands =
13-
pytest tests/ {posargs}
15+
pytest --cov-report= --cov=mongoengine tests/ {posargs}
1416

1517
deps =
1618
mg414: pymongo>=4.14,<4.15

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)