Skip to content

Commit b89dfe2

Browse files
committed
fix: packaging issue for generated /sync files
UV respects `.gitgnore` by default and excludes generated `/sync` files from built packages. In this PR we explicitly specify files that should be packed and ignore vcs
1 parent 0f640ad commit b89dfe2

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ ably/types/options.py.orig
5555
test/ably/restsetup.py.orig
5656

5757
.idea/**/*
58-
**/ably/sync/***
58+
ably/sync/**
59+
test/ably/sync/**

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,23 @@ Repository = "https://github.com/ably/ably-python"
6868
requires = ["hatchling"]
6969
build-backend = "hatchling.build"
7070

71+
[tool.hatch.build.targets.sdist]
72+
ignore-vcs = true
73+
include = [
74+
"/ably",
75+
"/COPYRIGHT",
76+
"/README.md",
77+
"/LICENSE",
78+
"/LONG_DESCRIPTION.rst",
79+
"/images",
80+
"/setup.cfg",
81+
"/pyproject.toml"
82+
]
83+
exclude = [
84+
"**/*.pyc",
85+
"**/__pycache__"
86+
]
87+
7188
[tool.hatch.build.targets.wheel]
7289
packages = ["ably"]
7390

0 commit comments

Comments
 (0)