-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
111 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Tox CI | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Install tox | ||
run: pip install --user tox | ||
|
||
- name: Lint | ||
run: tox -e lint | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install tox | ||
run: pip install --user tox | ||
|
||
- name: Select tox env | ||
id: tox-env | ||
run: echo tox-env=py${{ matrix.python-version }} | tr -d '.' >> ${GITHUB_OUTPUT} | ||
|
||
- name: Test | ||
run: tox -e ${{ steps.tox-env.outputs.tox-env }} | ||
|
||
set_merge_ok: | ||
name: Set Merge OK | ||
if: always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') | ||
needs: | ||
- lint | ||
- test | ||
outputs: | ||
merge_ok: ${{ steps.set_merge_ok.outputs.merge_ok }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: set_merge_ok | ||
run: echo 'merge_ok=true' >> ${GITHUB_OUTPUT} | ||
|
||
merge_ok: | ||
name: Merge OK | ||
if: always() | ||
needs: | ||
- set_merge_ok | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
merge_ok="${{ needs.set_merge_ok.outputs.merge_ok }}" | ||
if [[ "${merge_ok}" == "true" ]]; then | ||
echo "Merge OK" | ||
exit 0 | ||
else | ||
echo "Merge NOT OK" | ||
exit 1 | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
passlib>=1.7.1,<1.8.0 | ||
# passlib can use several libs to provide bcrypt (which is required for htpasswd support), | ||
# but passlib deprecated support for py-bcrypt, a bcrypt lib alternative. | ||
# The [bcrypt] extra ensures we use bcrypt instead of some other lib. | ||
passlib[bcrypt]>=1.7.1,<1.8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,26 +40,28 @@ | |
author='StackStorm, Inc.', | ||
author_email='[email protected]', | ||
url='https://github.com/StackStorm/st2-auth-backend-flat-file', | ||
license='Apache License (2.0)', | ||
download_url='https://github.com/StackStorm/st2-auth-backend-flat-file/tarball/master', | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'License :: OSI Approved :: Apache Software 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', | ||
'Intended Audience :: Developers', | ||
'Environment :: Console', | ||
], | ||
python_requires='>=3.8', | ||
platforms=['Any'], | ||
scripts=[], | ||
provides=['st2auth_flat_file_backend'], | ||
packages=find_packages(), | ||
include_package_data=True, | ||
install_requires=install_reqs, | ||
dependency_links=dep_links, | ||
test_suite='tests', | ||
entry_points={ | ||
'st2auth.backends.backend': [ | ||
'flat_file = st2auth_flat_file_backend.flat_file:FlatFileAuthenticationBackend', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ | |
'FlatFileAuthenticationBackend' | ||
] | ||
|
||
__version__ = '0.2.0' | ||
__version__ = '0.3.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
mock==3.0.5 | ||
nose>=1.3.7 | ||
flake8==7.0.0 | ||
mock==5.1.0 | ||
pep8==1.7.1 | ||
pylint==1.9.4 | ||
st2flake8==0.1.0 | ||
unittest2 | ||
pylint~=3.1.0 | ||
pytest | ||
st2flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
[tox] | ||
envlist = py27,py36,lint | ||
envlist = py38,py39,py310,py311,lint | ||
|
||
[testenv] | ||
deps = -r{toxinidir}/test-requirements.txt | ||
commands = pytest | ||
|
||
[testenv:py27] | ||
basepython = python2.7 | ||
commands = python setup.py test | ||
[testenv:py38] | ||
basepython = python3.8 | ||
|
||
[testenv:py36] | ||
basepython = python3.6 | ||
commands = python setup.py test | ||
[testenv:py39] | ||
basepython = python3.9 | ||
|
||
[testenv:py310] | ||
basepython = python3.10 | ||
|
||
[testenv:py311] | ||
basepython = python3.11 | ||
|
||
[testenv:lint] | ||
deps = -r{toxinidir}/test-requirements.txt | ||
commands = flake8 --config ./lint-configs/python/.flake8 st2auth_flat_file_backend/ | ||
pylint -E --rcfile=./lint-configs/python/.pylintrc st2auth_flat_file_backend/ |