Skip to content

Commit 35dca03

Browse files
authored
DRIVERS-2966 Switch to Hatch Backend (#313)
1 parent 44c6af4 commit 35dca03

File tree

6 files changed

+84
-471
lines changed

6 files changed

+84
-471
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,16 @@ jobs:
2323
# Github Actions doesn't support pairing matrix values together, let's improvise
2424
# https://github.com/github/feedback/discussions/7835#discussioncomment-1769026
2525
options:
26-
- ["Other", "--ignore=tests/test_replica_set.py --ignore=tests/test_replica_sets.py --ignore=tests/test_sharded_clusters.py"]
27-
- ["Replica Set", "tests/test_replica_set.py"]
28-
- ["Replica Sets", "tests/test_replica_sets.py"]
29-
- ["Sharded", "tests/test_sharded_clusters.py"]
26+
- ["Other", "--ignore=tests/test_replica_set.py --ignore=tests/test_replica_sets.py --ignore=tests/test_sharded_clusters.py", "3.8"]
27+
- ["Replica Set", "tests/test_replica_set.py", "3.9"]
28+
- ["Replica Sets", "tests/test_replica_sets.py", "3.10"]
29+
- ["Sharded", "tests/test_sharded_clusters.py", "3.12"]
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232
- name: Setup Python
33-
uses: actions/setup-python@v2
33+
uses: actions/setup-python@v5
3434
with:
35-
cache: 'pip'
36-
cache-dependency-path: 'setup.py'
35+
python-version: ${{ matrix.options[2] }}
3736
- name: Install MongoDB
3837
run: |
3938
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
@@ -42,8 +41,7 @@ jobs:
4241
sudo apt-get install -y mongodb-org
4342
- name: Install Dependencies
4443
run: |
45-
pip install -e .
46-
pip install pytest
44+
pip install -e ".[test]"
4745
- name: Run Tests
4846
run: |
4947
pytest -raXs -v --durations 10 --color=yes ${{ matrix.options[1] }}

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Features
2626
Requires
2727
--------
2828

29-
- `Python >=3.7 <http://www.python.org/download/>`__
29+
- `Python >=3.8 <http://www.python.org/download/>`__
3030
- `bottle>=0.12.7 <https://pypi.python.org/pypi/bottle>`__
3131
- `pymongo>=3.0.2,<4 <https://pypi.python.org/pypi/pymongo>`__
3232
- `cheroot>=5.11 <https://pypi.python.org/pypi/cheroot/>`__

0 commit comments

Comments
 (0)