diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38e7943..0730264 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,10 +7,6 @@ on: push: branches: ["main"] -env: - POETRY_VIRTUALENVS_CREATE: true - POETRY_VIRTUALENVS_IN_PROJECT: true - jobs: build: runs-on: ubuntu-latest diff --git a/examples/docs-example.py b/examples/docs-example.py index a0f3f57..00865d6 100644 --- a/examples/docs-example.py +++ b/examples/docs-example.py @@ -1,5 +1,5 @@ import time -from autometrics.autometrics import autometrics +from autometrics import autometrics @autometrics diff --git a/examples/example.py b/examples/example.py index fd73351..6e1e25c 100644 --- a/examples/example.py +++ b/examples/example.py @@ -1,5 +1,5 @@ from prometheus_client import start_http_server -from autometrics.autometrics import autometrics +from autometrics import autometrics import time diff --git a/examples/fastapi-example.py b/examples/fastapi-example.py index 49d6cc8..a26840e 100644 --- a/examples/fastapi-example.py +++ b/examples/fastapi-example.py @@ -1,6 +1,6 @@ from fastapi import FastAPI, Response import uvicorn -from autometrics.autometrics import autometrics +from autometrics import autometrics from prometheus_client import generate_latest app = FastAPI() diff --git a/poetry.toml b/poetry.toml new file mode 100644 index 0000000..ab1033b --- /dev/null +++ b/poetry.toml @@ -0,0 +1,2 @@ +[virtualenvs] +in-project = true diff --git a/src/autometrics/__init__.py b/src/autometrics/__init__.py index e69de29..f897bb2 100644 --- a/src/autometrics/__init__.py +++ b/src/autometrics/__init__.py @@ -0,0 +1 @@ +from autometrics.decorator import * diff --git a/src/autometrics/autometrics.py b/src/autometrics/decorator.py similarity index 100% rename from src/autometrics/autometrics.py rename to src/autometrics/decorator.py