mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 22:54:27 -04:00
move main into cli init and remove circular import layer
This commit is contained in:
parent
3ec97e5528
commit
322be6b292
5 changed files with 61 additions and 83 deletions
11
setup.py
11
setup.py
|
@ -1,4 +1,3 @@
|
|||
import os
|
||||
import setuptools
|
||||
from pathlib import Path
|
||||
|
||||
|
@ -10,9 +9,9 @@ README = (BASE_DIR / "README.md").read_text()
|
|||
VERSION = (SOURCE_DIR / "VERSION").read_text().strip()
|
||||
|
||||
# To see when setup.py gets called (uncomment for debugging)
|
||||
import sys
|
||||
print(SOURCE_DIR, f" (v{VERSION})")
|
||||
print('>', sys.executable, *sys.argv)
|
||||
# import sys
|
||||
# print(SOURCE_DIR, f" (v{VERSION})")
|
||||
# print('>', sys.executable, *sys.argv)
|
||||
# raise SystemExit(0)
|
||||
|
||||
setuptools.setup(
|
||||
|
@ -69,10 +68,10 @@ setuptools.setup(
|
|||
# 'redis': ['redis', 'django-redis'],
|
||||
# 'pywb': ['pywb', 'redis'],
|
||||
},
|
||||
packages=[PKG_NAME],
|
||||
packages=setuptools.find_packages(),
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
f"{PKG_NAME} = {PKG_NAME}.__main__:main",
|
||||
f"{PKG_NAME} = {PKG_NAME}.cli:main",
|
||||
],
|
||||
},
|
||||
include_package_data=True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue