Skip to content

Commit 65d2366

Browse files
shixishclaude
andcommitted
Remove the diffbot-python legacy build now that 0.3.0 is published
The final release is tagged legacy-diffbot-python-v0.3.0; check out that tag and run `make build-legacy` to rebuild it. The import-time warning for leftover diffbot-python installs stays in the diffbot package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 75c9e8e commit 65d2366

5 files changed

Lines changed: 4 additions & 124 deletions

File tree

‎Makefile‎

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: test test-live build build-legacy release-legacy release-test-legacy clean bump-patch bump-minor bump-major set-token-pypi set-token-testpypi release-test release _release-test _release verify-release-test verify-release
1+
.PHONY: test test-live build clean bump-patch bump-minor bump-major set-token-pypi set-token-testpypi release-test release _release-test _release verify-release-test verify-release
22

33
test:
44
uv run --extra dev pytest
@@ -9,23 +9,14 @@ test-live:
99
clean:
1010
rm -rf dist build *.egg-info
1111

12-
# Distribution to publish/verify. The legacy targets override this with
13-
# PKG=diffbot-python to ship the final diffbot-python release.
12+
# Distribution to publish/verify. Override on the command line to target
13+
# another package, e.g. `make verify-release PKG=... PYPROJECT=...`.
1414
PKG ?= diffbot
1515
PYPROJECT ?= pyproject.toml
1616

1717
build: clean
1818
uv build
1919

20-
# Build the final diffbot-python release into dist/: today's src/diffbot under
21-
# the old name (see legacy/diffbot-python). Staged in build/ because the package
22-
# code lives outside that directory.
23-
build-legacy: clean
24-
mkdir -p build
25-
cp -R legacy/diffbot-python build/legacy
26-
cp -R src build/legacy/src
27-
find build/legacy -name __pycache__ -prune -exec rm -rf {} +
28-
uv build build/legacy --out-dir dist
2920

3021
# Version bumps: edits pyproject.toml in place and prints old => new.
3122
bump-patch:
@@ -113,11 +104,3 @@ verify-release:
113104
uv pip install --quiet --python $$TMP/.venv/bin/python "$(PKG)==$$VERSION" && \
114105
(cd $$TMP && $$TMP/.venv/bin/python -c "import diffbot; print('PyPI install OK:', diffbot.__version__)") && \
115106
rm -rf $$TMP
116-
117-
# Publish the final diffbot-python release. Reuses the targets above with the
118-
# legacy package's name/pyproject; `make build` is swapped for build-legacy.
119-
release-test-legacy: build-legacy
120-
@$(MAKE) --no-print-directory _release-test PKG=diffbot-python PYPROJECT=legacy/diffbot-python/pyproject.toml
121-
122-
release-legacy: build-legacy
123-
@$(MAKE) --no-print-directory _release PKG=diffbot-python PYPROJECT=legacy/diffbot-python/pyproject.toml

‎legacy/diffbot-python/LICENSE‎

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎legacy/diffbot-python/README.md‎

Lines changed: 0 additions & 36 deletions
This file was deleted.

‎legacy/diffbot-python/pyproject.toml‎

Lines changed: 0 additions & 46 deletions
This file was deleted.

‎src/diffbot/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def _installed_version(dist: str):
1313

1414

1515
# The distribution was renamed from diffbot-python to diffbot. The final
16-
# diffbot-python release ships this same code (see legacy/diffbot-python), so
16+
# diffbot-python release ships this same code (tag legacy-diffbot-python-v0.3.0), so
1717
# fall back to its version when that's what is installed.
1818
_legacy_version = _installed_version("diffbot-python")
1919
# "0.0.0" when not installed (e.g. running from a source tree).

0 commit comments

Comments
 (0)