Bump workflows
This commit is contained in:
parent
1e5ad4a8b6
commit
4a69917d90
|
@ -3,7 +3,7 @@ on: [push]
|
|||
|
||||
jobs:
|
||||
Package:
|
||||
uses: jmaa/workflows/.gitea/workflows/python-package.yaml@v6.00
|
||||
uses: jmaa/workflows/.gitea/workflows/python-package.yaml@v6.03
|
||||
with:
|
||||
PUBLISH: true
|
||||
secrets:
|
||||
|
|
|
@ -31,11 +31,12 @@ except ImportError:
|
|||
|
||||
CACHE_PATH_FROM_HOME = '.local/share/usagi-keiretsu/fin_data/http_cache'
|
||||
|
||||
|
||||
def initialize_session() -> requests.Session:
|
||||
'''
|
||||
"""
|
||||
Creates Session with or without caching depending upon current
|
||||
capabilities.
|
||||
'''
|
||||
"""
|
||||
logger.info('Setting up session')
|
||||
|
||||
# Setup cache if it can be loaded.
|
||||
|
@ -61,7 +62,7 @@ def setup_limiter(
|
|||
session: requests.Session,
|
||||
url_prefix: str,
|
||||
expire_after: datetime.datetime | None = None,
|
||||
**limiter_args
|
||||
**limiter_args,
|
||||
) -> requests.Session:
|
||||
"""
|
||||
Initializes limiter on session for the given domain with the given
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = '0.1.1'
|
||||
__version__ = '0.1.2'
|
||||
|
|
4
setup.py
4
setup.py
|
@ -15,6 +15,10 @@ with open(PACKAGE_NAME + '/_version.py') as f:
|
|||
del match, text
|
||||
|
||||
|
||||
def read_requirements(path: str):
|
||||
return f.read().strip().split('\n')
|
||||
|
||||
|
||||
def get_short_description(readme: str):
|
||||
readme = re.sub(r'#+[^\n]*\n+', '', readme)
|
||||
m = re.search(r'^\s*(\w+[\w\s,`]+\.)', readme)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
|
||||
import requests_util
|
||||
|
||||
|
||||
def test_init():
|
||||
session = requests_util.initialize_session()
|
||||
assert session is not None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user