Skip to content

Commit 0221fe5

Browse files
committed
Improve build artifacts and test with pypi
1 parent 2db841e commit 0221fe5

File tree

5 files changed

+8
-44
lines changed

5 files changed

+8
-44
lines changed

MANIFEST.in

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,42 +15,8 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
# Include important project files
19-
include README.md
20-
include LICENSE
21-
include NOTICE
22-
include Makefile
23-
include pyproject.toml
24-
include setup.py
25-
include uv.lock
26-
27-
# Cython source files
28-
recursive-include pyiceberg *.pyx *.pyi
29-
30-
# Vendor packages
31-
recursive-include vendor *
32-
33-
# type stubs
34-
include pyiceberg/py.typed
35-
36-
# Include test files in sdist
37-
recursive-include tests *.py
38-
39-
# Include dev tools in sdist
40-
recursive-include dev *
41-
42-
# Exclude build artifacts
43-
global-exclude *.pyc
44-
global-exclude *.pyo
45-
global-exclude *.so
46-
global-exclude *.pyd
47-
global-exclude __pycache__
18+
# Remove build resources
4819
prune .venv
4920
prune build
5021
prune dist
51-
prune *.egg-info
52-
prune .pytest_cache
53-
54-
# Exclude generated files
55-
exclude pyiceberg/avro/decoder_fast.c
56-
exclude setup.cfg
22+
prune .pytest_cache

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ else
3232
endif
3333

3434
ifeq ($(COVERAGE),1)
35-
TEST_RUNNER = uv run coverage run --parallel-mode --source=pyiceberg -m
35+
TEST_RUNNER = uv run python -m coverage run --parallel-mode --source=pyiceberg -m
3636
else
37-
TEST_RUNNER = uv run
37+
TEST_RUNNER = uv run python -m
3838
endif
3939

4040
ifeq ($(KEEP_COMPOSE),1)

dev/.rat-excludes

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ build
55
.gitignore
66
uv.lock
77
mkdocs/*
8-
.venv/.*
9-
.*\.egg-info.*
10-
.*\.pytest_cache.*
118
setup.cfg
12-
pyiceberg\.egg-info/.*
9+
(^|.*/)[^/]*\.egg-info(/.*)?$
10+
# Cython generated files
11+
decoder_fast.c

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ authors = [{ name = "Apache Software Foundation", email = "dev@iceberg.apache.or
2222
requires-python = ">=3.10.0,<4.0.0"
2323
readme = "README.md"
2424
license = "Apache-2.0"
25+
license-files = ["LICEN[CS]E*", "NOTICE*"]
2526
classifiers = [
2627
"Operating System :: OS Independent",
2728
"Programming Language :: Python :: 3.10",
@@ -143,7 +144,6 @@ build-backend = "setuptools.build_meta"
143144

144145
[tool.pytest.ini_options]
145146
testpaths = ["tests"]
146-
pythonpath = ["."]
147147

148148
markers = [
149149
"unmarked: marks a test as a unittest",

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,4 @@
6969
},
7070
include_package_data=True,
7171
ext_modules=ext_modules,
72-
data_files=[("", ["NOTICE"])],
7372
)

0 commit comments

Comments
 (0)