Skip to content

Commit f712d6c

Browse files
committed
Complete rename: update CI, Docker, SECURITY, and source strings to Wayback-Diff
1 parent adfbe96 commit f712d6c

File tree

9 files changed

+36
-22
lines changed

9 files changed

+36
-22
lines changed

.github/workflows/dockerhub-description.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
with:
1717
username: ${{ secrets.DOCKERHUB_USERNAME }}
1818
password: ${{ secrets.DOCKERHUB_TOKEN }}
19-
repository: drumsergio/website-diff
19+
repository: drumsergio/wayback-diff

.github/workflows/main.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ on:
1010

1111
env:
1212
REGISTRY: docker.io
13-
IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/website-diff
13+
IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/wayback-diff
14+
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
1415

1516
jobs:
1617
test:
@@ -182,23 +183,36 @@ jobs:
182183
dist/*.tar.gz
183184
name: Release ${{ steps.tag_version.outputs.version }}
184185
body: |
185-
## Website-Diff ${{ steps.tag_version.outputs.version }}
186-
186+
## Wayback-Diff ${{ steps.tag_version.outputs.version }}
187+
187188
### Installation
188189
```bash
189-
pip install website-diff==${{ steps.tag_version.outputs.version }}
190+
pip install wayback-diff==${{ steps.tag_version.outputs.version }}
190191
```
191-
192+
192193
### Docker
193194
```bash
194195
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.tag_version.outputs.version }}
195196
```
196-
197+
197198
### Changes
198199
See [CHANGELOG](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for details.
199-
200+
200201
### Downloads
201-
- Source distribution: `website-diff-${{ steps.tag_version.outputs.version }}.tar.gz`
202-
- Wheel: `website_diff-${{ steps.tag_version.outputs.version }}-py3-none-any.whl`
202+
- Source distribution: `wayback_diff-${{ steps.tag_version.outputs.version }}.tar.gz`
203+
- Wheel: `wayback_diff-${{ steps.tag_version.outputs.version }}-py3-none-any.whl`
203204
draft: false
204205
prerelease: false
206+
207+
- name: Install build tools
208+
run: pip install build twine
209+
210+
- name: Build package
211+
run: python3 -m build
212+
213+
- name: Publish to PyPI
214+
if: ${{ env.PYPI_TOKEN != '' }}
215+
env:
216+
TWINE_USERNAME: __token__
217+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
218+
run: twine upload dist/*

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ COPY . .
2121
RUN pip install --no-cache-dir -e .
2222

2323
# Set entrypoint
24-
ENTRYPOINT ["website-diff"]
24+
ENTRYPOINT ["wayback-diff"]

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
### Reporting a Vulnerability
7474

7575
If you discover a security vulnerability, please report it via:
76-
- GitHub Security Advisories: https://github.com/GeiserX/Website-Diff/security/advisories
76+
- GitHub Security Advisories: https://github.com/GeiserX/Wayback-Diff/security/advisories
7777
- Email: sergio@geiser.cloud
7878

7979
Please include:

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"""Tests for Website-Diff."""
1+
"""Tests for Wayback-Diff."""

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_format_output_text(self):
3232

3333
output = format_output(changes, summary, 'text')
3434

35-
assert 'WEBSITE DIFF SUMMARY' in output
35+
assert 'WAYBACK DIFF SUMMARY' in output
3636
assert 'Total changes: 5' in output
3737
assert 'HIGH SIGNIFICANCE CHANGES' in output
3838

website_diff/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
"""Website-Diff: A comprehensive tool for comparing web pages with Wayback Machine support."""
1+
"""Wayback-Diff: A comprehensive tool for comparing web pages with Wayback Machine support."""
22

33
__version__ = "0.1.0"

website_diff/cli.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Command-line interface for Website-Diff."""
1+
"""Command-line interface for Wayback-Diff."""
22

33
import argparse
44
import sys
@@ -44,7 +44,7 @@ def format_output(changes: list, summary: dict, output_format: str = "text") ->
4444
else: # text format
4545
lines = []
4646
lines.append("=" * 80)
47-
lines.append("WEBSITE DIFF SUMMARY")
47+
lines.append("WAYBACK DIFF SUMMARY")
4848
lines.append("=" * 80)
4949
lines.append(f"Total changes: {summary['total_changes']}")
5050
lines.append(f" Added: {summary['added']}")
@@ -109,16 +109,16 @@ def main():
109109
epilog="""
110110
Examples:
111111
# Compare two URLs
112-
website-diff https://example.com/page1 https://example.com/page2
112+
wayback-diff https://example.com/page1 https://example.com/page2
113113
114114
# Compare with Wayback Machine URLs (auto-cleans artifacts)
115-
website-diff https://web.archive.org/web/20230101/https://example.com/ https://example.com/
115+
wayback-diff https://web.archive.org/web/20230101/https://example.com/ https://example.com/
116116
117117
# Save output to file
118-
website-diff url1 url2 -o diff.txt
118+
wayback-diff url1 url2 -o diff.txt
119119
120120
# Output as JSON
121-
website-diff url1 url2 --format json
121+
wayback-diff url1 url2 --format json
122122
"""
123123
)
124124

website_diff/report_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def generate_comparison_report(self,
262262
# Footer
263263
lines.append("---")
264264
lines.append("")
265-
lines.append("*Report generated by Website-Diff*")
265+
lines.append("*Report generated by Wayback-Diff*")
266266
lines.append("")
267267

268268
return "\n".join(lines)

0 commit comments

Comments
 (0)