Skip to content

Commit d3293b2

Browse files
authored
Merge pull request #171 from fosslight/develop
Change the minimum Python version to 3.10
2 parents 6cdb006 + 364da5b commit d3293b2

File tree

7 files changed

+13
-21
lines changed

7 files changed

+13
-21
lines changed

.github/workflows/publish-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ jobs:
7070
- uses: actions/[email protected]
7171
with:
7272
ref: main
73-
- name: Set up Python 3.8
73+
- name: Set up Python 3.11
7474
uses: actions/setup-python@v4
7575
with:
76-
python-version: '3.8'
76+
python-version: '3.11'
7777
- name: Install dependencies
7878
run: |
7979
python -m pip install --upgrade pip
@@ -93,7 +93,7 @@ jobs:
9393
asset_content_type: ${{ matrix.ASSET_MIME}}
9494

9595
deploy:
96-
runs-on: ubuntu-20.04
96+
runs-on: ubuntu-latest
9797
needs: build
9898
steps:
9999
- uses: actions/[email protected]
@@ -102,7 +102,7 @@ jobs:
102102
- name: Set up Python
103103
uses: actions/setup-python@v4
104104
with:
105-
python-version: '3.8'
105+
python-version: '3.11'
106106
- name: Install dependencies
107107
run: |
108108
python -m pip install --upgrade pip

.github/workflows/pull-request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
TARGET: ubuntu
2424
CMD_BUILD: >
2525
tox -e ubuntu
26-
OUT_FILE_NAME: fosslight_bin_ubuntu18
26+
OUT_FILE_NAME: fosslight_bin_ubuntu
2727
ASSET_MIME: application/octet-stream
2828
- os: windows-latest
2929
TARGET: windows
@@ -36,10 +36,10 @@ jobs:
3636
ASSET_MIME: application/vnd.microsoft.portable-executable
3737
steps:
3838
- uses: actions/checkout@v3
39-
- name: Set up Python 3.8
39+
- name: Set up Python 3.11
4040
uses: actions/setup-python@v4
4141
with:
42-
python-version: '3.8'
42+
python-version: '3.11'
4343
- name: Install dependencies
4444
run: |
4545
python -m pip install --upgrade pip

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tox
2-
flake8==3.9.2
2+
flake8
33
pytest
44
pytest-cov
55
pytest-flake8

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
classifiers=[
4747
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
4848
"Programming Language :: Python :: 3",
49-
"Programming Language :: Python :: 3.6",
50-
"Programming Language :: Python :: 3.7",
51-
"Programming Language :: Python :: 3.8",
52-
"Programming Language :: Python :: 3.9"],
49+
"Programming Language :: Python :: 3.10",
50+
"Programming Language :: Python :: 3.11",
51+
"Programming Language :: Python :: 3.12"],
52+
python_requires='>=3.10,<3.13',
5353
install_requires=required,
5454
package_data={
5555
_PACKAGE_NAME: [

src/fosslight_prechecker/_add.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ def is_exclude_dir(dir_path: str) -> Optional[bool]:
257257

258258

259259
def get_spdx_license_list():
260-
global spdx_licenses
261260
try:
262261
success, error_msg, licenses = get_spdx_licenses_json()
263262
if success is False:

src/fosslight_prechecker/_precheck.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838

3939
def exclude_untracked_files(path: str) -> None:
40-
global DEFAULT_EXCLUDE_EXTENSION_FILES
4140
try:
4241
cmd_result = subprocess.check_output(['git', 'ls-files', '-o'], universal_newlines=True)
4342
cmd_result = cmd_result.split('\n')
@@ -51,7 +50,6 @@ def exclude_untracked_files(path: str) -> None:
5150

5251

5352
def exclude_gitignore_files(path: str) -> None:
54-
global DEFAULT_EXCLUDE_EXTENSION_FILES
5553
try:
5654
root_path = VCSStrategyGit.find_root(os.getcwd())
5755
if root_path:
@@ -89,7 +87,6 @@ def exclude_git_related_files(path: str) -> None:
8987

9088

9189
def find_oss_pkg_info_and_exclude_file(path: str, abs_path_to_exclude: List) -> List[str]:
92-
global DEFAULT_EXCLUDE_EXTENSION_FILES
9390
oss_pkg_info = []
9491
git_present = shutil.which("git")
9592

@@ -140,7 +137,6 @@ def find_oss_pkg_info_and_exclude_file(path: str, abs_path_to_exclude: List) ->
140137

141138

142139
def create_reuse_dep5_file(path: str) -> Tuple[bool, str, str]:
143-
global DEFAULT_EXCLUDE_EXTENSION_FILES
144140
# Create .reuse/dep5 for excluding directories from reuse.
145141
_DEFAULT_CONFIG_PREFIX = "Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\nUpstream-Name: \
146142
reuse\nUpstream-Contact: Carmen Bianca Bakker <[email protected]>\nSource: https://github.com/fsfe/reuse-tool\n"
@@ -201,8 +197,6 @@ def remove_reuse_dep5_file(
201197

202198

203199
def precheck_for_files(path: str, files: List[str]) -> Tuple[List[str], List[str], Project]:
204-
global DEFAULT_EXCLUDE_EXTENSION_FILES
205-
206200
missing_license_list = []
207201
missing_copyright_list = []
208202

@@ -287,7 +281,6 @@ def filter_missing_list(missing_list: List[str], abs_path_to_exclude: List) -> L
287281

288282

289283
def dump_error_msg(error_msg: str, exit=False) -> None:
290-
global error_items
291284
error_items.append(error_msg)
292285
if exit:
293286
logger.error(error_msg)

src/fosslight_prechecker/_result_html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import os
66
from reuse import report
77
from reuse.project import Project
8-
from fosslight_prechecker._constant import HTML_FORMAT_PREFIX, HTML_CELL_PREFIX, HTML_FORMAT_SUFFIX, HTML_EXPAND_PREFIX,\
8+
from fosslight_prechecker._constant import HTML_FORMAT_PREFIX, HTML_CELL_PREFIX, HTML_FORMAT_SUFFIX, HTML_EXPAND_PREFIX, \
99
HTML_COMPLIANCE_SUFFIX, HTML_RESULT_PRINT_LIMIT, HTML_RESULT_EXPAND_LIMIT, HTML_CELL_HEAD_ROW
1010
from typing import Any
1111

0 commit comments

Comments
 (0)