Skip to content

Commit

Permalink
Merge pull request #16 from thorwolpert/v0.5
Browse files Browse the repository at this point in the history
update to poetry
  • Loading branch information
thorwolpert authored Apr 25, 2024
2 parents fc60d43 + 8529232 commit 29a8cbc
Show file tree
Hide file tree
Showing 15 changed files with 645 additions and 184 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ jobs:
version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
poetry install
- name: Test with pytest
run: |
pip install -r requirements/dev.txt
pytest tests/*
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
37 changes: 29 additions & 8 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
Copyright 2018 Thor Wolpert

Licensed under the Apache License, Version 2.0 (the "License");

Licensed under the BSD 3 Clause License, (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
The template for the license can be found here
https://opensource.org/license/bsd-3-clause/

Redistribution and use in source and binary forms,
with or without modification, are permitted provided that the
following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

http://www.apache.org/licenses/LICENSE-2.0
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ if __name__ == "__main__":
app.run()

```
## Thanks
The following folks have provided help, feedback, PRs, etc:
- Jamie Lennox
- James Hollinger

## TODO
- add tests
Expand Down
576 changes: 576 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[tool.poetry]
name = "flask-jwt-oidc"
version = "0.5.0"
description = "Opinionated flask oidc client"
authors = [
"thor wolpert <[email protected]>"
]
license = "BSD 3-Clause"
readme = "README.md"
packages = [{include = "flask_jwt_oidc", from = "src"}]

[project.urls]
Homepage = "https://github.com/thorwolpert/flask-jwt-oidc"
Issues = "https://github.com/thorwolpert/flask-jwt-oidc/issues"

[tool.poetry.dependencies]
python = "^3.9"
Flask = "^2"
cachelib = "^0.13.0"
python-jose = "^3.3.0"
six = "^1.16.0"

[tool.poetry.group.dev.dependencies]
pytest = "^8.1.1"
python-dotenv = "^1.0.1"
Flask-Cors = "^4.0.0"
black = "^24.4.1"
zimports = "^0.6.1"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

24 changes: 0 additions & 24 deletions requirements/dev.txt

This file was deleted.

3 changes: 0 additions & 3 deletions requirements/prod.nover.txt

This file was deleted.

4 changes: 0 additions & 4 deletions requirements/prod.txt

This file was deleted.

43 changes: 0 additions & 43 deletions setup.cfg

This file was deleted.

92 changes: 0 additions & 92 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 29a8cbc

Please sign in to comment.