From eb9cdc70be731e458d9063e914fd23695959bc2c Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 13 Dec 2021 00:59:49 +0200 Subject: Drop support for Python <= 3.6 --- .pre-commit-config.yaml | 5 +++++ setup.cfg | 2 -- setup.py | 2 +- src/isodate/duration.py | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 setup.cfg diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c00dfd9..05cc6be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,9 @@ repos: + - repo: https://github.com/asottile/pyupgrade + rev: v2.10.0 + hooks: + - id: pyupgrade + args: ["--py37-plus"] - repo: https://github.com/pycqa/flake8 rev: 3.9.1 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 2a9acf1..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal = 1 diff --git a/setup.py b/setup.py index d5a3427..b569eab 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ setup( "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet", - ("Topic :: Software Development :" ": Libraries :: Python Modules"), + "Topic :: Software Development :" ": Libraries :: Python Modules", ], test_suite="isodate.tests.test_suite", ) diff --git a/src/isodate/duration.py b/src/isodate/duration.py index 3803d1c..f771b54 100644 --- a/src/isodate/duration.py +++ b/src/isodate/duration.py @@ -38,7 +38,7 @@ def max_days_in_month(year, month): return 28 -class Duration(object): +class Duration: """ A class which represents a duration. -- cgit v1.2.1