Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated compatibility info #59

Merged
merged 3 commits into from
Oct 11, 2023
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
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
fail-fast: false
matrix:
python-version:
- 3.7
- 3.8
- 3.9
- '3.10'
- '3.11'
- '3.12'
- pypy3.9

services:
Expand All @@ -37,11 +37,12 @@ jobs:

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Install dependencies
run: |
Expand Down
1 change: 0 additions & 1 deletion ming/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import cgi
from threading import local
import warnings
import pymongo
Expand Down Expand Up @@ -140,6 +139,6 @@

def fix_write_concern(kwargs):
if 'safe' in kwargs:
warnings.warn('safe option is now deprecated', DeprecationWarning, stacklevel=2)

Check warning on line 142 in ming/utils.py

View check run for this annotation

Codecov / codecov/patch

ming/utils.py#L142

Added line #L142 was not covered by tests
kwargs['w'] = int(kwargs.pop('safe'))
return kwargs
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
'Topic :: Database',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
python_requires='>=3.7',
python_requires='>=3.8',
keywords='mongo, pymongo',
author='Rick Copeland',
author_email='[email protected]',
Expand All @@ -38,6 +38,7 @@
"pytz",
],
tests_require=[
"setuptools"
"pytz",
"WebOb",
"webtest",
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[tox]
skip_missing_interpreters = True
envlist =
py{37,38,39,310,311},pypy3
py{38,39,310,311,312},pypy3

[testenv]
deps =
setuptools
pytz
WebOb
webtest
Expand Down