Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jalexanderII committed Jul 24, 2023
1 parent 784f4b7 commit e5b58a7
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 29 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
IMAGE := parea_ai
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 tests/
PYTHONPATH=$(PYTHONPATH) poetry run pytest -c pyproject.toml --cov-report=html --cov=parea_ai 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 tests
poetry run darglint --verbosity 2 parea_ai tests

.PHONY: mypy
mypy:
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ Parea python sdk
## Installation

```bash
pip install -U parea
pip install -U parea-ai
```

or install with `Poetry`

```bash
poetry add parea
poetry add parea-ai
```

## Getting Started
Expand All @@ -34,8 +34,8 @@ import os

from dotenv import load_dotenv

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

load_dotenv()

Expand Down Expand Up @@ -99,7 +99,7 @@ See [LICENSE](https://github.com/parea-ai/parea-sdk/blob/master/LICENSE) for mor

```bibtex
@misc{parea-sdk,
author = {parea-ai},
author = {joel-parea-ai},
title = {Parea python sdk},
year = {2023},
publisher = {GitHub},
Expand Down
2 changes: 1 addition & 1 deletion cookiecutter-config-file.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file contains values from Cookiecutter

default_context:
project_name: "parea"
project_name: "parea-ai"
project_description: "Parea python sdk"
organization: "parea-ai"
license: "Apache Software License 2.0"
Expand Down
2 changes: 1 addition & 1 deletion parea/__init__.py → parea_ai/__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.client import Parea
from parea_ai.client import Parea


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

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

COMPLETION_ENDPOINT = "/completion"
DEPLOYED_PROMPT_ENDPOINT = "/deployed-prompt"
Expand Down
4 changes: 2 additions & 2 deletions parea/example.py → parea_ai/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.client import Parea
from parea.schemas.models import Completion, CompletionResponse, UseDeployedPrompt, UseDeployedPromptResponse
from parea_ai.client import Parea
from parea_ai.schemas.models import Completion, CompletionResponse, UseDeployedPrompt, UseDeployedPromptResponse

load_dotenv()

Expand Down
File renamed without changes.
24 changes: 12 additions & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "parea_ai"
name = "parea-ai"
version = "0.1.1a0"
description = "Parea python sdk"
readme = "README.md"
Expand Down Expand Up @@ -36,6 +36,7 @@ python = "^3.9"
httpx = "^0.24.1"
python-dotenv = "^1.0.0"
poetry-plugin-dotenv = "^0.5.1"
pyupgrade = "^3.9.0"

[tool.poetry.dev-dependencies]
bandit = "^1.7.1"
Expand Down Expand Up @@ -135,7 +136,7 @@ addopts = [
source = ["tests"]

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

[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.example import hello
from parea_ai.example import hello


@pytest.mark.parametrize(
Expand Down

0 comments on commit e5b58a7

Please sign in to comment.