Skip to content

Commit

Permalink
[REM] drop support for py37
Browse files Browse the repository at this point in the history
It is now end of life and there are extra issues supporting it.
  • Loading branch information
oerp-odoo committed May 20, 2024
1 parent 2302cd1 commit c144e80
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
python: [3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
Expand Down
1 change: 1 addition & 0 deletions git_trunk/git_trunk_commands.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Git Trunk based workflow helper commands."""
from __future__ import annotations
import re
import os
import pathlib
Expand Down
9 changes: 8 additions & 1 deletion git_trunk/tests/test_git_trunk_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
FINISH_SECTION,
RELEASE_SECTION,
SQUASH_SECTION,
SUBMODULE_UPDATE_SECTION,
)
from . import common

Expand Down Expand Up @@ -83,6 +84,7 @@ def test_02_get_config(self):
"""
self.git_trunk_init._init_cfg[BASE_SECTION]['trunkbranch'] = '12.0'
self.git_trunk_init._init_cfg[RELEASE_SECTION]['versionprefix'] = '1'
self.git_trunk_init._init_cfg[SUBMODULE_UPDATE_SECTION]['pathspec'] = 'abc'
self.git_trunk_init.run()
trunk_init = GitTrunkInit(
repo_path=self.dir_local.name, log_level=common.LOG_LEVEL)
Expand Down Expand Up @@ -110,7 +112,12 @@ def test_02_get_config(self):
SQUASH_SECTION: {
'edit_squash_message': False,
'force_push_squash': True
}
},
SUBMODULE_UPDATE_SECTION: {
'path_spec': 'abc',
'depth': 0,
'single_branch': False,
},
}
)

Expand Down
1 change: 1 addition & 0 deletions git_trunk/tests/test_git_trunk_submodule_update.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import os
from collections import namedtuple
import pathlib
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
scripts=['bin/git-trunk'],
maintainer='Andrius Laukavičius',
maintainer_email='[email protected]',
python_requires='>=3.5',
python_requires='>=3.8',
classifiers=[
'Environment :: Other Environment',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,py38,py39,py310,py311,py312,lint
envlist = py38,py39,py310,py311,py312,lint

[testenv]
extras = test
Expand Down

0 comments on commit c144e80

Please sign in to comment.