Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumped next version 1.1.0rc1 #79

Merged
merged 2 commits into from
Feb 26, 2023
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
8 changes: 4 additions & 4 deletions .github/workflows/prbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10' ]
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]

steps:
- name: Checkout code
Expand All @@ -35,7 +35,7 @@ jobs:
fetch-depth: 0

- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@v3.4.3
uses: trufflesecurity/trufflehog@v3.28.0
with:
path: ./
base: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -64,14 +64,14 @@ jobs:
xvfb-run pytest --cov-report xml --cov=yawsso tests/

- name: Publish coverage to to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
name: yawsso

- name: Publish coverage to CodeClimate
uses: paambaati/codeclimate-action@v3.0.0
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
[![coveralls.io](https://coveralls.io/repos/github/victorskl/yawsso/badge.svg?branch=main)](https://coveralls.io/github/victorskl/yawsso?branch=main)
[![codeclimate - Test Coverage](https://api.codeclimate.com/v1/badges/44dd1cbae44465118742/test_coverage)](https://codeclimate.com/github/victorskl/yawsso/test_coverage)
[![codeclimate - Maintainability](https://api.codeclimate.com/v1/badges/44dd1cbae44465118742/maintainability)](https://codeclimate.com/github/victorskl/yawsso/maintainability)
[![lgtm - Language grade: Python](https://img.shields.io/lgtm/grade/python/g/victorskl/yawsso.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/victorskl/yawsso/context:python)
[![lgtm - Total alerts](https://img.shields.io/lgtm/alerts/g/victorskl/yawsso.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/victorskl/yawsso/alerts/)
[![snyk](https://snyk.io/advisor/python/yawsso/badge.svg)](https://snyk.io/advisor/python/yawsso)
[![kandi](https://img.shields.io/badge/kandi-X--Ray%20Report-ff69b4)](https://kandi.openweaver.com/python/victorskl/yawsso)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/yawsso?style=flat)](https://pypistats.org/packages/yawsso)
Expand All @@ -22,7 +20,7 @@ Yet Another AWS SSO - sync up AWS CLI v2 SSO login session to legacy CLI v1 cred

## Prerequisite

- Required `Python >= 3.6`
- Required `Python >= 3.7`
- Required [AWS CLI v2](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html)
- Assume you have already setup [AWS SSO](https://aws.amazon.com/single-sign-on/) for your organization

Expand Down Expand Up @@ -94,6 +92,7 @@ yawsso -h
- `awsbw -L -P dev`
- `sqsmover -s main-dlq -d main-queue`
- `ecs-cli ps --cluster my-cluster`
- `awscurl -H "Accept: application/json" --profile dev --region ap-southeast-2 "https://api..."`

## Additional Use Cases

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
"ggshield",
],
},
python_requires=">=3.6",
python_requires=">=3.7",
)
3 changes: 3 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ def test_login_command_default(self):
when(cli.utils).Poll(contains('aws sso login'), ...).thenReturn(mock_poll)
when(mock_poll).start(...).thenReturn(mock_poll)
when(mock_poll).resolve(...).thenReturn(True)
when(os).getenv(...).thenReturn('default')
with ArgvContext(program, '-t', 'login'):
cli.main()
cred = cli.utils.read_config(self.credentials.name)
Expand Down Expand Up @@ -866,6 +867,7 @@ def test_login_command_export_vars(self):
when(cli.utils).Poll(contains('aws sso login'), ...).thenReturn(mock_poll)
when(mock_poll).start(...).thenReturn(mock_poll)
when(mock_poll).resolve(...).thenReturn(True)
when(os).getenv(...).thenReturn('default')
with ArgvContext(program, '-t', 'login', '-e'), self.assertRaises(SystemExit) as x:
cli.main()
self.assertEqual(x.exception.code, 0)
Expand All @@ -883,6 +885,7 @@ def test_login_command_export_vars_2(self):
when(cli.utils).Poll(contains('aws sso login'), ...).thenReturn(mock_poll)
when(mock_poll).start(...).thenReturn(mock_poll)
when(mock_poll).resolve(...).thenReturn(True)
when(os).getenv(...).thenReturn('default')
with ArgvContext(program, '-t', '-e', 'login'), self.assertRaises(SystemExit) as x:
cli.main()
self.assertEqual(x.exception.code, 0)
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tox]
envlist = py{36,37,38,39,310}
envlist = py{37,38,39,310,311}
skip_missing_interpreters=True

[testenv]
passenv = GITHUB_* COVERALLS_*
;passenv = GITHUB_* COVERALLS_*
deps =
.[test]
commands =
Expand Down
2 changes: 1 addition & 1 deletion yawsso/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path

# versioning follow PEP440
__version__ = VERSION = '1.0.1' # pragma: no cover
__version__ = VERSION = '1.1.0rc1' # pragma: no cover

PROGRAM = 'yawsso' # pragma: no cover

Expand Down