Skip to content

Commit

Permalink
manifest: only include required files, rest are not need for install.
Browse files Browse the repository at this point in the history
  • Loading branch information
YoSTEALTH committed Mar 31, 2024
1 parent 8b91c47 commit d48b560
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 26 deletions.
26 changes: 12 additions & 14 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
include README.rst
include LICENSE.txt
# C Liburing START >>>
graft libs/liburing/src

# C Liburing
include libs/liburing/LICENSE
include libs/liburing/COPYING
include libs/liburing/COPYING.GPL
include libs/liburing/configure

graft libs/liburing/src/arch

include libs/liburing/src/include/liburing.h
include libs/liburing/src/include/liburing/barrier.h
include libs/liburing/src/include/liburing/io_uring.h
include libs/liburing/liburing-ffi.pc.in
include libs/liburing/liburing.pc.in
include libs/liburing/liburing.spec
include libs/liburing/Makefile
include libs/liburing/Makefile.common
include libs/liburing/Makefile.quiet
include libs/liburing/LICENSE

exclude libs/liburing/src/include/liburing/io_uring_version.h
exclude libs/liburing/src/include/liburing/compat.h
# C Liburing END <<<

graft src/liburing
graft example
graft test

global-exclude *.py[cod] # note: must run last to exclude properly
exclude src/liburing/*.c
global-exclude *.py[cod] *.so # note: must run last to exclude properly
18 changes: 6 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools>=60", "wheel", "cython>=3"]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=60", "wheel", "cython>=3"]

[project]
name = "liburing"
Expand All @@ -20,7 +20,7 @@ classifiers = ["Topic :: Software Development",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 2 - Pre-Alpha"]
"Development Status :: 3 - Alpha"]
# 1 - Planning
# 2 - Pre-Alpha
# 3 - Alpha
Expand All @@ -36,20 +36,14 @@ Issues = "https://github.com/YoSTEALTH/Liburing/issues"
[project.optional-dependencies]
test = ["pytest"]

[tool.setuptools]
zip-safe = false
[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.dynamic]
version = {attr="liburing.__version__"}

[tool.setuptools.package-data]
"*" = ["*.pyx", "*.pxd"]

[tool.setuptools.exclude-package-data]
"*" = ["*.c"]

[tool.setuptools.packages.find]
where = ["src"]
"*" = ["*.pyx", "*.pxd", "*.h"]

# for debugging locally
# ---------------------
Expand All @@ -64,4 +58,4 @@ where = ["src"]
# "raise NotImplementedError",
# "memory_error\\(self\\)",
# "index_error\\(self, index, '.*'\\)"
# ]
# ]

0 comments on commit d48b560

Please sign in to comment.