Skip to content

Commit

Permalink
Drop support for Python < 3.7 (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Jan 4, 2023
1 parent fb697f8 commit 2290ab5
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 54 deletions.
6 changes: 0 additions & 6 deletions .bumpversion.cfg

This file was deleted.

26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ jobs:
- 3.8
- 3.9
- '3.10'
- '3.11'
platform:
- ubuntu-latest
- macos-latest
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 @@ -36,21 +37,20 @@ jobs:
pip list
- name: Test with pytest
run: pytest -svv
#- name: Coveralls
#run: coveralls
#env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COVERALLS_SERVICE_NAME: github

- name: Coveralls
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github

build-sdist:
if: startsWith(github.ref, 'refs/tags/')
needs: test
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 @@ -66,8 +66,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 @@ -104,7 +104,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 @@ -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
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
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
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
31 changes: 8 additions & 23 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,64 +1,49 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
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
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.1
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 22.12.0
hooks:
- id: black
language_version: python3
files: \.py$
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
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.26.3
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
- id: repo-stream
args:
- -config=https://github.com/mondeja/repo-stream-config
- -updater=py-upstream
- repo: https://github.com/mondeja/pre-commit-hooks
rev: v1.8.0
hooks:
- id: dev-extras-required
- id: root-editorconfig-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 blender_downloader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
__author__ = "mondeja"
__description__ = "Multiplatform Blender portable release downloader script."
__title__ = "blender-downloader"
__version__ = "0.0.25"
__version__ = "0.1.0"

QUIET = False

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 = blender_downloader
version = 0.0.25
version = 0.1.0
description = Multiplatorm Blender downloader.
long_description = file: README.md
long_description_content_type = text/markdown
Expand All @@ -15,11 +15,11 @@ 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 = blender_downloader
Expand All @@ -28,7 +28,7 @@ install_requires =
diskcache
tqdm
dmglib>=0.9.3;sys.platform == "darwin"
python_requires = >=3.6
python_requires = >=3.7

[options.entry_points]
console_scripts =
Expand Down
1 change: 0 additions & 1 deletion tests/test_discover_version_number_by_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def test_discover_version_number_by_identifier():
stable_version = discover_version_number_by_identifier("stable")
sys.stdout.write(f"Stable release: {stable_version}\n")
assert re.match(NUMBER_VERSION_REGEX, stable_version)
assert BlenderVersion(stable_version) >= BlenderVersion(lts_version)

nightly_version = discover_version_number_by_identifier("nightly")
sys.stdout.write(f"Nightly/daily release: {nightly_version}\n")
Expand Down

0 comments on commit 2290ab5

Please sign in to comment.