imgbytesizer 0.2.5__tar.gz → 0.2.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. imgbytesizer-0.2.7/.flake8 +3 -0
  2. imgbytesizer-0.2.7/.github/workflows/ci.yml +45 -0
  3. imgbytesizer-0.2.7/.github/workflows/publish.yml +179 -0
  4. imgbytesizer-0.2.7/.gitignore +174 -0
  5. imgbytesizer-0.2.7/.style.yapf +12 -0
  6. imgbytesizer-0.2.7/.vscode/extensions.json +10 -0
  7. imgbytesizer-0.2.7/.vscode/settings.json +15 -0
  8. imgbytesizer-0.2.7/.vulture_ignore.py +12 -0
  9. imgbytesizer-0.2.7/CHANGELOG.md +154 -0
  10. {imgbytesizer-0.2.5 → imgbytesizer-0.2.7}/PKG-INFO +11 -19
  11. {imgbytesizer-0.2.5 → imgbytesizer-0.2.7}/README.md +1 -1
  12. imgbytesizer-0.2.7/cliff.toml +99 -0
  13. imgbytesizer-0.2.7/pyproject.toml +47 -0
  14. imgbytesizer-0.2.7/pytest.ini +9 -0
  15. imgbytesizer-0.2.7/scripts/check_version.py +20 -0
  16. imgbytesizer-0.2.7/scripts/release.sh +46 -0
  17. imgbytesizer-0.2.7/src/imgbytesizer/__init__.py +11 -0
  18. {imgbytesizer-0.2.5 → imgbytesizer-0.2.7}/src/imgbytesizer/logger.py +1 -1
  19. {imgbytesizer-0.2.5 → imgbytesizer-0.2.7}/src/imgbytesizer/resizer.py +1 -1
  20. imgbytesizer-0.2.7/tests/test_formatter.py +12 -0
  21. imgbytesizer-0.2.7/tests/test_logger.py +48 -0
  22. imgbytesizer-0.2.7/tests/test_main.py +128 -0
  23. imgbytesizer-0.2.7/tests/test_resizer.py +410 -0
  24. imgbytesizer-0.2.7/tests/test_utils.py +99 -0
  25. imgbytesizer-0.2.7/tox.ini +44 -0
  26. imgbytesizer-0.2.7/uv.lock +709 -0
  27. imgbytesizer-0.2.5/pyproject.toml +0 -40
  28. imgbytesizer-0.2.5/src/imgbytesizer/__init__.py +0 -7
  29. {imgbytesizer-0.2.5 → imgbytesizer-0.2.7}/LICENSE +0 -0
  30. {imgbytesizer-0.2.5 → imgbytesizer-0.2.7}/src/imgbytesizer/formatter.py +0 -0
  31. {imgbytesizer-0.2.5 → imgbytesizer-0.2.7}/src/imgbytesizer/main.py +0 -0
  32. {imgbytesizer-0.2.5 → imgbytesizer-0.2.7}/src/imgbytesizer/py.typed +0 -0
  33. {imgbytesizer-0.2.5 → imgbytesizer-0.2.7}/src/imgbytesizer/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ [flake8]
2
+ indent-size = 2
3
+ max-line-length = 100
@@ -0,0 +1,45 @@
1
+ name: 🧪 CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ ci:
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23
+ name: ⬇️ Checkout repository
24
+
25
+ - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
26
+ name: 📦 Setup Python
27
+ with:
28
+ python-version: "3.11"
29
+
30
+ - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
31
+ name: 📦 Setup uv
32
+
33
+ - name: 🔍 Install dependencies
34
+ run: uv sync
35
+
36
+ - name: 🧪 Run tests
37
+ run: uv run tox
38
+
39
+ - name: 📊 Upload coverage
40
+ uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
41
+ with:
42
+ files: ./coverage.xml
43
+ fail_ci_if_error: true
44
+ token: ${{ secrets.CODECOV_TOKEN }}
45
+ verbose: true
@@ -0,0 +1,179 @@
1
+ name: 🚀 Publish Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ workflow_dispatch:
9
+ inputs:
10
+ version_tag:
11
+ description: "Tag to use for the release (e.g., v0.1.0)"
12
+ required: true
13
+
14
+ concurrency:
15
+ group: ${{ github.workflow }}-${{ github.ref }}
16
+ cancel-in-progress: true
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ check-version:
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26
+ name: ⬇️ Checkout repository
27
+
28
+ - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
29
+ name: 📦 Setup Python
30
+ with:
31
+ python-version: "3.11"
32
+
33
+ - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
34
+ name: 📦 Setup uv
35
+
36
+ - name: 🔍 Install dependencies
37
+ run: uv sync
38
+
39
+ - name: 🔍 Check version is not already published on PyPI
40
+ run: uv run python scripts/check_version.py
41
+
42
+ release-build:
43
+ runs-on: ubuntu-latest
44
+ needs:
45
+ - check-version
46
+ steps:
47
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
48
+ name: ⬇️ Checkout repository
49
+
50
+ - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
51
+ name: 📦 Setup Python
52
+ with:
53
+ python-version: "3.11"
54
+
55
+ - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
56
+ name: 📦 Setup uv
57
+
58
+ - name: 🔍 Install dependencies
59
+ run: uv sync
60
+
61
+ - name: 🏗 Build release
62
+ run: uv run tox -e build
63
+
64
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
65
+ name: 📤 Upload artifact
66
+ with:
67
+ name: release
68
+ path: dist/
69
+
70
+ pypi-publish:
71
+ runs-on: ubuntu-latest
72
+ needs:
73
+ - release-build
74
+ permissions:
75
+ id-token: write
76
+ environment:
77
+ name: pypi
78
+ url: https://pypi.org/project/imgbytesizer
79
+ steps:
80
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
81
+ name: 📥 Download artifact
82
+ with:
83
+ name: release
84
+ path: dist/
85
+
86
+ - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
87
+ name: 🚀 Publish package
88
+ with:
89
+ user: __token__
90
+ password: ${{ secrets.PYPI_API_TOKEN }}
91
+
92
+ github-release:
93
+ runs-on: ubuntu-latest
94
+ needs:
95
+ - pypi-publish
96
+ permissions:
97
+ contents: write
98
+ id-token: write
99
+ steps:
100
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
101
+ name: ⬇️ Checkout repository
102
+ with:
103
+ fetch-depth: 0
104
+
105
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
106
+ name: 📥 Download artifact
107
+ with:
108
+ name: release
109
+ path: dist/
110
+
111
+ - uses: sigstore/gh-action-sigstore-python@04cffa1d795717b140764e8b640de88853c92acc # v3.3.0
112
+ name: 🔑 Sign artifact
113
+ with:
114
+ inputs: dist/*
115
+
116
+ - name: 🔧 Set TAG_NAME
117
+ run: |
118
+ if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
119
+ echo "TAG_NAME=${{ github.event.inputs.version_tag }}" >> "$GITHUB_ENV"
120
+ else
121
+ echo "TAG_NAME=${GITHUB_REF##*/}" >> "$GITHUB_ENV"
122
+ fi
123
+
124
+ - name: 🛑 Fail if TAG_NAME is unset
125
+ run: |
126
+ if [[ -z "$TAG_NAME" ]]; then
127
+ echo "TAG_NAME is not set!"
128
+ exit 1
129
+ fi
130
+
131
+ - name: 📝 Generate release notes
132
+ uses: orhun/git-cliff-action@c93ef52f3d0ddcdcc9bd5447d98d458a11cd4f72 # v4.7.1
133
+ id: changelog
134
+ with:
135
+ config: cliff.toml
136
+ args: --latest --strip header
137
+
138
+ - name: 🚀 Create GitHub Release
139
+ env:
140
+ GITHUB_TOKEN: ${{ github.token }}
141
+ BODY: ${{ steps.changelog.outputs.content }}
142
+ run: |
143
+ if gh release view "$TAG_NAME" --repo "$GITHUB_REPOSITORY" > /dev/null 2>&1; then
144
+ gh release edit "$TAG_NAME" --repo "$GITHUB_REPOSITORY" --notes "$BODY"
145
+ gh release upload "$TAG_NAME" dist/* --repo "$GITHUB_REPOSITORY" --clobber
146
+ else
147
+ gh release create "$TAG_NAME" dist/* --repo "$GITHUB_REPOSITORY" --notes "$BODY"
148
+ fi
149
+
150
+ update-changelog:
151
+ runs-on: ubuntu-latest
152
+ needs:
153
+ - github-release
154
+ permissions:
155
+ contents: write
156
+ steps:
157
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
158
+ name: ⬇️ Checkout repository
159
+ with:
160
+ fetch-depth: 0
161
+ ref: main
162
+
163
+ - name: 📝 Generate full changelog
164
+ uses: orhun/git-cliff-action@c93ef52f3d0ddcdcc9bd5447d98d458a11cd4f72 # v4.7.1
165
+ with:
166
+ config: cliff.toml
167
+ args: --output CHANGELOG.md
168
+
169
+ - name: 📤 Commit and push changelog
170
+ run: |
171
+ git config user.name "github-actions[bot]"
172
+ git config user.email "github-actions[bot]@users.noreply.github.com"
173
+ if git diff --quiet CHANGELOG.md; then
174
+ echo "No changelog changes to commit"
175
+ else
176
+ git add CHANGELOG.md
177
+ git commit -m "docs: update CHANGELOG.md for ${GITHUB_REF##*/}"
178
+ git push origin main
179
+ fi
@@ -0,0 +1,174 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+
110
+ # pdm
111
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112
+ #pdm.lock
113
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114
+ # in version control.
115
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116
+ .pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
169
+
170
+ # Ruff stuff:
171
+ .ruff_cache/
172
+
173
+ # PyPI configuration file
174
+ .pypirc
@@ -0,0 +1,12 @@
1
+ [style]
2
+ based_on_style = pep8
3
+ indent_width = 2
4
+ column_limit = 100
5
+ split_before_named_assigns = true
6
+ split_before_expression_after_opening_paren = true
7
+ allow_multiline_lambdas = true
8
+ dedent_closing_brackets = true
9
+ coalesce_brackets = false
10
+ split_complex_comprehension = true
11
+ each_dict_entry_on_separate_line = true
12
+ split_before_first_argument = true
@@ -0,0 +1,10 @@
1
+ {
2
+ "recommendations": [
3
+ "ms-python.python",
4
+ "ms-python.debugpy",
5
+ "ms-python.vscode-pylance",
6
+ "ms-python.flake8",
7
+ "astral-sh.ty",
8
+ "eeyore.yapf"
9
+ ]
10
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "editor.tabSize": 2,
3
+ "editor.insertSpaces": true,
4
+ "[python]": {
5
+ "editor.tabSize": 2,
6
+ "editor.insertSpaces": true,
7
+ "editor.formatOnSaveMode": "file",
8
+ "editor.formatOnSave": true,
9
+ "editor.defaultFormatter": "eeyore.yapf"
10
+ },
11
+ "sonarlint.connectedMode.project": {
12
+ "connectionId": "pyyupsk",
13
+ "projectKey": "pyyupsk_imgbytesizer"
14
+ }
15
+ }
@@ -0,0 +1,12 @@
1
+ # This file is used by vulture to mark certain symbols as used,
2
+ # even if they're not explicitly referenced in the code.
3
+
4
+ from unittest.mock import Mock
5
+
6
+ from PIL import ImageFile
7
+
8
+ # Required to allow PIL to load incomplete/truncated images.
9
+ ImageFile.LOAD_TRUNCATED_IMAGES # imgbytesizer/resizer.py
10
+
11
+ _mock = Mock()
12
+ _mock.side_effect # tests/test_main.py
@@ -0,0 +1,154 @@
1
+ # Changelog
2
+
3
+ All notable changes to imgbytesizer will be documented in this file.
4
+
5
+ ## [0.2.6] - 2026-04-14
6
+
7
+ ### 🐛 Bug Fixes
8
+
9
+ - Resolve ty type checker errors in logger and resizer
10
+
11
+ ### 💼 Other
12
+
13
+ - Migrate from poetry to uv
14
+ - Add release automation with git-cliff and release script
15
+
16
+ ### ⚙️ Miscellaneous Tasks
17
+
18
+ - Update CHANGELOG for v0.2.5 release date change to 2025-05-25
19
+ - Pin actions to commit SHAs and bump Python to 3.10
20
+ ## [0.2.5] - 2025-05-25
21
+
22
+ ### 📚 Documentation
23
+
24
+ - Add Quality Gate Status badge to README for better visibility of code quality
25
+
26
+ ### 🧪 Testing
27
+
28
+ - Add and improve tests for image setup, format conversion, and size adjustments
29
+
30
+ ### ⚙️ Miscellaneous Tasks
31
+
32
+ - Refactor resize_to_target_filesize; add image helpers for setup, format, scaling; improve clarity
33
+ ## [0.2.4] - 2025-05-19
34
+
35
+ ### ⚙️ Miscellaneous Tasks
36
+
37
+ - Switch from build to poetry for package building, add poetry.lock, and remove requirements files
38
+ - Update poetry.lock; adjust tox.ini for command order and cleanup
39
+ - Add CI workflow for automated testing and coverage reporting; update publish workflow for Poetry integration
40
+ - Add imgbytesizer script entry point in pyproject.toml
41
+ - Tidy up imports in logger, resizer, and test files for better readability
42
+ ## [0.2.3] - 2025-05-14
43
+
44
+ ### 🐛 Bug Fixes
45
+
46
+ - Update type checking to use 'ty', adjust file size formatting, and clean up logger setup
47
+
48
+ ### 🚜 Refactor
49
+
50
+ - Enhance type annotations, improve file size formatting, and streamline logger setup
51
+
52
+ ### 📚 Documentation
53
+
54
+ - Update README and main.py for consistent example formatting and added version flag
55
+
56
+ ### ⚙️ Miscellaneous Tasks
57
+
58
+ - Add script to sort requirements files and ensure consistent ordering
59
+ - Replace mypy type checker with 'ty' in VSCode extensions
60
+ - Add pyfiglet dependency, enhance type annotations in logger and main modules, and tidy up imports
61
+ - Add virtual environment setup in GitHub Actions for publish and test workflows
62
+ - Activate virtual environment in GitHub Actions for build, test, and lint jobs
63
+ - Activate virtual environment in publish workflow before version check
64
+ ## [0.2.2] - 2025-05-13
65
+
66
+ ### 🚜 Refactor
67
+
68
+ - Clean up formatter and logger by removing unused functions and consolidating imports
69
+
70
+ ### 🧪 Testing
71
+
72
+ - Add comprehensive tests for main functionality and resizer edge cases
73
+ - Add entrypoint test and improve utility tests for image handling
74
+
75
+ ### ⚙️ Miscellaneous Tasks
76
+
77
+ - Update Makefile and requirements for linting and formatting improvements
78
+ - Add GitHub Actions workflow for testing and linting, update file size formatting function
79
+ - Update Makefile to run tests with coverage and add pytest-cov to requirements
80
+ - Add requirements.txt installation step to GitHub Actions workflow
81
+ - Add editable install step for local development in GitHub Actions workflow
82
+ - Update codecov action to v5 and add token and verbose options in GitHub Actions workflow
83
+ - Remove isort from formatting and requirements, update code style in imports
84
+ - Add Codecov badge to README for better visibility of test coverage
85
+ - Update formatting and linting configurations, add YAPF style guide, and adjust flake8 settings
86
+ - Add mypy type checker and YAPF formatter to VSCode extensions
87
+ - Update Makefile and GitHub Actions for improved linting and type checking
88
+ ## [0.2.1] - 2025-05-12
89
+
90
+ ### 🚀 Features
91
+
92
+ - Enhance GitHub Actions workflow to create or update releases based on existence, improving asset handling
93
+ - Add testing framework with pytest, update Makefile for test execution, and configure flake8 for code style enforcement
94
+ - Update Makefile for improved linting and formatting, add ruff for linting and autofix, enhance type hints across the codebase
95
+ - Enhance image resizing logic with combined scaling and quality adjustment, improve error handling, and extend quality range for better results
96
+ - Add CI tests to GitHub Actions workflow, including Python setup and dependency installation
97
+
98
+ ### 🐛 Bug Fixes
99
+
100
+ - Update TAG_NAME assignment in GitHub Actions workflow to prioritize version_tag over github.ref_name for better release tagging
101
+ - Adjust _adjust_to_exact_size function to remove unnecessary parameter
102
+
103
+ ### 📚 Documentation
104
+
105
+ - Update README example output to reflect new image dimensions, sizes, and processing times for imgbytesizer
106
+
107
+ ### ⚙️ Miscellaneous Tasks
108
+
109
+ - Bump version to 0.2.1 in pyproject.toml and __init__.py
110
+ - Add requirements installation step in GitHub Actions workflow
111
+ - Update GitHub Actions workflow to use Makefile for testing and building
112
+ - Remove redundant test job from GitHub Actions workflow, simplifying CI process
113
+ ## [0.2.0] - 2025-05-10
114
+
115
+ ### 🚀 Features
116
+
117
+ - Add version check script and enhance GitHub Actions workflow for dependency installation and version validation
118
+ - Bump version to 0.2.0, add author and description, enhance logging and terminal output features
119
+ - Add vulture ignore file, enhance Makefile for linting, and update dev dependencies
120
+ - Update CHANGELOG for version 0.2.0, document new features, changes, and fixes
121
+ - Improve JPEG handling in _adjust_to_exact_size function
122
+
123
+ ### 📚 Documentation
124
+
125
+ - Update README with new command-line options and example output for imgbytesizer
126
+
127
+ ### ⚙️ Miscellaneous Tasks
128
+
129
+ - Add Makefile for build and lint tasks, update development dependencies
130
+ ## [0.1.0] - 2025-05-09
131
+
132
+ ### 🚀 Features
133
+
134
+ - Init commit with setup files
135
+ - Enhance image resizing tool with progress indicators and detailed output
136
+ - Add LICENSE and project metadata for imgbytesizer CLI tool
137
+ - Add GitHub Actions workflow for automated release publishing
138
+ - Implement core functionality for imgbytesizer CLI tool with image resizing and utility functions
139
+ - Enhance GitHub Actions workflow to support manual version tagging and improve release asset handling
140
+
141
+ ### 🐛 Bug Fixes
142
+
143
+ - Update Python version requirement to 3.9
144
+
145
+ ### 📚 Documentation
146
+
147
+ - Add README.md with usage instructions, features, and examples for ImgByteSizer
148
+ - Add CHANGELOG.md for version 0.1.0 with initial release details
149
+
150
+ ### ⚙️ Miscellaneous Tasks
151
+
152
+ - Add .gitignore file to exclude unnecessary files from version control
153
+ - Add VSCode extensions recommendations for Python development
154
+ - Update dependencies to use requirements-dev.txt for development and remove outdated build dependency from requirements.txt
@@ -1,28 +1,21 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.5
2
2
  Name: imgbytesizer
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: A CLI tool to resize images to a target file size.
5
- License: MIT
6
- Keywords: image,resize,compression,cli,optimize
7
- Author: pyyupsk
8
- Author-email: contact@fasu.dev
9
- Requires-Python: >=3.9
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.9
13
- Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.11
15
- Classifier: Programming Language :: Python :: 3.12
16
- Classifier: Programming Language :: Python :: 3.13
17
- Requires-Dist: pillow (>=11.2.1,<12.0.0)
18
- Requires-Dist: pyfiglet (>=1.0.2,<2.0.0)
19
- Requires-Dist: tabulate (>=0.9.0,<0.10.0)
5
+ Author-email: pyyupsk <contact@fasu.dev>
6
+ License: MIT License
7
+ License-File: LICENSE
8
+ Keywords: cli,compression,image,optimize,resize
9
+ Requires-Python: >=3.11
10
+ Requires-Dist: pillow<14.0.0,>=13.0.0
11
+ Requires-Dist: pyfiglet<2.0.0,>=1.0.2
12
+ Requires-Dist: tabulate<0.10.0,>=0.9.0
20
13
  Description-Content-Type: text/markdown
21
14
 
22
15
  # ImgByteSizer
23
16
 
24
17
  [![PyPI version](https://img.shields.io/pypi/v/imgbytesizer.svg)](https://pypi.org/project/imgbytesizer/)
25
- [![PyPI Downloads](https://static.pepy.tech/badge/imgbytesizer)](https://pepy.tech/projects/imgbytesizer)
18
+ [![PyPI Downloads](https://img.shields.io/pypi/dm/imgbytesizer.svg)](https://pypistats.org/packages/imgbytesizer)
26
19
  [![codecov](https://codecov.io/gh/pyyupsk/imgbytesizer/graph/badge.svg?token=GJH6N3ZAJS)](https://codecov.io/gh/pyyupsk/imgbytesizer)
27
20
  [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=pyyupsk_imgbytesizer&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=pyyupsk_imgbytesizer)
28
21
 
@@ -202,4 +195,3 @@ Contributions are welcome! Feel free to submit issues or pull requests.
202
195
  ## License
203
196
 
204
197
  This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
205
-
@@ -1,7 +1,7 @@
1
1
  # ImgByteSizer
2
2
 
3
3
  [![PyPI version](https://img.shields.io/pypi/v/imgbytesizer.svg)](https://pypi.org/project/imgbytesizer/)
4
- [![PyPI Downloads](https://static.pepy.tech/badge/imgbytesizer)](https://pepy.tech/projects/imgbytesizer)
4
+ [![PyPI Downloads](https://img.shields.io/pypi/dm/imgbytesizer.svg)](https://pypistats.org/packages/imgbytesizer)
5
5
  [![codecov](https://codecov.io/gh/pyyupsk/imgbytesizer/graph/badge.svg?token=GJH6N3ZAJS)](https://codecov.io/gh/pyyupsk/imgbytesizer)
6
6
  [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=pyyupsk_imgbytesizer&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=pyyupsk_imgbytesizer)
7
7