Metadata-Version: 2.4
Name: kotti2_image
Version: 3.0.1
Summary: Image content type for Kotti2 (Python 3.12 + SQLAlchemy 2.0)
Home-page: https://github.com/Kotti/kotti_image
Author: Kotti Developers
Author-email: kotti@googlegroups.com
License: BSD-derived (http://www.repoze.org/LICENSE.txt)
Keywords: kotti kotti2 web cms image
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Framework :: Pylons
Classifier: Framework :: Pyramid
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
Classifier: License :: Repoze Public License
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
Requires-Dist: Kotti2>=3.0.0
Requires-Dist: Pillow
Requires-Dist: plone.scale
Provides-Extra: testing
Requires-Dist: WebTest; extra == "testing"
Requires-Dist: mock; extra == "testing"
Requires-Dist: Pillow; extra == "testing"
Requires-Dist: pyquery; extra == "testing"
Requires-Dist: pytest>=6.0.0; extra == "testing"
Requires-Dist: pytest-cov; extra == "testing"
Requires-Dist: zope.testbrowser>=5.0.0; extra == "testing"
Provides-Extra: development
Requires-Dist: Kotti[development]; extra == "development"
Requires-Dist: pyramid_debugtoolbar; extra == "development"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: summary

kotti2_image
************

This is an extension to Kotti2 that allows you to add images to your site.

**This package is only compatible with Kotti2 version 3.0.0 and later.**

.. image:: https://img.shields.io/pypi/v/kotti2_image.svg?style=flat-square
    :target: https://pypi.org/project/kotti2_image/
    :alt: PyPI Version

.. image:: https://img.shields.io/pypi/l/kotti2_image.svg?style=flat-square
    :target: http://www.repoze.org/LICENSE.txt
    :alt: License

`Find out more about Kotti2`_

.. _Find out more about Kotti2: https://pypi.org/project/Kotti2/

Setup
=====

To enable the extension in your Kotti2 site::

    pip install kotti2_image

Then activate the configurator in your INI file::

    kotti.configurators =
        kotti_image.kotti_configure

Configuration
=============

The initial release doesn't provide any configuration options.
Custom configuration of image scales will be available in future releases.

Upgrading
=========

If you are upgrading from a previous version you might have to migrate your database.
The migration is performed with `alembic`_ and Kotti's console script ``kotti-migrate``.
To migrate, run ``kotti-migrate <your.ini> upgrade --scripts=kotti_image:alembic`` (or ``kotti-migrate <your.ini> upgrade_all`` to run all Kotti and add on migrations).

For integration of alembic in your environment please refer to the `alembic documentation`_.

Development
===========

Contributions to kotti2_image are highly welcome.

.. _alembic: http://pypi.python.org/pypi/alembic
.. _alembic documentation: http://alembic.readthedocs.org/en/latest/index.html


History
=======

3.0.1 - 2026-04-23
------------------

- **Packaging improvements**:
  - Fixed line ending issues in setup.py (Windows CRLF to LF conversion)
- **No functional changes**: This is a packaging-only release

3.0.0 - 2026-04-23
------------------

- **Package renamed to kotti2_image** for PyPI
- **Major version upgrade**: Python 3.12 + SQLAlchemy 2.0 support
- Require Kotti2 >= 3.0.0
- Full test coverage: 3/3 tests passing (100%)

2.0.0 - 2022-xx-xx
------------------

- Drop support for Python 2.
- Remove dependency from ``rfc_6266_parser`` and use
  ``depot.utils.make_content_disposition`` instead.

1.0.1 - 2018-03-16
------------------

- Use ``rfc_6266_parser`` instead of unmaintained ``rfc_6266`` package.
- Fix tests for Kotti >= 2.0.0 / Python 3.x.

1.0.0 - 2018-01-17
------------------

- No functional changes.  Maintainance release for Kotti 1.x.
- Integrate filedepot tween / filter test from Kotti < 2.0.0.

0.1.4 - 2016-10-09
------------------

- Correctly declare dependencies.

0.1.3 - 2016-01-04
------------------

- Include (empty) ``alembic/versions`` directory in distribution to avoid
  warnings.

0.1.2 - 2015-12-21
------------------

- Use rfc6266 and unidecode for content disposition header.

0.1.1 - 2015-12-16
------------------

- Fix broken packaging.

0.1.0 - 2015-12-16
------------------

This initial version is completely identical to what has been in Kotti core
before Kotti 1.3.0-dev.  **Don't even try to install with those versions!**

- Move all image related code from Kotti core into this package.
- Create package with ``pcreate -s kotti kotti_image``.
