Skip to content

Commit fe2fdad

Browse files
committed
rolling out v0.0.5
1 parent 93de47e commit fe2fdad

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN addgroup --system app && adduser --system app
1010
RUN apt-get update && apt-get install -y python3 python3-pip
1111

1212
# installing scanerr & deps
13-
RUN python3 -m pip install scanerr==0.0.4 typer requests rich python-dotenv
13+
RUN python3 -m pip install scanerr==0.0.5 typer requests rich python-dotenv
1414

1515
# entry point
1616
ENTRYPOINT [ "scanerr" ]

service/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "scanerr"
7-
version = "0.0.4"
7+
version = "0.0.5"
88
authors = [
99
{ name="Scanerr", email="hello@scanerr.io" },
1010
]

service/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name='scanerr',
6-
version='0.0.4',
6+
version='0.0.5',
77
packages=find_packages(),
88
install_requires=[
99
'python-dotenv',

service/src/scanerr/root.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# High Level Configs
1010

1111
app = typer.Typer()
12+
env_dir = Path(str(Path.home()) + '/scanerr')
1213
env_file = Path(str(Path.home()) + '/scanerr/.env')
1314

1415
load_dotenv(dotenv_path=env_file)
@@ -28,12 +29,12 @@ def config(api_key: str, api_root: str='https://api.scanerr.io') -> None:
2829
Setup and configure the Scanerr CLI for initial use
2930
"""
3031

31-
# deleting .env if exists
32-
if env_file.exists():
33-
shutil.rmtree(env_file)
32+
# deleting $HOME/scanerr/.env if exists
33+
if env_dir.exists():
34+
shutil.rmtree(env_dir)
3435

35-
# creating new .env file
36-
os.mkdir(Path(f'{Path.home()}/scanerr'))
36+
# creating new $HOME/scanerr dir
37+
os.mkdir(env_dir)
3738

3839
# adding new configs tp .env
3940
with open(env_file, "w") as f:

0 commit comments

Comments
 (0)