Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .editorconfig

This file was deleted.

2 changes: 1 addition & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ updates:
patterns:
- "*"

- package-ecosystem: pip
- package-ecosystem: uv
directory: /
schedule:
interval: daily
Expand Down
41 changes: 30 additions & 11 deletions .github/workflows/publishing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,52 @@ on: push
jobs:
build:
name: Build
permissions:
contents: read
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install pypa/build
run: pip install build
- name: Build a binary wheel and a source tarball
run: python -m build
- uses: astral-sh/setup-uv@v6
- name: Setup Python
run: uv python install 3.14
- name: Build wheel and source tarball
run: uv build
- uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/')
validate:
name: Validate dist
needs:
- build
permissions: {}
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v5
with:
name: python-package-distributions
path: dist/
- uses: astral-sh/setup-uv@v6
- name: Setup Python
run: uv python install 3.14
- name: Validate dist
run: uv run --with twine twine check dist/*

publish:
environment:
name: pypi
url: https://pypi.org/p/simyan
url: https://pypi.org/p/Simyan
if: startsWith(github.ref, 'refs/tags/')
name: Publish to PyPI
needs:
- build
- validate
permissions:
id-token: write
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v5
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,20 @@ jobs:
fail-fast: false
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- '3.14'
os:
- ubuntu-latest
- macos-latest
- windows-latest

permissions:
contents: read
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v6
Expand All @@ -43,10 +47,15 @@ jobs:
env:
COMICVINE__API_KEY: IGNORED
run: uv run pytest

collector:
needs: [pytest]
if: always()
needs:
- pytest

permissions: {}
runs-on: ubuntu-latest

steps:
- name: Check for failures
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
Expand Down
20 changes: 17 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.2
rev: v0.14.0
hooks:
- id: ruff-format
- id: ruff-check
Expand All @@ -16,19 +16,27 @@ repos:
- --wrap=keep
exclude: ".github\/ISSUE_TEMPLATE\/.*.md"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
# - id: check-executables-have-shebangs
- id: check-illegal-windows-names
# - id: check-json
- id: check-merge-conflict
args:
- --assume-in-merge
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-vcs-permalinks
# - id: check-xml
- id: check-yaml
args:
- --allow-multiple-documents
- id: debug-statements
- id: end-of-file-fixer
exclude_types:
- json
Expand All @@ -39,11 +47,17 @@ repos:
args:
- --fix=auto
- id: name-tests-test
# - id: pretty-format-json
# args:
# - --autofix
# - --indent=2
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
exclude_types:
- svg
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.2
rev: v0.24.3
hooks:
- id: toml-sort
args:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
os: ubuntu-24.04
tools:
python: "3.13"
jobs:
Expand Down
36 changes: 17 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ requires = ["hatchling"]

[dependency-groups]
dev = [
"pre-commit >= 4.2.0"
"pre-commit >= 4.3.0"
]
docs = [
"mkdocs >= 1.6.1",
"mkdocs-include-markdown-plugin >= 7.1.2",
"mkdocs >= 1.6.0",
"mkdocs-include-markdown-plugin >= 7.2.0",
"mkdocs-material >= 9.6.0",
"mkdocstrings[python] >= 0.29.0"
"mkdocstrings[python] >= 0.30.0"
]
tests = [
"pytest >= 8.4.0",
"pytest-cov >= 6.2.0",
"tox >= 4.27.0",
"tox-uv >= 1.26.0"
"pytest-cov >= 7.0.0",
"tox >= 4.30.0",
"tox-uv >= 1.28.0"
]

[project]
Expand All @@ -26,37 +26,35 @@ authors = [
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Framework :: Pydantic :: 2",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python",
"Topic :: Internet",
"Typing :: Typed"
]
dependencies = [
"eval-type-backport >= 0.2.0; python_version < '3.10'",
"pydantic >= 2.11.0",
"pyrate-limiter >= 3.7.1",
"requests >= 2.32.3"
"pydantic >= 2.12.0",
"pyrate-limiter >= 3.9.0",
"requests >= 2.32.0"
]
description = "A Python wrapper for the Comicvine API."
dynamic = ["version"]
keywords = ["comic", "comics", "metadata"]
license = {text = "GPL-3.0-or-later"}
license = "GPL-3.0-or-later"
license-files = ["LICENSE"]
maintainers = [
{email = "BuriedInCode@tuta.io", name = "BuriedInCode"}
]
name = "Simyan"
readme = "README.md"
requires-python = ">= 3.9"
requires-python = ">= 3.10"

[project.urls]
Documentation = "https://simyan.readthedocs.io/en/latest/"
Expand Down Expand Up @@ -137,7 +135,7 @@ overrides."tool.tox.env_list".inline_arrays = false
overrides."tool.tox.env_run_base.commands".inline_arrays = false

[tool.tox]
env_list = ["3.9", "3.10", "3.11", "3.12", "3.13"]
env_list = ["3.10", "3.11", "3.12", "3.13", "3.14"]
min_version = "4.22"

[tool.tox.env_run_base]
Expand Down
2 changes: 1 addition & 1 deletion simyan/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""simyan package entry file."""

__all__ = ["__version__", "get_cache_root"]
__version__ = "1.5.1"
__version__ = "1.6.0"

import os
from pathlib import Path
Expand Down
Loading
Loading