Skip to content

Commit

Permalink
Drop support for Python < 3.7 (#118)
Browse files Browse the repository at this point in the history
* Drop support for Python < 3.7

* Update pre-commit hooks
  • Loading branch information
mondeja committed Jan 3, 2023
1 parent 7245691 commit 4b50d4e
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 42 deletions.
6 changes: 0 additions & 6 deletions .bumpversion.cfg

This file was deleted.

16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
strategy:
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
- '3.10'
- '3.11'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python v${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -48,8 +48,8 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python v3.8
with:
python-version: 3.8
Expand All @@ -65,8 +65,8 @@ jobs:
name: Build wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python v3.8
with:
python-version: 3.8
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
- build-wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Get tag metadata
id: tag
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.x
python-version: "3.10"
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit autoupdate
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
python-version: "3.10"
- name: Run pre-commit
uses: pre-commit/action@v2.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
action-update-license-year:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-pg-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
name: Update PostgreSQL releases
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
Expand Down
25 changes: 9 additions & 16 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,63 +1,56 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.3
rev: v3.3.1
hooks:
- id: pyupgrade
args:
- --py36-plus
- --py37-plus
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: end-of-file-fixer
name: end-of-file-fixer
exclude: pgdoc_datatype_parser/pg-releases\.json
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.0.0
rev: v2.2.0
hooks:
- id: setup-cfg-fmt
args:
- --include-version-classifiers
- repo: https://github.com/psf/black
rev: 22.8.0
rev: 22.12.0
hooks:
- id: black
language_version: python3
files: \.py$
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies:
- flake8-print
- flake8-implicit-str-concat
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.11.4
hooks:
- id: isort
args:
- --filter-files
files: \.py$
- repo: https://github.com/adrienverge/yamllint
rev: v1.27.1
rev: v1.28.0
hooks:
- id: yamllint
files: .+\.(yml|yaml)
args:
- -c
- .yamllint
- repo: https://github.com/mondeja/repo-stream
rev: v1.3.1
hooks:
- id: repo-stream
args:
- -config=https://github.com/mondeja/repo-stream-config
- -updater=upstream
- repo: https://github.com/mondeja/pre-commit-hooks
rev: v1.8.0
hooks:
- id: root-editorconfig-required
- id: dev-extras-required
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.4.0
rev: 2.6.2
hooks:
- id: editorconfig-checker
2 changes: 1 addition & 1 deletion pgdoc_datatype_parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def version_info(value):
return tuple(int(i) for i in value.split(".") if i.isdigit())


__version__ = "1.1.12"
__version__ = "2.0.0"
__title__ = "pgdoc-datatype-parser"

PG_RELEASE_MIN_VERSION = (6, 3)
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pgdoc_datatype_parser
version = 1.1.12
version = 2.0.0
description = PostgreSQL documentation data types parser.
long_description = file: README.md
long_description_content_type = text/markdown
Expand All @@ -14,15 +14,15 @@ classifiers =
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
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

[options]
packages = pgdoc_datatype_parser
python_requires = >=3.6
python_requires = >=3.7
package_dir = pgdoc_datatype_parser=pgdoc_datatype_parser
zip_safe = True

Expand Down

0 comments on commit 4b50d4e

Please sign in to comment.