Skip to content

Commit f0a6bbd

Browse files
committed
Move project source back to src/geventhttpclient, making sure that the tests are run against the installed package
See discussion in geventhttpclient#189
1 parent 306814e commit f0a6bbd

13 files changed

+5
-7
lines changed

MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
include geventhttpclient/*.py
1+
include src/geventhttpclient/*.py
22
include ext/*.c
33
include ext/*.h
44
recursive-include llhttp *.h *.c LICENSE-MIT
5-
recursive-exclude tests *
65
global-exclude __pycache__
76
global-exclude *.py[co]
87
include pyproject.toml

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,11 @@ download = "https://pypi.org/project/geventhttpclient/#files"
5555

5656

5757
[tool.setuptools]
58+
package-dir = {"" = "src"}
5859
include-package-data = true
5960

6061
[tool.setuptools.packages.find]
61-
where = [""]
62-
include = ["geventhttpclient"]
63-
exclude = ["*.tests", "*.tests.*", "tests.*", "tests"]
62+
where = ["src"]
6463

6564
[tool.setuptools.package-data]
6665
"*" = ["README.md", "release.md", "LICENSE-MIT"]
@@ -94,8 +93,8 @@ commands =
9493
# find . -name '*.pyc' -delete
9594
python -m build
9695
pip install -r requirements-dev.txt
97-
pip install -e.
98-
pytest tests
96+
pip install .
97+
pytest
9998
"""
10099

101100

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)