Skip to content

Commit

Permalink
Drop support for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Jul 29, 2022
1 parent 7503a4c commit 0aa989a
Show file tree
Hide file tree
Showing 9 changed files with 85 additions and 485 deletions.
10 changes: 6 additions & 4 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
image: Visual Studio 2019

environment:
matrix:
- PYTHON_MAJOR: 3
PYTHON_MINOR: 7
- PYTHON_MAJOR: 3
PYTHON_MINOR: 8
- PYTHON_MAJOR: 3
PYTHON_MINOR: 9

cache:
- .venv -> poetry.lock
Expand All @@ -19,8 +21,8 @@ install:
- set PATH=C:\Python%PYTHON_MAJOR%%PYTHON_MINOR%;%PATH%
- set PATH=C:\Python%PYTHON_MAJOR%%PYTHON_MINOR%\Scripts;%PATH%
# Install system dependencies
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
- set PATH=%USERPROFILE%\.poetry\bin;%PATH%
- curl -sSL https://install.python-poetry.org | python -
- set PATH=C:\Users\appveyor\AppData\Roaming\Python\Scripts;%PATH%
- make doctor
# Install project dependencies
- make install
Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ dist: focal

language: python
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10.0"
Expand Down
2 changes: 1 addition & 1 deletion .verchew.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version = GNU Make
[Python]

cli = python
version = 3.7 || 3.8 || 3.9 || 3.10
version = 3.8 || 3.9 || 3.10

[Poetry]

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## 2.0 (alpha)

- Dropped support for Python 3.7.

## 1.4.1 (2022-07-28)

- Fixed exception when `TypedDict` is used, but schema is not yet supported.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Objects can also be restored from the filesystem:

## Installation

Because datafiles relies on dataclasses and type annotations, Python 3.7+ is required. Install this library directly into an activated virtual environment:
Install this library directly into an activated virtual environment:

```
$ pip install datafiles
Expand Down
3 changes: 1 addition & 2 deletions datafiles/tests/test_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

from dataclasses import dataclass
from enum import Enum
from typing import ByteString, Dict, List, Mapping, Optional, Set
from typing import ByteString, Dict, List, Mapping, Optional, Set, TypedDict

import pytest
from ruamel.yaml.scalarstring import LiteralScalarString
from typing_extensions import TypedDict

from datafiles import converters, settings

Expand Down
538 changes: 69 additions & 469 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "datafiles"
version = "1.4.1"
version = "2.0a1"
description = "File-based ORM for dataclasses."

license = "MIT"
Expand Down Expand Up @@ -30,7 +30,6 @@ classifiers = [
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -41,7 +40,7 @@ classifiers = [

[tool.poetry.dependencies]

python = "^3.7"
python = "^3.8"

# Formats
"ruamel.yaml" = "^0.17.21"
Expand All @@ -55,9 +54,6 @@ cached_property = "^1.5"
classproperties = "^0.2"
minilog = "^2.1"

# Typing
typing-extensions = "^3.7" # remove this when Python 3.7 support is dropped

[tool.poetry.dev-dependencies]

# Formatters
Expand Down
2 changes: 1 addition & 1 deletion tests/test_file_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def it_implements_repr(expect):
@pytest.mark.parametrize(
("filename", "count"),
[
(".appveyor.yml", 5),
(".appveyor.yml", 6),
(".travis.yml", 9),
("mkdocs.yml", 8),
("pyproject.toml", 2),
Expand Down

0 comments on commit 0aa989a

Please sign in to comment.