From 30b66b2b87fb965a4b2d82d6989a5680e59e9c85 Mon Sep 17 00:00:00 2001 From: Carl Simon Adorf Date: Wed, 1 Jun 2022 17:07:31 +0200 Subject: [PATCH] Drop support for Python 3.7. --- .github/workflows/ci.yml | 2 +- .pre-commit-config.yaml | 6 ++++++ marketplace/__init__.py | 1 - marketplace/version.py | 1 - setup.cfg | 3 +-- setup.py | 1 - tests/conftest.py | 1 - tests/test_core.py | 1 - 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf0ddf1..8b30215 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.7', '3.8', '3.9', '3.10'] + python-version: ['3.8', '3.9', '3.10'] steps: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fc1ee77..1488b92 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,3 +41,9 @@ repos: hooks: - id: isort args: [--profile, black, --filter-files] + + - repo: https://github.com/asottile/pyupgrade + rev: v2.32.1 + hooks: + - id: pyupgrade + args: [--py38-plus] diff --git a/marketplace/__init__.py b/marketplace/__init__.py index fc9b4eb..60d868d 100644 --- a/marketplace/__init__.py +++ b/marketplace/__init__.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- """Software Development Toolkit to communicate with the Materials MarketPlace platform. diff --git a/marketplace/version.py b/marketplace/version.py index cbe0544..3cfa56b 100644 --- a/marketplace/version.py +++ b/marketplace/version.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- """This module contains project version information. diff --git a/setup.cfg b/setup.cfg index 8552016..0274492 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,7 +14,6 @@ classifiers = License :: OSI Approved :: MIT License Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 @@ -24,7 +23,7 @@ classifiers = packages = find: install_requires = requests~=2.26.0 -python_requires = >=3.7 +python_requires = >=3.8 [options.extras_require] dev = diff --git a/setup.py b/setup.py index 59b746b..5948248 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,3 @@ -# -*- coding: utf8 -*- """This file is required for editable installs of the package.""" from setuptools import setup diff --git a/tests/conftest.py b/tests/conftest.py index 333363f..0391062 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- """.. currentmodule:: conftest. diff --git a/tests/test_core.py b/tests/test_core.py index 10dcc3a..ab9e6eb 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- """.. currentmodule:: test_core.