From 435b6dcb445a4ec7bb905c30d456c7bfbc1872ca Mon Sep 17 00:00:00 2001 From: Steve Phelps Date: Sun, 5 Nov 2023 12:45:04 +0000 Subject: [PATCH] use correct spec for src layout --- poetry.lock | 4 ++-- pyproject.toml | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index 4d64c5f..38e02e2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.7.0 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. [[package]] name = "aiohttp" @@ -940,8 +940,8 @@ astroid = ">=3.0.1,<=3.1.0-dev0" colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} dill = [ {version = ">=0.2", markers = "python_version < \"3.11\""}, + {version = ">=0.3.6", markers = "python_version >= \"3.11\""}, {version = ">=0.3.7", markers = "python_version >= \"3.12\""}, - {version = ">=0.3.6", markers = "python_version >= \"3.11\" and python_version < \"3.12\""}, ] isort = ">=4.2.5,<6" mccabe = ">=0.6,<0.8" diff --git a/pyproject.toml b/pyproject.toml index ee2686c..adf6c05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,8 +8,8 @@ openai_pygenerator = ["py.typed"] [tool.setuptools_scm] write_to = "src/version.py" -[tool.pytest.ini_options] -pythonpath = "src" +[tool.pytest.ini_optons] +pythonpath = ["src"] [project] name = "openai-pygenerator" @@ -30,6 +30,7 @@ classifiers = [ [project.urls] "Homepage" = "https://github.com/phelps-sg/openai-pygenerator" "Bug Tracker" = "https://github.com/phelps-sg/openai-pygenerator/issues" + [tool.poetry] name = "openai-pygenerator" version = "0.0.0" @@ -37,7 +38,7 @@ description = "Simple generator wrapper for OpenAI Python API with retry" authors = ["Steve Phelps "] license = "MIT License" readme = "README.md" -packages = [{include = "src/openai_pygenerator"}] +packages = [{include="openai_pygenerator", from="src"}] [tool.poetry.dependencies] python = "^3.8.1"