Skip to content

Commit

Permalink
Drop Python 3.7 support. (#4797)
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez authored Mar 10, 2023
1 parent 6aafd4a commit 5298354
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
fail-fast: false
matrix:
# test all lower versions (w/ stable conda) and upper version (w/ canary conda)
python-version: ['3.7', '3.8', '3.9']
python-version: ['3.8', '3.9']
conda-version: [release]
test-type: [serial, parallel]
include:
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
fail-fast: false
matrix:
# test lower version (w/ stable conda) and upper version (w/ canary conda)
python-version: ['3.7']
python-version: ['3.8']
conda-version: [release]
test-type: [serial, parallel]
include:
Expand Down Expand Up @@ -279,7 +279,7 @@ jobs:
fail-fast: false
matrix:
# test lower version (w/ stable conda) and upper version (w/ canary conda)
python-version: ['3.7']
python-version: ['3.8']
conda-version: [release]
test-type: [serial, parallel]
include:
Expand Down
2 changes: 1 addition & 1 deletion conda_build/cli/main_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def get_render_parser():
nargs=1,
action=ParseYAMLArgument,
help=('Variants to extend the build matrix. Must be a valid YAML instance, '
'such as "{python: [3.6, 3.7]}"'))
'such as "{python: [3.8, 3.9]}"'))
add_parser_channels(p)
return p

Expand Down
2 changes: 1 addition & 1 deletion conda_build/skeletons/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def add_parser(repos):
action='store',
default=default_python,
help="""Version of Python to use to run setup.py. Default is %(default)s.""",
choices=['2.7', '3.5', '3.6', '3.7', '3.8'],
choices=['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11'],
)

pypi.add_argument(
Expand Down
19 changes: 19 additions & 0 deletions news/4797-drop-python37-support
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* <news item>

### Deprecations

* Drop Python 3.7 support. (#4796)

### Docs

* <news item>

### Other

* <news item>
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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"
Expand Down
1 change: 0 additions & 1 deletion tests/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,6 @@ def _build_test_index(workdir):
"""
Copy repodata.json, packages to workdir for testing.
"""

# Python 3.7 workaround "no dirs_exist_ok flag"
index_hotfix_pkgs = join(here, "index_hotfix_pkgs")
for path in os.scandir(index_hotfix_pkgs):
Expand Down

0 comments on commit 5298354

Please sign in to comment.