Skip to content

Commit

Permalink
Merge pull request #116 from alfred82santa/feature/prepare-for-py3.10
Browse files Browse the repository at this point in the history
Prepare for Python 3.10
  • Loading branch information
alfred82santa committed Dec 9, 2021
2 parents 78c086b + f444230 commit 40f7510
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .pyvenv
@@ -1 +1 @@
dirtymodels@0.7.0
dirtymodels@0.12.3
6 changes: 4 additions & 2 deletions .travis.yml
@@ -1,8 +1,10 @@
language: python
python:
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
# - "3.10"
# command to install dependencies
install:
- make requirements
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -29,7 +29,7 @@ requirements-docs: requirements

run-tests:
@echo "Running tests..."
nosetests --with-coverage -d --cover-package=dirty_models --cover-erase -x
nose2 --fail-fast --with-coverage --coverage-report term-missing --coverage=dirty_models

publish: clean build
@echo "Publishing new version on Pypi..."
Expand Down
5 changes: 5 additions & 0 deletions README.rst
Expand Up @@ -85,6 +85,11 @@ Features
Changelog
---------

Version 0.12.4
--------------

* Make it compatible with Python 3.10.

Version 0.12.3
--------------

Expand Down
2 changes: 1 addition & 1 deletion dirty_models/__init__.py
Expand Up @@ -9,4 +9,4 @@
from .utils import *
from .base import *

__version__ = '0.12.3'
__version__ = '0.12.4'
4 changes: 2 additions & 2 deletions dirty_models/fields.py
Expand Up @@ -2,7 +2,7 @@
Fields to be used with dirty models.
"""

from collections import Mapping
from collections.abc import Mapping
from datetime import date, datetime, time, timedelta
from enum import Enum
from functools import wraps
Expand Down Expand Up @@ -667,7 +667,7 @@ class than model who define field.
* :class:`dict`.
* :class:`collections.Mapping`.
* :class:`collections.abc.Mapping`.
"""

def __init__(self, model_class=None, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion dirty_models/models.py
Expand Up @@ -2,7 +2,7 @@
Base models for dirty_models.
"""

from collections import Mapping
from collections.abc import Mapping
from copy import deepcopy
from datetime import date, datetime, time, timedelta
from enum import Enum
Expand Down
4 changes: 2 additions & 2 deletions requirements-test.txt
@@ -1,5 +1,5 @@
pep8
flake8
coverage
nose
iso8601
nose2
iso8601

0 comments on commit 40f7510

Please sign in to comment.