From e4f36969077218e198d05aa4b50fba85fae286f7 Mon Sep 17 00:00:00 2001 From: Ranjan Kumar Patel Date: Sat, 8 Feb 2020 14:37:50 +0530 Subject: [PATCH 01/14] oauth lib --- flask_oauthlib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_oauthlib/__init__.py b/flask_oauthlib/__init__.py index 2f58e5e1..1f8150b8 100644 --- a/flask_oauthlib/__init__.py +++ b/flask_oauthlib/__init__.py @@ -11,7 +11,7 @@ :license: BSD, see LICENSE for more details. """ -__version__ = "0.9.5" +__version__ = "10.0.0" __author__ = "Hsiaoming Yang " __homepage__ = 'https://github.com/lepture/flask-oauthlib' __license__ = 'BSD' From b5dce0d87f2dc15b2f06cd16c48e6c4fcafa46a1 Mon Sep 17 00:00:00 2001 From: Ranjan Kumar Patel Date: Sat, 8 Feb 2020 14:55:16 +0530 Subject: [PATCH 02/14] oauth lib --- flask_oauthlib/provider/oauth1.py | 2 +- flask_oauthlib/provider/oauth2.py | 40 ++++++++++++++++++++----------- 2 files changed, 27 insertions(+), 15 deletions(-) diff --git a/flask_oauthlib/provider/oauth1.py b/flask_oauthlib/provider/oauth1.py index eb5fdba0..ec517e19 100644 --- a/flask_oauthlib/provider/oauth1.py +++ b/flask_oauthlib/provider/oauth1.py @@ -10,7 +10,7 @@ import logging from functools import wraps -from werkzeug import cached_property +from werkzeug.utils import cached_property from flask import request, redirect, url_for from flask import make_response, abort from oauthlib.oauth1 import RequestValidator diff --git a/flask_oauthlib/provider/oauth2.py b/flask_oauthlib/provider/oauth2.py index 23eed415..11da31b8 100644 --- a/flask_oauthlib/provider/oauth2.py +++ b/flask_oauthlib/provider/oauth2.py @@ -8,18 +8,19 @@ :copyright: (c) 2013 - 2014 by Hsiaoming Yang. """ -import os -import logging import datetime +import logging +import os from functools import wraps -from flask import request, url_for + from flask import redirect, abort -from werkzeug import cached_property -from werkzeug.utils import import_string +from flask import request, url_for from oauthlib import oauth2 +from oauthlib.common import add_params_to_uri from oauthlib.oauth2 import RequestValidator, Server -from oauthlib.common import to_unicode, add_params_to_uri -from ..utils import extract_params, decode_base64, create_response +from werkzeug.utils import import_string, cached_property + +from ..utils import extract_params, create_response __all__ = ('OAuth2Provider', 'OAuth2RequestValidator') @@ -155,10 +156,10 @@ def validate_client_id(self, client_id): ) if hasattr(self, '_clientgetter') and \ - hasattr(self, '_tokengetter') and \ - hasattr(self, '_tokensetter') and \ - hasattr(self, '_grantgetter') and \ - hasattr(self, '_grantsetter'): + hasattr(self, '_tokengetter') and \ + hasattr(self, '_tokensetter') and \ + hasattr(self, '_grantgetter') and \ + hasattr(self, '_grantsetter'): usergetter = None if hasattr(self, '_usergetter'): @@ -413,6 +414,7 @@ def authorize(*args, **kwargs): confirm = request.form.get('confirm', 'no') return confirm == 'yes' """ + @wraps(f) def decorated(*args, **kwargs): # raise if server not implemented @@ -472,8 +474,9 @@ def decorated(*args, **kwargs): # denied by user e = oauth2.AccessDeniedError(state=request.values.get('state')) return self._on_exception(e, e.in_uri(redirect_uri)) - + return self.confirm_authorization_request() + return decorated def confirm_authorization_request(self): @@ -502,7 +505,7 @@ def confirm_authorization_request(self): return self._on_exception(e, e.in_uri(self.error_uri)) except oauth2.OAuth2Error as e: log.debug('OAuth2Error: %r', e, exc_info=True) - + # on auth error, we should preserve state if it's present according to RFC 6749 state = request.values.get('state') if state and not e.state: @@ -545,6 +548,7 @@ def token_handler(self, f): def access_token(): return None """ + @wraps(f) def decorated(*args, **kwargs): server = self.server @@ -555,6 +559,7 @@ def decorated(*args, **kwargs): uri, http_method, body, headers, credentials ) return create_response(*ret) + return decorated def revoke_handler(self, f): @@ -574,6 +579,7 @@ def revoke_token(): .. _`RFC7009`: http://tools.ietf.org/html/rfc7009 """ + @wraps(f) def decorated(*args, **kwargs): server = self.server @@ -587,10 +593,12 @@ def decorated(*args, **kwargs): ret = server.create_revocation_response( uri, headers=headers, body=body, http_method=http_method) return create_response(*ret) + return decorated def require_oauth(self, *scopes): """Protect resource with specified scopes.""" + def wrapper(f): @wraps(f) def decorated(*args, **kwargs): @@ -611,7 +619,9 @@ def decorated(*args, **kwargs): return abort(401) request.oauth = req return f(*args, **kwargs) + return decorated + return wrapper @@ -624,6 +634,7 @@ class OAuth2RequestValidator(RequestValidator): :param grantgetter: a function to get grant token :param grantsetter: a function to save grant token """ + def __init__(self, clientgetter, tokengetter, grantgetter, usergetter=None, tokensetter=None, grantsetter=None): self._clientgetter = clientgetter @@ -674,6 +685,7 @@ def client_authentication_required(self, request, *args, **kwargs): .. _`Section 4.1.3`: http://tools.ietf.org/html/rfc6749#section-4.1.3 .. _`Section 6`: http://tools.ietf.org/html/rfc6749#section-6 """ + def is_confidential(client): if hasattr(client, 'is_confidential'): return client.is_confidential @@ -901,7 +913,7 @@ def validate_code(self, client_id, code, client, request, *args, **kwargs): log.debug('Grant not found.') return False if hasattr(grant, 'expires') and \ - datetime.datetime.utcnow() > grant.expires: + datetime.datetime.utcnow() > grant.expires: log.debug('Grant is expired.') return False From 3cf414071c52e6fbceb5a14818132d3077341bc8 Mon Sep 17 00:00:00 2001 From: Tin Nguyen Date: Sun, 16 Aug 2020 13:39:53 +1000 Subject: [PATCH 03/14] fix werkzeug imports error for client.py --- flask_oauthlib/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flask_oauthlib/client.py b/flask_oauthlib/client.py index 3b1cc278..b4497f46 100644 --- a/flask_oauthlib/client.py +++ b/flask_oauthlib/client.py @@ -15,8 +15,9 @@ from functools import wraps from oauthlib.common import to_unicode, PY3, add_params_to_uri from flask import request, redirect, json, session, current_app -from werkzeug import url_quote, url_decode, url_encode -from werkzeug import parse_options_header, cached_property +from werkzeug.urls import url_quote, url_decode, url_encode +from werkzeug.http import parse_options_header +from werkzeug.utils import cached_property from .utils import to_bytes try: from urlparse import urljoin From 2de09a7098ed7ba3c1a921671a37f2d2241db7f9 Mon Sep 17 00:00:00 2001 From: Grey Li Date: Sat, 5 Sep 2020 12:18:23 +0800 Subject: [PATCH 04/14] Fix Werkzeug imports --- flask_oauthlib/provider/oauth1.py | 2 +- flask_oauthlib/provider/oauth2.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/flask_oauthlib/provider/oauth1.py b/flask_oauthlib/provider/oauth1.py index eb5fdba0..ec517e19 100644 --- a/flask_oauthlib/provider/oauth1.py +++ b/flask_oauthlib/provider/oauth1.py @@ -10,7 +10,7 @@ import logging from functools import wraps -from werkzeug import cached_property +from werkzeug.utils import cached_property from flask import request, redirect, url_for from flask import make_response, abort from oauthlib.oauth1 import RequestValidator diff --git a/flask_oauthlib/provider/oauth2.py b/flask_oauthlib/provider/oauth2.py index 23eed415..14a57af2 100644 --- a/flask_oauthlib/provider/oauth2.py +++ b/flask_oauthlib/provider/oauth2.py @@ -14,8 +14,7 @@ from functools import wraps from flask import request, url_for from flask import redirect, abort -from werkzeug import cached_property -from werkzeug.utils import import_string +from werkzeug.utils import import_string, cached_property from oauthlib import oauth2 from oauthlib.oauth2 import RequestValidator, Server from oauthlib.common import to_unicode, add_params_to_uri From 39b452610564ba7eac26c1423d9a7bf5e426557d Mon Sep 17 00:00:00 2001 From: Grey Li Date: Sat, 5 Sep 2020 12:33:40 +0800 Subject: [PATCH 05/14] Change werkzeug.contrib.cache to cachelib --- flask_oauthlib/contrib/cache.py | 4 ++-- requirements.txt | 1 + setup.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/flask_oauthlib/contrib/cache.py b/flask_oauthlib/contrib/cache.py index f8788aa7..6adb62e1 100644 --- a/flask_oauthlib/contrib/cache.py +++ b/flask_oauthlib/contrib/cache.py @@ -1,7 +1,7 @@ # coding: utf-8 -from werkzeug.contrib.cache import NullCache, SimpleCache, FileSystemCache -from werkzeug.contrib.cache import MemcachedCache, RedisCache +from cachelib import NullCache, SimpleCache, FileSystemCache +from cachelib import MemcachedCache, RedisCache class Cache(object): diff --git a/requirements.txt b/requirements.txt index 4cc5d916..47c2c60e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ mock==2.0.0 oauthlib==2.0.6 requests-oauthlib==0.8.0 Flask-SQLAlchemy==2.1 +cachelib==0.1.1 diff --git a/setup.py b/setup.py index 32eeb032..08dff95d 100644 --- a/setup.py +++ b/setup.py @@ -45,6 +45,7 @@ def fread(filename): 'Flask', 'oauthlib>=1.1.2,!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0', 'requests-oauthlib>=0.6.2,<1.2.0', + 'cachelib', ], tests_require=['nose', 'Flask-SQLAlchemy', 'mock'], test_suite='nose.collector', From 1baf8cbe21dcfaf6e336a02c5dbc5b06e1ac5c85 Mon Sep 17 00:00:00 2001 From: Grey Li Date: Mon, 7 Sep 2020 10:54:31 +0800 Subject: [PATCH 06/14] Update README, add Links section --- README.rst | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/README.rst b/README.rst index 0ffeebe7..624b1a5e 100644 --- a/README.rst +++ b/README.rst @@ -17,13 +17,12 @@ Flask-OAuthlib :target: https://coveralls.io/r/lepture/flask-oauthlib :alt: Coverage Status + Notice ------ **You SHOULD use https://github.com/lepture/authlib instead**. -===== - Flask-OAuthlib is an extension to Flask that allows you to interact with remote OAuth enabled applications. On the client site, it is a replacement for Flask-OAuth. But it does more than that, it also helps you to create @@ -33,6 +32,7 @@ Flask-OAuthlib relies on oauthlib_. .. _oauthlib: https://github.com/idan/oauthlib + Sponsored by ------------ @@ -48,6 +48,7 @@ check out Auth0's Python API SDK and free plan at `auth0.com/overview`_ :width: 18px :height: 18px + Features -------- @@ -58,10 +59,6 @@ Features - Support OAuth1 provider with HMAC and RSA signature - Support OAuth2 provider with Bearer token -And request more features at `github issues`_. - -.. _`github issues`: https://github.com/lepture/flask-oauthlib/issues - Security Reporting ------------------ @@ -73,25 +70,16 @@ Attachment with patch is welcome. Installation ------------ -Installing flask-oauthlib is simple with pip_:: +Installing flask-oauthlib is simple with pip:: $ pip install Flask-OAuthlib -If you don't have pip installed, try with easy_install:: - - $ easy_install Flask-OAuthlib - -.. _pip: http://www.pip-installer.org/ - - -Additional Notes ----------------- - -We keep documentation at `flask-oauthlib@readthedocs`_. +There is also a `development version `_ on GitHub. -.. _`flask-oauthlib@readthedocs`: https://flask-oauthlib.readthedocs.io -If you are only interested in the client part, you can find some examples -in the ``example`` directory. +Links +----- -There is also a `development version `_ on GitHub. +- Documentation: https://flask-oauthlib.readthedocs.io +- PyPI: https://pypi.org/project/Flask-OAuthlib/ +- Client Examples: https://github.com/lepture/flask-oauthlib/tree/master/example From ed0c57171671185f041eea20c6039576bfec198e Mon Sep 17 00:00:00 2001 From: Grey Li Date: Mon, 7 Sep 2020 11:03:58 +0800 Subject: [PATCH 07/14] Update dev requirements version --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 47c2c60e..c0a0427e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,5 @@ Flask>=0.12.3 mock==2.0.0 oauthlib==2.0.6 requests-oauthlib==0.8.0 -Flask-SQLAlchemy==2.1 +Flask-SQLAlchemy==2.4.4 cachelib==0.1.1 From 68d30a427a26e52c5de55903f63ede989dfaf13b Mon Sep 17 00:00:00 2001 From: Grey Li Date: Mon, 7 Sep 2020 11:04:14 +0800 Subject: [PATCH 08/14] Ready for release 0.9.6 --- CHANGES.rst | 10 ++++++++++ flask_oauthlib/__init__.py | 2 +- setup.py | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index aac1ad14..16efa24d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,6 +3,15 @@ Changelog Here you can see the full list of changes between each Flask-OAuthlib release. +Version 0.9.6 +------------- + +Released on Sept 7, 2020 + +- Fix dependency conflict with requests-oauthlib +- Fix imports for Werkzeug + + Version 0.9.5 ------------- @@ -12,6 +21,7 @@ Released on May 16, 2018 - Update supported OAuthlib - Add support for string type token + Version 0.9.4 ------------- diff --git a/flask_oauthlib/__init__.py b/flask_oauthlib/__init__.py index 2f58e5e1..a8d492e3 100644 --- a/flask_oauthlib/__init__.py +++ b/flask_oauthlib/__init__.py @@ -11,7 +11,7 @@ :license: BSD, see LICENSE for more details. """ -__version__ = "0.9.5" +__version__ = "0.9.6" __author__ = "Hsiaoming Yang " __homepage__ = 'https://github.com/lepture/flask-oauthlib' __license__ = 'BSD' diff --git a/setup.py b/setup.py index 08dff95d..7f36f9eb 100644 --- a/setup.py +++ b/setup.py @@ -63,6 +63,8 @@ def fread(filename): 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: Implementation', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', From 37f2b00a757063db753d69d6db575578be6fa687 Mon Sep 17 00:00:00 2001 From: Grey Li Date: Mon, 7 Sep 2020 11:11:18 +0800 Subject: [PATCH 09/14] Revert "Update dev requirements version" This reverts commit ed0c57171671185f041eea20c6039576bfec198e. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c0a0427e..47c2c60e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,5 @@ Flask>=0.12.3 mock==2.0.0 oauthlib==2.0.6 requests-oauthlib==0.8.0 -Flask-SQLAlchemy==2.4.4 +Flask-SQLAlchemy==2.1 cachelib==0.1.1 From fead99be976c775403f7ddf9180e1fdff84cd9d9 Mon Sep 17 00:00:00 2001 From: Sam Bellen Date: Thu, 24 Sep 2020 13:27:02 +0200 Subject: [PATCH 10/14] Update Auth0 sponsorship link Hey We recently launched a new page specifically geared towards developers on auth0.com. Can we change the link in the sponsorship message? Thanks again for your open-source work! --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 624b1a5e..f7688983 100644 --- a/README.rst +++ b/README.rst @@ -37,13 +37,13 @@ Sponsored by ------------ If you want to quickly add secure authentication to Flask, feel free to -check out Auth0's Python API SDK and free plan at `auth0.com/overview`_ +check out Auth0's Python API SDK and free plan at `auth0.com/developers`_ |auth0 image| -.. _`auth0.com/overview`: https://auth0.com/overview?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=flask-oauthlib&utm_content=auth +.. _`auth0.com/developers`: https://auth0.com/developers?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=flask-oauthlib&utm_content=auth .. |auth0 image| image:: https://user-images.githubusercontent.com/290496/31718461-031a6710-b44b-11e7-80f8-7c5920c73b8f.png - :target: https://auth0.com/overview?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=flask-oauthlib&utm_content=auth + :target: https://auth0.com/developers?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=flask-oauthlib&utm_content=auth :alt: Coverage Status :width: 18px :height: 18px From b5084a699aedc45345f712236a0139ddabaa940a Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Mon, 28 Dec 2020 19:21:09 +1100 Subject: [PATCH 11/14] docs: fix simple typo, usally -> usually There is a small typo in docs/oauth1.rst. Should read `usually` rather than `usally`. --- docs/oauth1.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/oauth1.rst b/docs/oauth1.rst index 2485b314..b792fabb 100644 --- a/docs/oauth1.rst +++ b/docs/oauth1.rst @@ -28,7 +28,7 @@ To implemente the oauthorization flow, we need to understand the data model. User (Resource Owner) --------------------- -A user, or resource owner, is usally the registered user on your site. You +A user, or resource owner, is usually the registered user on your site. You design your own user model, there is not much to say. From 8be29937bbc7912b4a2b9967aeb277e81dbb4f8f Mon Sep 17 00:00:00 2001 From: ranja Date: Tue, 7 Sep 2021 14:43:56 +0530 Subject: [PATCH 12/14] req change --- requirements.txt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 4cc5d916..5d430be8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,10 @@ -Flask>=0.12.3 -mock==2.0.0 +# Flask>=0.12.3 +# mock==2.0.0 oauthlib==2.0.6 -requests-oauthlib==0.8.0 -Flask-SQLAlchemy==2.1 +# requests-oauthlib==0.8.0 +# Flask-SQLAlchemy==2.1 +Flask +mock +# oauthlib +requests-oauthlib +Flask-SQLAlchemy From e4601205c88e919d5b6e3f79f820bdd8f6fd8b38 Mon Sep 17 00:00:00 2001 From: Ranjan Kumar Patel Date: Sun, 26 Feb 2023 04:48:56 +0530 Subject: [PATCH 13/14] icici change --- flask_oauthlib/provider/oauth2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flask_oauthlib/provider/oauth2.py b/flask_oauthlib/provider/oauth2.py index 11da31b8..95ca1cf1 100644 --- a/flask_oauthlib/provider/oauth2.py +++ b/flask_oauthlib/provider/oauth2.py @@ -440,7 +440,7 @@ def decorated(*args, **kwargs): state = request.values.get('state') if state and not e.state: e.state = state # set e.state so e.in_uri() can add the state query parameter to redirect uri - return self._on_exception(e, e.in_uri(redirect_uri)) + return self._on_exception(e, e.in_uri(self.error_uri)) except Exception as e: log.exception(e) @@ -464,7 +464,7 @@ def decorated(*args, **kwargs): state = request.values.get('state') if state and not e.state: e.state = state # set e.state so e.in_uri() can add the state query parameter to redirect uri - return self._on_exception(e, e.in_uri(redirect_uri)) + return self._on_exception(e, e.in_uri(self.error_uri)) if not isinstance(rv, bool): # if is a response or redirect @@ -473,7 +473,7 @@ def decorated(*args, **kwargs): if not rv: # denied by user e = oauth2.AccessDeniedError(state=request.values.get('state')) - return self._on_exception(e, e.in_uri(redirect_uri)) + return self._on_exception(e, e.in_uri(self.error_uri)) return self.confirm_authorization_request() From 790c251480611cffe99738af57dd820121d91738 Mon Sep 17 00:00:00 2001 From: Ranjan Kumar Patel Date: Fri, 19 Jul 2024 10:35:41 +0530 Subject: [PATCH 14/14] poetry wih --- README.md | 0 install-poetry.sh | 20 ++++++++++++++++++++ install.sh | 11 +++++++++++ pyproject.toml | 26 ++++++++++++++++++++++++++ requirements.sh | 6 ++++++ 5 files changed, 63 insertions(+) create mode 100644 README.md create mode 100644 install-poetry.sh create mode 100644 install.sh create mode 100644 pyproject.toml create mode 100644 requirements.sh diff --git a/README.md b/README.md new file mode 100644 index 00000000..e69de29b diff --git a/install-poetry.sh b/install-poetry.sh new file mode 100644 index 00000000..5b2e7f03 --- /dev/null +++ b/install-poetry.sh @@ -0,0 +1,20 @@ +venv/Scripts/python -m ensurepip --upgrade +venv/Scripts/python -m pip install pip setuptools wheel -U +venv/Scripts/python -m pip install -r requirements.txt -U + +venv/Scripts/python -m pip install poetry twine -U +# +venv/Scripts/poetry config repositories.pypiserver https://pypiserver.thinktalentws48.click/simple/ +venv/Scripts/poetry config http-basic.pypiserver devops 13972684 +venv/Scripts/poetry source add --secondary pypiserver https://pypiserver.thinktalentws48.click/simple/ +venv/Scripts/poetry config http-basic.pypiserver devops 13972684 +venv/Scripts/poetry config --list +venv/Scripts/poetry config virtualenvs.in-project true +#venv/Scripts/poetry run pip install -r requirements.txt +# +# +#rm -rf build/ dist/ encryption_util.egg-info/ +#venv/Scripts/python -m build +##venv/Scripts/poetry build +##venv/Scripts/poetry publish --repository pypiserver +#twine upload -r local --username devops --password 13972684 --repository-url https://pypiserver.thinktalentws48.click dist/* \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100644 index 00000000..80dd9b48 --- /dev/null +++ b/install.sh @@ -0,0 +1,11 @@ +venv/Scripts/python -m ensurepip --upgrade +venv/Scripts/python -m pip install pip setuptools wheel -U +venv/Scripts/python -m pip install -r requirements.txt -U +venv/Scripts/python -m pip install twine -U +venv/Scripts/python -m pip list +#venv/Scripts/python -m pip list -o +#venv/Scripts/python -m pip freeze + +rm -rf build/ dist/ encryption_util.egg-info/ +venv/Scripts/python -m build +venv/Scripts/twine upload -r local --username devops --password 13972684 --repository-url https://pypiserver.thinktalentws48.click dist/* \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..1f3c3013 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,26 @@ +[tool.poetry] +name = "flask-oauthlib" +version = "10.0.1" +description = "" +authors = ["Devops "] +readme = "README.md" +packages = [{ include = "flask_oauthlib" }] + +[tool.poetry.dependencies] +python = "^3.10" +oauthlib = "2.0.6" +flask = "^3.0.3" +mock = "^5.1.0" +flask-sqlalchemy = "^3.1.1" +cachelib = "0.1.1" +requests-oauthlib = "^1.3.0" + + +[[tool.poetry.source]] +name = "pypiserver" +url = "https://pypiserver.thinktalentws48.click/simple/" +priority = "secondary" + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" diff --git a/requirements.sh b/requirements.sh new file mode 100644 index 00000000..1a278e6f --- /dev/null +++ b/requirements.sh @@ -0,0 +1,6 @@ +#venv/Scripts/poetry add oauthlib==2.0.6 +#venv/Scripts/poetry add flask +#venv/Scripts/poetry add mock +venv/Scripts/poetry add requests-oauthlib +#venv/Scripts/poetry add Flask-SQLAlchemy +#venv/Scripts/poetry add cachelib==0.1.1 \ No newline at end of file