Skip to content

Commit 0dd6303

Browse files
change: Drop Python 3.6 support (#645)
* Drop support for Python 3.6 * Fix 3.10 * update readme
1 parent 78d2e44 commit 0dd6303

File tree

6 files changed

+16
-17
lines changed

6 files changed

+16
-17
lines changed

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
python: [3.6, 3.7, 3.8, 3.9, pypy3]
11+
python: ['3.7', '3.8', '3.9', '3.10', 'pypy3.7']
1212

1313
steps:
14-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v3
1515
- name: Set up Python ${{ matrix.python }}
16-
uses: actions/setup-python@v1
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: ${{ matrix.python }}
1919
- name: Install dependencies
@@ -34,9 +34,9 @@ jobs:
3434
lint:
3535
runs-on: ubuntu-latest
3636
steps:
37-
- uses: actions/checkout@v1
37+
- uses: actions/checkout@v3
3838
- name: Set up Python 3.7
39-
uses: actions/setup-python@v1
39+
uses: actions/setup-python@v4
4040
with:
4141
python-version: 3.7
4242
- name: Install dependencies

.github/workflows/nightly.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ jobs:
2929

3030
steps:
3131
- name: Checkout source for staging
32-
uses: actions/checkout@v2
32+
uses: actions/checkout@v3
3333
with:
3434
ref: ${{ github.event.client_payload.ref || github.ref }}
3535

3636
- name: Set up Python
37-
uses: actions/setup-python@v1
37+
uses: actions/setup-python@v4
3838
with:
39-
python-version: 3.6
39+
python-version: 3.7
4040

4141
- name: Install dependencies
4242
run: |

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545
ref: ${{ github.event.client_payload.ref || github.ref }}
4646

4747
- name: Set up Python
48-
uses: actions/setup-python@v1
48+
uses: actions/setup-python@v4
4949
with:
50-
python-version: 3.6
50+
python-version: 3.7
5151

5252
- name: Install dependencies
5353
run: |

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ information on using pull requests.
8585

8686
### Initial Setup
8787

88-
You need Python 3.6+ to build and test the code in this repo.
88+
You need Python 3.7+ to build and test the code in this repo.
8989

9090
We recommend using [pip](https://pypi.python.org/pypi/pip) for installing the necessary tools and
9191
project dependencies. Most recent versions of Python ship with pip. If your development environment

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ requests, code review feedback, and also pull requests.
4343

4444
## Supported Python Versions
4545

46-
We currently support Python 3.6+. However, Python 3.6 support is deprecated,
47-
and developers are strongly advised to use Python 3.7 or higher. Firebase
46+
We currently support Python 3.7+. Firebase
4847
Admin Python SDK is also tested on PyPy and
4948
[Google App Engine](https://cloud.google.com/appengine/) environments.
5049

setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323

2424
(major, minor) = (sys.version_info.major, sys.version_info.minor)
25-
if major != 3 or minor < 6:
26-
print('firebase_admin requires python >= 3.6', file=sys.stderr)
25+
if major != 3 or minor < 7:
26+
print('firebase_admin requires python >= 3.7', file=sys.stderr)
2727
sys.exit(1)
2828

2929
# Read in the package metadata per recommendations from:
@@ -58,16 +58,16 @@
5858
keywords='firebase cloud development',
5959
install_requires=install_requires,
6060
packages=['firebase_admin'],
61-
python_requires='>=3.6',
61+
python_requires='>=3.7',
6262
classifiers=[
6363
'Development Status :: 5 - Production/Stable',
6464
'Intended Audience :: Developers',
6565
'Topic :: Software Development :: Build Tools',
6666
'Programming Language :: Python :: 3',
67-
'Programming Language :: Python :: 3.6',
6867
'Programming Language :: Python :: 3.7',
6968
'Programming Language :: Python :: 3.8',
7069
'Programming Language :: Python :: 3.9',
70+
'Programming Language :: Python :: 3.10',
7171
'License :: OSI Approved :: Apache Software License',
7272
],
7373
)

0 commit comments

Comments
 (0)