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
mondeja committed Jan 3, 2023
1 parent 1964832 commit 3cffc0a
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 46 deletions.
6 changes: 0 additions & 6 deletions .bumpversion.cfg

This file was deleted.

14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Expand Up @@ -16,15 +16,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 @@ -47,8 +47,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 @@ -64,8 +64,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
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit-autoupdate.yml
Expand Up @@ -9,11 +9,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
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yml
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
uses: actions/setup-python@v4
with:
python-version: 3.x
python-version: "3.10"
- name: Run pre-commit
uses: pre-commit/action@v2.0.3
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
19 changes: 1 addition & 18 deletions .pre-commit-config.yaml
Expand Up @@ -4,16 +4,12 @@ repos:
hooks:
- id: pyupgrade
args:
- --py36-plus
- --py37-plus
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: end-of-file-fixer
name: end-of-file-fixer
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.1
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/mondeja/pre-commit-hooks
rev: v1.8.0
hooks:
Expand Down Expand Up @@ -47,19 +43,6 @@ repos:
args:
- -c
- .yamllint
- repo: https://github.com/mondeja/repo-stream
rev: v1.3.1
hooks:
- id: repo-stream
name: upstream-updates
args:
- -config=https://github.com/mondeja/repo-stream-config
- -updater=upstream
- id: repo-stream
name: python-stream-updates
args:
- -config=https://github.com/mondeja/repo-stream-config
- -updater=py-upstream
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.4.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -141,7 +141,7 @@ Lists all available data types for properties for CartoCSS.
[pypi-link]: https://pypi.org/project/cartocss-doc-parser
[pypi-version-image]: https://img.shields.io/pypi/v/cartocss-doc-parser
[pypi-pyversions-image]: https://img.shields.io/pypi/pyversions/cartocss-doc-parser
[tests-image]: https://img.shields.io/github/workflow/status/mondeja/cartocss-doc-parser/Test?logo=github&label=tests
[tests-image]: https://img.shields.io/github/actions/workflow/status/mondeja/cartocss-doc-parser/ci.yml?branch=master&logo=github&label=tests
[tests-link]: https://github.com/mondeja/cartocss-doc-parser/actions?query=workflow%3ATest
[coverage-image]: https://coveralls.io/repos/github/mondeja/cartocss-doc-parser/badge.svg
[coverage-link]: https://coveralls.io/github/mondeja/cartocss-doc-parser
Expand Down
2 changes: 1 addition & 1 deletion cartocss_doc_parser/__init__.py
Expand Up @@ -6,7 +6,7 @@
from bs4 import BeautifulSoup


__version__ = "1.0.0"
__version__ = "2.0.0"
__title__ = "cartocss-doc-parser"
__module__ = sys.modules[__name__]

Expand Down
11 changes: 5 additions & 6 deletions setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = cartocss_doc_parser
version = 1.0.0
version = 2.0.0
description = CartoCSS documentation parser.
long_description = file: README.md
long_description_content_type = text/markdown
Expand All @@ -13,12 +13,11 @@ classifiers =
License :: OSI Approved :: BSD License
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
Topic :: Documentation
Topic :: Internet
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Expand All @@ -27,9 +26,9 @@ classifiers =
[options]
packages = cartocss_doc_parser
install_requires =
beautifulsoup4>=4.9.3
lxml>=4.6.1
python_requires = >=3.6
beautifulsoup4
lxml
python_requires = >=3.7
include_package_data = True

[options.extras_require]
Expand Down

0 comments on commit 3cffc0a

Please sign in to comment.