Skip to content

Commit

Permalink
fixed pylint, added pre-commit-config and classifiers for the pypi. 0…
Browse files Browse the repository at this point in the history
….5.5 release
  • Loading branch information
maxtacu committed Mar 19, 2024
1 parent b85b1f8 commit 58d0c0d
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 25 deletions.
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
- --errors-only
- oktaawscli
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changelog
## [0.5.5rc] 2023-03-11
## [0.5.5] 2024-03-19
- Bugfix [#199](https://github.com/okta-awscli/okta-awscli/issues/199) duplicates of data inside config file
- Bump certifi from 2021.10.8 to 2022.12.7
- Bugfix/feature [#141](https://github.com/okta-awscli/okta-awscli/issues/141) require beautifulsoup4 instead of dummy package bs4
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.7-alpine
FROM python:3.9-alpine

WORKDIR /opt/okta-awscli

Expand Down
2 changes: 0 additions & 2 deletions oktaawscli/okta_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from bs4 import BeautifulSoup as bs
from oktaawscli.okta_auth_mfa_base import OktaAuthMfaBase
from oktaawscli.okta_auth_mfa_app import OktaAuthMfaApp
from oktaawscli.util import input


class OktaAuth():
""" Handles auth to Okta and returns SAML assertion """
Expand Down
2 changes: 0 additions & 2 deletions oktaawscli/okta_auth_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import validators


from oktaawscli.util import input

class OktaAuthConfig():
""" Config helper class """
def __init__(self, logger):
Expand Down
15 changes: 0 additions & 15 deletions oktaawscli/util.py

This file was deleted.

2 changes: 1 addition & 1 deletion oktaawscli/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" version string """
__version__ = '0.5.5rc'
__version__ = '0.5.5'
27 changes: 24 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from setuptools import setup, find_packages, os
import sys

here = os.path.abspath(os.path.dirname(__file__))
exec(open(os.path.join(here, 'oktaawscli/version.py')).read())

try:
from oktaawscli import __version__
except SyntaxError as exc:
sys.stderr.write(f"Unable to import oktaawscli ({exc}). Are you running a supported version of Python?\n")
sys.exit(1)

setup(
name='okta-awscli',
Expand All @@ -12,19 +18,34 @@
author='James Hale',
author_email='james@hale.dev',
url='https://github.com/okta-awscli/okta-awscli',
python_requires='>=3.8',
entry_points={
'console_scripts': [
'okta-awscli=oktaawscli.okta_awscli:main',
],
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'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 :: Software Development :: Libraries :: Python Modules',
],
install_requires=[
'requests',
'click',
'beautifulsoup4',
'boto3',
'ConfigParser',
'validators',
],
'validators'],
extras_require={
'U2F': ['python-u2flib-host']
},
Expand Down

1 comment on commit 58d0c0d

@amirjawaidpk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @maxtacu does the aws cli support or will support webauthN/Fido2 MFA?

Please sign in to comment.