Skip to content

Commit 478e050

Browse files
committed
rolling out first stable version
1 parent 1ab6298 commit 478e050

3 files changed

Lines changed: 10 additions & 35 deletions

File tree

service/pyproject.toml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,8 @@ requires = ["setuptools>=61.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "scanerr-cli"
7-
version = "0.0.1"
8-
dependencies = [
9-
"click",
10-
"certifi",
11-
"charset-normalizer",
12-
"colorama",
13-
"idna",
14-
"markdown-it-py",
15-
"mdurl",
16-
"Pygments",
17-
"python-dotenv",
18-
"requests",
19-
"rich",
20-
"shellingham",
21-
"typer",
22-
"typing_extensions",
23-
"urllib3"
24-
]
6+
name = "scanerr"
7+
version = "0.0.6"
258
authors = [
269
{ name="Scanerr", email="hello@scanerr.io" },
2710
]

service/setup.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,14 @@
22

33

44
setup(
5-
name='scanerr-cli',
6-
version='0.0.1',
5+
name='scanerr',
6+
version='0.0.6',
77
packages=find_packages(),
88
install_requires=[
9-
'click',
10-
'certifi',
11-
'charset-normalizer',
12-
'colorama',
13-
'idna',
14-
'markdown-it-py',
15-
'mdurl',
16-
'Pygments',
179
'python-dotenv',
1810
'requests',
1911
'rich',
20-
'shellingham',
2112
'typer',
22-
'typing_extensions',
23-
'urllib3'
2413
],
2514
entry_points={
2615
'console_scripts': [

service/src/scanerr/api.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import requests, json, os, time
22
from dotenv import load_dotenv
3+
from pathlib import Path
34
from rich import print as rprint
45

5-
load_dotenv()
6+
env_file = Path(str(Path.cwd()) + '/.env')
7+
8+
load_dotenv(dotenv_path=env_file)
69

710
# import env vars
811
SCANERR_API_BASE_URL = os.getenv('API_ROOT')
@@ -494,9 +497,9 @@ def api_test_site(
494497

495498
# 2. Check for crawl completion
496499
wait_time = 0
497-
site_status = None
500+
site_status = 500
498501
print(f'checking site availablity...')
499-
while not str(site_status).startswith('5') and wait_time < max_wait_time:
502+
while str(site_status).startswith('5') and wait_time < max_wait_time:
500503
# sleeping for 5 seconds
501504
time.sleep(5)
502505
wait_time += 5

0 commit comments

Comments
 (0)