Skip to content

Commit

Permalink
update changelog, add pypi commands to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
François Leblanc committed Jan 15, 2019
1 parent 4b40aaa commit 05362d8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
RED=\033[0;31m
NC=\033[0m # No Color

pypi-test:
setup.py sdist
twine upload dist/* -r testpypi

pypi: pypi-test
twine upload dist/*

check:
@printf "${RED}Running flake8${NC}\n"
@flake8 --exclude=./env --count .
Expand Down
18 changes: 12 additions & 6 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
# Autocrop changelog

## 0.2.1

### Changes
* Add `-r`, `--reject` flag to specify directory where the images that autocrop *couldn't* find a face in are directed to.
* Instead of having the target files copied then cropped, they are instead cropped and saved to their respective target folder.

## 0.2.0

### Changes
* Add -o, --output flag to specify directory where cropped images are to be dumped.
- Error out if output folder set to current directory, i.e. -o .
* Add `-o`, `--output` flag to specify directory where cropped images are to be dumped.
- Error out if output folder set to current directory, i.e. `-o .`
- If directory doesn't exist yet, create it.
- If no face can be found in an image in batch, it is still copied over to -o folder.
- If no face can be found in an image in batch, it is still copied over to `-o` folder.
- If no output folder is added, ask for confirmation ([Y]/n), and destructively crop images in-place.
* Use -i, --input flags as synonyms for -p or --path: symmetrical in meaning to "output".
* Use `-i`, `--input` flags as synonyms for `-p` or `--path`: symmetrical in meaning to "output".
- Is now standard nomenclature in documentation.
* --input or --path flag is now optional.
- Standard behaviour without input folder is to non-recursively process all images in immediate folder, i.e. -p . as currently implemented.
* `--input` or `--path` flag is now optional.
- Standard behaviour without input folder is to non-recursively process all images in immediate folder, i.e. `-p .` as currently implemented.

### Breaks
* Removed all mentions of the hard-coded 'bkp' and 'crop' folders
Expand Down

0 comments on commit 05362d8

Please sign in to comment.