Skip to content

Commit 5e5dc5f

Browse files
authored
Merge pull request #144 from plotly/py38
Raise minimum Python version to 3.8
2 parents 58bdcb7 + 3fc89e9 commit 5e5dc5f

File tree

5 files changed

+14
-19
lines changed

5 files changed

+14
-19
lines changed

.circleci/config.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
version: 2.1
22

33
orbs:
4-
browser-tools: circleci/[email protected].3
4+
browser-tools: circleci/[email protected].6
55

66
jobs:
7-
python-36: &test-template
7+
python-38: &test-template
88
docker:
9-
- image: cimg/python:3.6-node
9+
- image: cimg/python:3.8-node
1010
auth:
1111
username: dashautomation
1212
password: $DASH_PAT_DOCKERHUB
@@ -47,10 +47,10 @@ jobs:
4747
. venv/bin/activate
4848
pytest --headless
4949
50-
python-311:
50+
python-312:
5151
<<: *test-template
5252
docker:
53-
- image: cimg/python:3.6-node
53+
- image: cimg/python:3.12-node
5454
auth:
5555
username: dashautomation
5656
password: $DASH_PAT_DOCKERHUB
@@ -60,5 +60,5 @@ jobs:
6060
workflows:
6161
test:
6262
jobs:
63-
- python-36
64-
- python-311
63+
- python-38
64+
- python-312

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
### Changed
99
- Uses flask `before_request` to protect all endpoints rather than protecting routes present at instantiation time
1010
- Allows user to use user-defined authorization python function instead of a dictionary/list of usernames and passwords
11+
- Raise minimum Python version to 3.8, dropping support for 3.6 and 3.7
1112

1213
## [2.0.0] - 2023-03-10
1314
### Removed

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ password:your_pypi_password
2929

3030
3. **Create a Python Build**
3131
```
32+
$ rm -rf dist build
3233
$ python setup.py sdist bdist_wheel
3334
```
3435

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@ License: MIT
66

77
Tests: [![CircleCI](https://circleci.com/gh/plotly/dash-auth.svg?style=svg)](https://circleci.com/gh/plotly/dash-auth)
88

9-
For local testing, install and use tox:
10-
11-
```
12-
TOX_PYTHON_27=python2.7 TOX_PYTHON_36=python3.6 tox
13-
```
14-
15-
Or create a virtualenv, install the dev requirements, and run individual
9+
For local testing, create a virtualenv, install the dev requirements, and run individual
1610
tests or test classes:
1711

1812
```
@@ -22,7 +16,7 @@ pip install -r dev-requirements.txt
2216
python -k ba001
2317
```
2418

25-
Note that Python 3.6 or greater is required.
19+
Note that Python 3.8 or greater is required.
2620

2721
## Usage
2822

@@ -57,4 +51,4 @@ def authorization_function(username, password):
5751

5852
app = Dash(__name__)
5953
BasicAuth(app, auth_func = authorization_function)
60-
```
54+
```

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
'dash>=1.1.1',
2121
"flask",
2222
],
23-
python_requires=">=3.6",
23+
python_requires=">=3.8",
2424
include_package_data=True,
2525
url='https://plotly.com/dash',
2626
classifiers=[
@@ -36,12 +36,11 @@
3636
'License :: OSI Approved :: MIT License',
3737
"Programming Language :: Python",
3838
'Programming Language :: Python :: 3',
39-
'Programming Language :: Python :: 3.6',
40-
'Programming Language :: Python :: 3.7',
4139
'Programming Language :: Python :: 3.8',
4240
'Programming Language :: Python :: 3.9',
4341
'Programming Language :: Python :: 3.10',
4442
'Programming Language :: Python :: 3.11',
43+
'Programming Language :: Python :: 3.12',
4544
'Topic :: Database :: Front-Ends',
4645
'Topic :: Office/Business :: Financial :: Spreadsheet',
4746
'Topic :: Scientific/Engineering :: Visualization',

0 commit comments

Comments
 (0)