diff --git a/MANIFEST.in b/MANIFEST.in index ea08dc0..b4c9713 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,8 +1,7 @@ -include geventhttpclient/*.py +include src/geventhttpclient/*.py include ext/*.c include ext/*.h recursive-include llhttp *.h *.c LICENSE-MIT -recursive-exclude tests * global-exclude __pycache__ global-exclude *.py[co] include pyproject.toml diff --git a/pyproject.toml b/pyproject.toml index 309c3e5..fc63dae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,12 +55,11 @@ download = "https://pypi.org/project/geventhttpclient/#files" [tool.setuptools] +package-dir = {"" = "src"} include-package-data = true [tool.setuptools.packages.find] -where = [""] -include = ["geventhttpclient"] -exclude = ["*.tests", "*.tests.*", "tests.*", "tests"] +where = ["src"] [tool.setuptools.package-data] "*" = ["README.md", "release.md", "LICENSE-MIT"] @@ -94,8 +93,8 @@ commands = # find . -name '*.pyc' -delete python -m build pip install -r requirements-dev.txt - pip install -e. - pytest tests + pip install . + pytest """ diff --git a/geventhttpclient/__init__.py b/src/geventhttpclient/__init__.py similarity index 100% rename from geventhttpclient/__init__.py rename to src/geventhttpclient/__init__.py diff --git a/geventhttpclient/api.py b/src/geventhttpclient/api.py similarity index 100% rename from geventhttpclient/api.py rename to src/geventhttpclient/api.py diff --git a/geventhttpclient/client.py b/src/geventhttpclient/client.py similarity index 100% rename from geventhttpclient/client.py rename to src/geventhttpclient/client.py diff --git a/geventhttpclient/connectionpool.py b/src/geventhttpclient/connectionpool.py similarity index 100% rename from geventhttpclient/connectionpool.py rename to src/geventhttpclient/connectionpool.py diff --git a/geventhttpclient/header.py b/src/geventhttpclient/header.py similarity index 100% rename from geventhttpclient/header.py rename to src/geventhttpclient/header.py diff --git a/geventhttpclient/httplib.py b/src/geventhttpclient/httplib.py similarity index 100% rename from geventhttpclient/httplib.py rename to src/geventhttpclient/httplib.py diff --git a/geventhttpclient/httplib2.py b/src/geventhttpclient/httplib2.py similarity index 100% rename from geventhttpclient/httplib2.py rename to src/geventhttpclient/httplib2.py diff --git a/geventhttpclient/requests.py b/src/geventhttpclient/requests.py similarity index 100% rename from geventhttpclient/requests.py rename to src/geventhttpclient/requests.py diff --git a/geventhttpclient/response.py b/src/geventhttpclient/response.py similarity index 100% rename from geventhttpclient/response.py rename to src/geventhttpclient/response.py diff --git a/geventhttpclient/url.py b/src/geventhttpclient/url.py similarity index 100% rename from geventhttpclient/url.py rename to src/geventhttpclient/url.py diff --git a/geventhttpclient/useragent.py b/src/geventhttpclient/useragent.py similarity index 100% rename from geventhttpclient/useragent.py rename to src/geventhttpclient/useragent.py