Skip to content

Commit

Permalink
Dropped Python 3.8 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Dec 30, 2023
1 parent 29322e7 commit a3dd6be
Show file tree
Hide file tree
Showing 11 changed files with 189 additions and 70 deletions.
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ repos:
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.13.0
hooks:
- id: blacken-docs
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ sphinx:
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: requirements-doc.txt
- requirements: requirements-doc.txt
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -671,4 +671,4 @@ into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
232 changes: 182 additions & 50 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Security",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -45,7 +44,7 @@ stegano-steganalysis-parity = "bin.parity:main"
stegano-steganalysis-statistics = "bin.statistics:main"

[tool.poetry.dependencies]
python = ">=3.8.1,<3.13"
python = ">=3.9,<3.13"
pillow = ">=9.5,<11.0"
piexif = "^1.1.3"
crayons = "^0.4.0"
Expand All @@ -56,6 +55,7 @@ mypy = "^1.2.0"
flake8 = "^6.0.0"
nose2 = "^0.12.0"
Sphinx = "^6.2.1"
pre-commit = "^3.6.0"

[build-system]
requires = ["poetry>=1.3.2"]
Expand Down
7 changes: 1 addition & 6 deletions stegano/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from . import red
from . import exifHeader
from . import lsb

from . import steganalysis
from . import exifHeader, lsb, red, steganalysis

__all__ = ["red", "exifHeader", "lsb", "steganalysis"]
1 change: 0 additions & 1 deletion stegano/exifHeader/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from .exifHeader import hide, reveal

Expand Down
1 change: 0 additions & 1 deletion stegano/lsb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from .lsb import hide, reveal

Expand Down
1 change: 0 additions & 1 deletion stegano/red/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from .red import hide, reveal

Expand Down
1 change: 0 additions & 1 deletion stegano/steganalysis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
4 changes: 2 additions & 2 deletions tests/test_steganalysis.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Stegano - Stegano is a pure Python steganography module.
# Copyright (C) 2010-2017 Cédric Bonhomme - https://www.cedricbonhomme.org
Expand Down Expand Up @@ -27,9 +26,10 @@

import unittest

from PIL import Image, ImageChops

from stegano import lsb
from stegano.steganalysis import parity, statistics
from PIL import Image, ImageChops


class TestSteganalysis(unittest.TestCase):
Expand Down

0 comments on commit a3dd6be

Please sign in to comment.