Skip to content

Commit

Permalink
First release
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsca committed Apr 25, 2022
1 parent 52f134e commit 6d82529
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 32 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
test:
pytest -x proper_image tests
pytest -x image_processing tests

lint:
flake8 --config=setup.cfg proper_image tests
flake8 --config=setup.cfg image_processing tests

coverage:
pytest --cov-report html --cov proper_image --cov tests proper_image tests
pytest --cov-report html --cov image_processing --cov tests image_processing tests

install:
pip install -U pip wheel
pip install -e .[dev,test]
# pre-commit install

install-tests:
pip install -U pip wheel
pip install -e .[test]
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Proper Image
# ImageProcessing 🥚

![Tests status](https://github.com/jpsca/proper-image/workflows/Tests/badge.svg)
![Tests status](https://github.com/jpsca/image-processing/workflows/Tests/badge.svg)

Provides higher-level image processing helpers that are commonly needed when handling image uploads.

Expand All @@ -26,7 +26,7 @@ $ sudo apt install libvips
2. Install this library with pip, or add it to your requirements/dependencies:

```sh
pip install proper-image
pip install image-processing-egg
```


Expand All @@ -36,7 +36,7 @@ Processing is performed through the **`ImageProcessing`** class that
uses a chainable API for defining the processing pipeline:

```python
from proper_image import ImageProcessing
from image_processing import ImageProcessing

processed = (
ImageProcessing(source_path)
Expand All @@ -51,7 +51,7 @@ processed #=> /temp/.../20180316-18446-1j247h6.png>
This allows easy branching when generating multiple derivates:

```python
from proper_image import ImageProcessing
from image_processing import ImageProcessing

pipeline = ImageProcessing(source_path).convert("png")

Expand Down Expand Up @@ -120,7 +120,7 @@ pipeline.save("/path/to/destination")

## Credits

This library is a port of the Ruby [ImageProcessing gem][gem] to Python.
This library is a port of the Ruby [image_processing gem][gem] to Python.


## License
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 10 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
[metadata]
name = proper-image
version = 0.0.1
url = https://github.com/jpsca/proper-image
name = image-processing-egg
version = 0.1
url = https://github.com/jpsca/image-processing
project_urls =
Issue tracker = https://github.com/jpsca/proper-image/issues
Issue tracker = https://github.com/jpsca/image-processing/issues
author = Juan-Pablo Scaletti
author_email = [email protected]
classifiers =
Development Status :: 3 - Alpha
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Software Development :: Libraries
Topic :: Scientific/Engineering :: Image Processing
Typing :: Typed
license = MIT
license_files = MIT-LICENSE
description = High-level image processing wrapper for libvips
long_description = file:README.md
long_description_content_type = text/markdown
keywords =

[options]
packages = find:
Expand Down Expand Up @@ -48,8 +50,8 @@ dev =
tox

[flake8]
application-package-names = proper_image
application-import-names = proper_image
application-package-names = image_processing
application-import-names = image-processing
import-order-style = pycharm

select =
Expand Down
2 changes: 1 addition & 1 deletion tests/test_composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest
import pyvips
from proper_image import ImageProcessing
from image_processing import ImageProcessing

from .utils import (
assert_different,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pytest

from proper_image import ImageProcessing
from image_processing import ImageProcessing


str_source = "source1.gif"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_resize_and_pad.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

import pyvips
from proper_image import ImageProcessing
from proper_image.vips_processor import SHARPEN_MASK
from image_processing import ImageProcessing
from image_processing.vips_processor import SHARPEN_MASK

from .utils import (
assert_different,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_resize_to_fill.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from proper_image import ImageProcessing
from proper_image.vips_processor import SHARPEN_MASK
from image_processing import ImageProcessing
from image_processing.vips_processor import SHARPEN_MASK

from .utils import (
assert_different,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_resize_to_fit.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from proper_image import ImageProcessing
from proper_image.vips_processor import SHARPEN_MASK
from image_processing import ImageProcessing
from image_processing.vips_processor import SHARPEN_MASK

from .utils import (
assert_dimensions,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_resize_to_limit.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from proper_image import ImageProcessing
from proper_image.vips_processor import SHARPEN_MASK
from image_processing import ImageProcessing
from image_processing.vips_processor import SHARPEN_MASK

from .utils import (
assert_dimensions,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_rotate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from proper_image import ImageProcessing
from image_processing import ImageProcessing

from .utils import assert_dimensions, fixture_image

Expand Down
2 changes: 1 addition & 1 deletion tests/test_vips_processor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
import pyvips
from proper_image import ImageProcessing
from image_processing import ImageProcessing

from .utils import (
assert_dimensions,
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ envlist = py310,py39,py38,py37
skip_install = true
commands =
pip install -U pip .[test]
pytest -x proper_image tests
pytest -x image_processing tests

[coverage:run]
branch = True
Expand Down

0 comments on commit 6d82529

Please sign in to comment.