Skip to content

Commit 07336ef

Browse files
leouiedahugovk
andauthored
Drop support for Python 3.6 (#299)
Update the `python_requires` field and metadata in `setup.cfg`. Bump the minimum version tested on CI to 3.7 and the Python requirement in doc/install.rst. From pyupgrade, removed an unnecessary list creation in make_registry. Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent d51ab4f commit 07336ef

File tree

7 files changed

+9
-13
lines changed

7 files changed

+9
-13
lines changed

.github/workflows/docs.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
runs-on: ubuntu-latest
3131
env:
3232
REQUIREMENTS: env/requirements-build.txt env/requirements-docs.txt
33-
PYTHON: 3.9
3433

3534
steps:
3635
# Cancel any previous run of the test job
@@ -61,7 +60,7 @@ jobs:
6160
- name: Setup Python
6261
uses: actions/setup-python@v2
6362
with:
64-
python-version: ${{ env.PYTHON }}
63+
python-version: "3.10"
6564

6665
- name: Collect requirements
6766
run: |

.github/workflows/pypi.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Setup Python
4848
uses: actions/setup-python@v2
4949
with:
50-
python-version: "3.9"
50+
python-version: "3.10"
5151

5252
- name: Install requirements
5353
run: |

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- macos
4545
- windows
4646
python:
47-
- "3.6"
47+
- "3.7"
4848
- "3.10"
4949
dependencies:
5050
- latest

doc/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ There are different ways to install Pooch:
3939
Which Python?
4040
-------------
4141

42-
You'll need **Python >= 3.6**. See :ref:`python-versions` if you
42+
You'll need **Python >= 3.7**. See :ref:`python-versions` if you
4343
require support for older versions.
4444

4545
.. _dependencies:

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
- python==3.9
6+
- python==3.10
77
- pip
88
# Run
99
- requests

pooch/hashes.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,9 @@ def make_registry(directory, output, recursive=True):
208208
pattern = "*"
209209

210210
files = sorted(
211-
[
212-
str(path.relative_to(directory))
213-
for path in directory.glob(pattern)
214-
if path.is_file()
215-
]
211+
str(path.relative_to(directory))
212+
for path in directory.glob(pattern)
213+
if path.is_file()
216214
)
217215

218216
hashes = [file_hash(str(directory / fname)) for fname in files]

setup.cfg

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ classifiers =
2323
Topic :: Scientific/Engineering
2424
Topic :: Software Development :: Libraries
2525
Programming Language :: Python :: 3 :: Only
26-
Programming Language :: Python :: 3.6
2726
Programming Language :: Python :: 3.7
2827
Programming Language :: Python :: 3.8
2928
Programming Language :: Python :: 3.9
@@ -39,7 +38,7 @@ project_urls =
3938
zip_safe = True
4039
include_package_data = True
4140
packages = find:
42-
python_requires = >=3.6
41+
python_requires = >=3.7
4342
setup_requires =
4443
install_requires =
4544
appdirs>=1.3.0

0 commit comments

Comments
 (0)