diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 6a299359..102ae668 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.9', '3.10', '3.11', '3.12'] services: redis: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d097fc40..e31b06a6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,8 +29,7 @@ repos: rev: v3.15.0 hooks: - id: pyupgrade - args: - ['--keep-runtime-typing', '--py3-plus', '--py36-plus', '--py37-plus'] + args: ['--keep-runtime-typing', '--py39-plus'] - repo: https://github.com/asottile/yesqa rev: v1.5.0 hooks: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 34f2ecd8..00000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: python -python: - - '3.7' - - '3.8' - - '3.9' - - '3.10' -# command to install dependencies -install: - - pip install -r test_requirements.txt - - python setup.py install -# command to run tests -script: pytest -after_success: - - coveralls -notifications: - email: false - slack: - - hasgeek:HDCoMDj3T4ICB59qFFVorCG8 - - friendsofhasgeek:3bLViYSzhfaThJovFYCVD3fX diff --git a/pyproject.toml b/pyproject.toml index 36dd7e09..c25fea87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ build-backend = 'setuptools.build_meta' name = 'baseframe' description = 'Baseframe for Hasgeek projects' readme = 'README.rst' -requires-python = '>=3.7' +requires-python = '>=3.9' keywords = ['baseframe', 'flask', 'framework', 'web'] license = { file = 'LICENSE.txt' } dynamic = ['version'] @@ -19,11 +19,10 @@ urls = { repository = 'https://github.com/hasgeek/baseframe' } classifiers = [ 'Programming Language :: Python', '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', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Intended Audience :: Developers', @@ -72,7 +71,7 @@ where = ['src'] [tool.black] line-length = 88 -target_version = ['py37'] +target_version = ['py39'] skip-string-normalization = true include = '\.pyi?$' exclude = ''' @@ -261,8 +260,8 @@ line-length = 88 # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" -# Target Python 3.7 -target-version = "py37" +# Target Python 3.9 +target-version = "py39" [tool.ruff.mccabe] # Unlike Flake8, default to a complexity level of 10.