Skip to content

Commit 5088303

Browse files
committed
Fix Metadata 2.4 compatibility with PyPI and improve .gitignore patterns
Pin setuptools<70 and build<2.0 to ensure PyPI-compatible Metadata 2.3 generation. Consolidate build artifact patterns in .gitignore.
1 parent fdb98d0 commit 5088303

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Install python build dependencies
3636
run: |
37-
python -m pip install --upgrade pip build
37+
python -m pip install --upgrade pip "setuptools<70" "build<2.0" wheel
3838
3939
- name: Build wheels
4040
run: |

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ bazel-bin
22
bazel-metadata
33
bazel-out
44
bazel-testlogs
5-
tensorflow_metadata.egg-info/
65
tensorflow_metadata/proto/v0/anomalies_pb2.py
76
tensorflow_metadata/proto/v0/derived_feature_pb2.py
87
tensorflow_metadata/proto/v0/metric_pb2.py
98
tensorflow_metadata/proto/v0/path_pb2.py
109
tensorflow_metadata/proto/v0/problem_statement_pb2.py
1110
tensorflow_metadata/proto/v0/schema_pb2.py
1211
tensorflow_metadata/proto/v0/statistics_pb2.py
12+
build/
13+
dist/
14+
*.egg-info/

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools<70", "wheel"]
3+
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)