Skip to content

Commit

Permalink
updating module (#9)
Browse files Browse the repository at this point in the history
* updating module

* set alias

* add publish action

* Update version

* Update publish.yaml

---------

Co-authored-by: tchilcutt <tchilcutt@fool.com>
  • Loading branch information
Tyler Satre and tchilcutt authored May 9, 2024
1 parent 31496bf commit cc3e752
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Python CI

on:
workflow_dispatch:

jobs:
package_repository:
runs-on: fool-runners
steps:
- name: Assume role
with:
role-to-assume: arn:aws:iam::653197303645:role/tmf/github-runner-role
aws-region: us-east-1
uses: aws-actions/configure-aws-credentials@v4

- name: set_vars
id: set_vars
shell: bash
run: |
CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token --domain tmf --query authorizationToken --output text)
echo "token=${CODEARTIFACT_AUTH_TOKEN}" >> $GITHUB_OUTPUT
- name: Checkout code
uses: actions/checkout@v4
# with:
# fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install python dependencies
run: |
pip install -U pip
pip install .
pip install build
pip install setuptools_scm
pip install twine
- name: Upload package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
run: |
python -m build --sdist --wheel --outdir dist/ .
twine upload --skip-existing --repository-url https://tmf-653197303645.d.codeartifact.us-east-1.amazonaws.com/pypi/fool-python/ -u aws -p ${{needs.package_repository.outputs.codeartifact_auth_token}} dist/*
2 changes: 1 addition & 1 deletion django_saml2_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.template import TemplateDoesNotExist
from django.utils.http import is_safe_url
from django.utils.http import url_has_allowed_host_and_scheme as is_safe_url
from django.views.decorators.csrf import csrf_exempt
from pkg_resources import parse_version
import jwt
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
setup(
name='django_saml2_auth',

version='2.3.9',
version='2.3.10',

description='Django SAML2 Authentication Made Easy. Easily integrate with SAML2 SSO identity providers like Okta',
long_description=long_description,
Expand Down

0 comments on commit cc3e752

Please sign in to comment.