Skip to content

Commit

Permalink
Fix sdist make (#10366)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny authored Jan 29, 2025
1 parent f667a40 commit 3fb2c8d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES/10366.packaging
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Added missing files to the source distribution to fix ``Makefile`` targets.
Added a ``cythonize-nodeps`` target to run Cython without invoking pip to install dependencies.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ graft aiohttp
graft docs
graft examples
graft tests
graft tools
graft requirements
recursive-include vendor *
global-include aiohttp *.pyi
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ generate-llhttp: .llhttp-gen
.PHONY: cythonize
cythonize: .install-cython $(PYXS:.pyx=.c) aiohttp/_websocket/reader_c.c

.PHONY: cythonize-nodeps
cythonize-nodeps: $(PYXS:.pyx=.c) aiohttp/_websocket/reader_c.c

.install-deps: .install-cython $(PYXS:.pyx=.c) aiohttp/_websocket/reader_c.c $(call to-hash,$(CYS) $(REQS))
@python -m pip install -r requirements/dev.in -c requirements/dev.txt
@touch .install-deps
Expand Down
2 changes: 1 addition & 1 deletion tools/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import multidict

ROOT = pathlib.Path.cwd()
while ROOT.parent != ROOT and not (ROOT / ".git").exists():
while ROOT.parent != ROOT and not (ROOT / "pyproject.toml").exists():
ROOT = ROOT.parent


Expand Down

0 comments on commit 3fb2c8d

Please sign in to comment.