Skip to content

Commit 49cb528

Browse files
committed
Update imports, move to src/ and fix setup.py
1 parent f80d46e commit 49cb528

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33

44
setup(
55
name="askai",
6-
version="1.0.0",
6+
version="1.0.1",
77
author="Max Fischer",
88
long_description=open('README.md').read(),
99
long_description_content_type="text/markdown",
1010
license="MIT",
1111
url="https://github.com/maxvfischer/askai",
12-
py_modules=["entrypoint_askai"],
12+
download_url="https://github.com/maxvfischer/askai/archive/refs/tags/v1.0.1.tar.gz",
13+
py_modules=["src"],
1314
install_requires=[
1415
"click==8.1.3",
1516
"openai==0.25.0",
1617
"PyYAML==6.0",
1718
],
1819
entry_points="""
1920
[console_scripts]
20-
askai=entrypoint_askai:askai
21+
askai=src.entrypoint_askai:askai
2122
"""
2223
)

src/__init__.py

Whitespace-only changes.
File renamed without changes.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import click
22
import openai
33

4-
from utils import KeyHelper, ConfigHelper, PrintHelper
5-
from entrypoint_config import config
6-
from entrypoint_init import init
7-
from entrypoint_key import key
4+
from .utils import KeyHelper, ConfigHelper, PrintHelper
5+
from .entrypoint_config import config
6+
from .entrypoint_init import init
7+
from .entrypoint_key import key
88

99

1010
class DefaultCommandGroup(click.Group):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import click
22

3-
from utils import ConfigHelper, PrintHelper
3+
from .utils import ConfigHelper, PrintHelper
44

55

66
@click.group()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import click
22

3-
from utils import KeyHelper, ConfigHelper, PrintHelper
3+
from .utils import KeyHelper, ConfigHelper, PrintHelper
44

55

66
@click.command()
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import click as click
22

3-
from utils import KeyHelper, PrintHelper
4-
from constants import API_KEY_PATH
3+
from .utils import KeyHelper, PrintHelper
4+
from .constants import API_KEY_PATH
55

66

77
@click.group()

utils.py renamed to src/utils.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
from dataclasses import dataclass, asdict
2-
from getpass import getpass
3-
41
import yaml
52
import click
63
import openai
7-
from openai.openai_object import OpenAIObject
4+
from getpass import getpass
85
from enum import Enum, auto
96
from typing import Callable
7+
from dataclasses import dataclass, asdict
108
from openai.error import AuthenticationError
11-
from constants import (
9+
from openai.openai_object import OpenAIObject
10+
from .constants import (
1211
CONFIG_PATH,
1312
API_KEY_PATH,
1413
DEFAULT_MODEL,

0 commit comments

Comments
 (0)