syncronous entrance
This commit is contained in:
parent
1d76aaf552
commit
d116ae2d8a
@ -5,7 +5,7 @@
|
|||||||
from .client import CZDS
|
from .client import CZDS
|
||||||
|
|
||||||
|
|
||||||
__version__ = '1.2.0'
|
__version__ = '1.2.1'
|
||||||
__author__ = 'acidvegas'
|
__author__ = 'acidvegas'
|
||||||
__email__ = 'acid.vegas@acid.vegas'
|
__email__ = 'acid.vegas@acid.vegas'
|
||||||
__github__ = 'https://github.com/acidvegas/czds'
|
__github__ = 'https://github.com/acidvegas/czds'
|
@ -73,6 +73,10 @@ async def main():
|
|||||||
raise Exception(f'Failed to download zone files: {e}')
|
raise Exception(f'Failed to download zone files: {e}')
|
||||||
|
|
||||||
|
|
||||||
|
def cli_entry():
|
||||||
|
'''Synchronous entry point for console script'''
|
||||||
|
return asyncio.run(main())
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
asyncio.run(main())
|
asyncio.run(main())
|
@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 2.2
|
Metadata-Version: 2.2
|
||||||
Name: czds-api
|
Name: czds-api
|
||||||
Version: 1.1.0
|
Version: 1.2.0
|
||||||
Summary: ICANN API for the Centralized Zones Data Service
|
Summary: ICANN API for the Centralized Zones Data Service
|
||||||
Home-page: https://github.com/acidvegas/czds
|
Home-page: https://github.com/acidvegas/czds
|
||||||
Author: acidvegas
|
Author: acidvegas
|
||||||
|
4
setup.py
4
setup.py
@ -11,7 +11,7 @@ with open('README.md', 'r', encoding='utf-8') as fh:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='czds-api',
|
name='czds-api',
|
||||||
version='1.2.0',
|
version='1.2.1',
|
||||||
author='acidvegas',
|
author='acidvegas',
|
||||||
author_email='acid.vegas@acid.vegas',
|
author_email='acid.vegas@acid.vegas',
|
||||||
description='ICANN API for the Centralized Zones Data Service',
|
description='ICANN API for the Centralized Zones Data Service',
|
||||||
@ -43,7 +43,7 @@ setup(
|
|||||||
python_requires='>=3.6',
|
python_requires='>=3.6',
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
'czds=czds.__main__:main',
|
'czds=czds.__main__:cli_entry',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
install_requires=[
|
install_requires=[
|
||||||
|
Loading…
Reference in New Issue
Block a user