Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename CLI and entry point to exif-stripper
Browse files Browse the repository at this point in the history
stefmolin committed Nov 13, 2024
1 parent 9be529c commit 62b9131
Showing 4 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- id: strip-exif
name: strip-exif
description: This hook ensures that no image metadata (EXIF) is present on images added to version control.
entry: strip-exif
name: Strip EXIF metadata
description: |
This hook ensures that no image metadata (EXIF) is present on images added to version control.
entry: exif-stripper
language: python
types: [image]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -73,13 +73,13 @@ First, install the `exif-stripper` package from PyPI:
$ python -m pip install exif-stripper
```

Then, use the `strip-exif` entry point on the file(s) of your choice:
Then, use the `exif-stripper` entry point on the file(s) of your choice (use `strip-exif` for versions before 0.6.0):

```shell
$ strip-exif /path/to/file [/path/to/another/file]
$ exif-stripper /path/to/file [/path/to/another/file]
```

Run `strip-exif --help` for more information.
Run `exif-stripper --help` for more information.

### Python

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ optional-dependencies.dev = [
]
urls.Documentation = "https://github.com/stefmolin/exif-stripper"
urls.Homepage = "https://github.com/stefmolin/exif-stripper"
scripts.strip-exif = "exif_stripper.cli:main"
scripts.exif-stripper = "exif_stripper.cli:main"

[tool.setuptools.packages.find]
where = [
2 changes: 1 addition & 1 deletion src/exif_stripper/cli.py
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@

from . import __version__, process_image

PROG = 'strip-exif'
PROG = 'exif-stripper'


def main(argv: Sequence[str] | None = None) -> int:

0 comments on commit 62b9131

Please sign in to comment.