Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: 2.1

orbs:
browser-tools: circleci/browser-tools@1.4.3
browser-tools: circleci/browser-tools@1.4.6

jobs:
python-36: &test-template
python-38: &test-template
docker:
- image: cimg/python:3.6-node
- image: cimg/python:3.8-node
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
Expand Down Expand Up @@ -47,10 +47,10 @@ jobs:
. venv/bin/activate
pytest --headless

python-311:
python-312:
<<: *test-template
docker:
- image: cimg/python:3.6-node
- image: cimg/python:3.12-node
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
Expand All @@ -60,5 +60,5 @@ jobs:
workflows:
test:
jobs:
- python-36
- python-311
- python-38
- python-312
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- Uses flask `before_request` to protect all endpoints rather than protecting routes present at instantiation time
- Allows user to use user-defined authorization python function instead of a dictionary/list of usernames and passwords
- Raise minimum Python version to 3.8, dropping support for 3.6 and 3.7

## [2.0.0] - 2023-03-10
### Removed
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ password:your_pypi_password

3. **Create a Python Build**
```
$ rm -rf dist build
$ python setup.py sdist bdist_wheel
```

Expand Down
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ License: MIT

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

For local testing, install and use tox:

```
TOX_PYTHON_27=python2.7 TOX_PYTHON_36=python3.6 tox
```

Or create a virtualenv, install the dev requirements, and run individual
For local testing, create a virtualenv, install the dev requirements, and run individual
tests or test classes:

```
Expand All @@ -22,7 +16,7 @@ pip install -r dev-requirements.txt
python -k ba001
```

Note that Python 3.6 or greater is required.
Note that Python 3.8 or greater is required.

## Usage

Expand Down Expand Up @@ -57,4 +51,4 @@ def authorization_function(username, password):

app = Dash(__name__)
BasicAuth(app, auth_func = authorization_function)
```
```
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'dash>=1.1.1',
"flask",
],
python_requires=">=3.6",
python_requires=">=3.8",
include_package_data=True,
url='https://plotly.com/dash',
classifiers=[
Expand All @@ -36,12 +36,11 @@
'License :: OSI Approved :: MIT License',
"Programming Language :: Python",
'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',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Database :: Front-Ends',
'Topic :: Office/Business :: Financial :: Spreadsheet',
'Topic :: Scientific/Engineering :: Visualization',
Expand Down