Skip to content

Commit

Permalink
Merge pull request #19 from parea-ai/pkg-import
Browse files Browse the repository at this point in the history
change to parea
  • Loading branch information
jalexanderII committed Jul 24, 2023
2 parents e5b58a7 + 68f4111 commit 0995bd5
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PYTHON := python3
PYTHONPATH := `pwd`

#* Docker variables
IMAGE := parea_ai
IMAGE := parea
VERSION := latest

#* Poetry
Expand Down Expand Up @@ -40,14 +40,14 @@ formatting: codestyle
#* Linting
.PHONY: test
test:
PYTHONPATH=$(PYTHONPATH) poetry run pytest -c pyproject.toml --cov-report=html --cov=parea_ai tests/
PYTHONPATH=$(PYTHONPATH) poetry run pytest -c pyproject.toml --cov-report=html --cov=parea tests/
poetry run coverage-badge -o assets/images/coverage.svg -f

.PHONY: check-codestyle
check-codestyle:
poetry run isort --diff --check-only --settings-path pyproject.toml ./
poetry run black --diff --check --config pyproject.toml ./
poetry run darglint --verbosity 2 parea_ai tests
poetry run darglint --verbosity 2 parea tests

.PHONY: mypy
mypy:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import os

from dotenv import load_dotenv

from parea_ai.client import Parea
from parea_ai.schemas.models import Completion, UseDeployedPrompt, CompletionResponse, UseDeployedPromptResponse
from parea.client import Parea
from parea.schemas.models import Completion, UseDeployedPrompt, CompletionResponse, UseDeployedPromptResponse

load_dotenv()

Expand Down
2 changes: 1 addition & 1 deletion parea_ai/__init__.py → parea/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from importlib import metadata as importlib_metadata

from parea_ai.client import Parea
from parea.client import Parea


def get_version() -> str:
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions parea_ai/client.py → parea/client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from attrs import asdict, define, field

from parea_ai.api_client import HTTPClient
from parea_ai.schemas.models import Completion, CompletionResponse, UseDeployedPrompt, UseDeployedPromptResponse
from parea.api_client import HTTPClient
from parea.schemas.models import Completion, CompletionResponse, UseDeployedPrompt, UseDeployedPromptResponse

COMPLETION_ENDPOINT = "/completion"
DEPLOYED_PROMPT_ENDPOINT = "/deployed-prompt"
Expand Down
4 changes: 2 additions & 2 deletions parea_ai/example.py → parea/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

from dotenv import load_dotenv

from parea_ai.client import Parea
from parea_ai.schemas.models import Completion, CompletionResponse, UseDeployedPrompt, UseDeployedPromptResponse
from parea.client import Parea
from parea.schemas.models import Completion, CompletionResponse, UseDeployedPrompt, UseDeployedPromptResponse

load_dotenv()

Expand Down
File renamed without changes.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "parea-ai"
version = "0.1.1a0"
packages = [{ include = "parea" }]
version = "0.1.1a1"
description = "Parea python sdk"
readme = "README.md"
authors = ["joel-parea-ai <[email protected]>"]
Expand Down Expand Up @@ -136,7 +137,7 @@ addopts = [
source = ["tests"]

[coverage.paths]
source = "parea_ai"
source = "parea"

[coverage.run]
branch = true
Expand Down
2 changes: 1 addition & 1 deletion tests/test_example/test_example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Tests for hello function."""
import pytest

from parea_ai.example import hello
from parea.example import hello


@pytest.mark.parametrize(
Expand Down

0 comments on commit 0995bd5

Please sign in to comment.