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
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
- uses: pre-commit/[email protected]

test:
Expand All @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
- uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
- uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true
Expand Down
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
---
default_language_version:
python: python3.11
python: python3.12
repos:
- repo: https://github.com/python-poetry/poetry
rev: 1.4.2
- repo: https://github.com/python-poetry/poetry-plugin-export
rev: 1.9.0
hooks:
- id: poetry-export
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 25.9.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.3.0
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 7.0.0
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11
3.12
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11
FROM python:3.12

WORKDIR /usr/src/app

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/26b4c36c11e_create_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2014-12-03 00:14:38.427893

"""

revision = "26b4c36c11e"
down_revision = None

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/76d559b4e873_add_fs_uniquifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-10-24 09:31:01.814928

"""

revision = "76d559b4e873"
down_revision = "d429595e8362"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-10-22 21:31:03.050850

"""

revision = "d429595e8362"
down_revision = "dc7687894ba7"

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/d785f1fb2307_dsm6_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-04-03 20:18:47.053636

"""

revision = "d785f1fb2307"
down_revision = "26b4c36c11e"

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/dc7687894ba7_increase_field_sizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-09-19 22:47:15.128884

"""

revision = "dc7687894ba7"
down_revision = "d785f1fb2307"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-01-15 13:58:34.160242

"""

revision = "f95855ce9471"
down_revision = "76d559b4e873"

Expand Down
1,735 changes: 826 additions & 909 deletions poetry.lock

Large diffs are not rendered by default.

88 changes: 41 additions & 47 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tool.poetry]
[project]
name = "spkrepo"
version = "0.2.8"
description = "Synology Package Repository"
license = "MIT"
authors = ["Antoine Bertin <[email protected]>"]
authors = [ { name="Antoine Bertin", email="[email protected]" } ]
readme = "README.md"
repository = "https://github.com/SynoCommunity/spkrepo"
keywords = ["synology", "package", "repository"]
Expand All @@ -13,56 +13,50 @@ classifiers = [
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: System :: Archiving :: Packaging",
]
requires-python = ">=3.12,<4.0"
dependencies = [
"flask~=3.1.2",
"flask-sqlalchemy~=3.1.1",
"flask-security~=5.6.2",
"flask-babel~=4.0.0",
"flask-wtf~=1.2.2",
"wtforms~=3.2.1",
"flask-mail~=0.10.0",
"configparser~=7.2.0",
"flask-principal~=0.4.0",
"flask-admin~=2.0.1",
"sqlalchemy~=2.0.44",
"pillow~=12.0.0", # provides image handling for flask-admin[images] extra
"flask-restful~=0.3.10",
"flask-caching~=2.3.1",
"python-gnupg~=0.5.5", # Modern maintained fork of 'gnupg'; fixes Py3.11+ warnings
"requests~=2.32.5",
"click~=8.3.0",
"flask-migrate~=4.1.0",
"alembic~=1.17.1",
"flask-debugtoolbar~=0.16.0",
]

[tool.poetry.dependencies]
python = ">=3.10,<4.0"
flask = "^3.1.0"
flask-sqlalchemy = "^3.1.1"
flask-security = "^5.5.2"
passlib = "^1.7.4"
flask-babel = "^4.0.0"
flask-wtf = "^1.2.2"
wtforms = "<3.2" # limit until flask-admin 2.0
flask-mail = "^0.10.0"
configparser = "^7.1.0"
email_validator = "^2.2.0"
flask-principal = "^0.4.0"
flask-admin = "^1.6.1"
sqlalchemy = "^2.0.37"
pillow = "^11.1.0"
flask-restful = "^0.3.10"
flask-login = "^0.6.3"
flask-caching = "^2.3.0"
redis = "^5.2.1"
python-gnupg = "^0.5.4"
requests = "^2.32.3"
click = "^8.1.8"
flask-migrate = "^4.1.0"
alembic = "^1.14.1"
text-unidecode = "^1.3"
ipaddress = "^1.0.23"
flask-debugtoolbar = "^0.16.0"
bcrypt = "^4.2.1"

[tool.poetry.group.dev.dependencies]
sphinx = "^8.1.3"
sphinx-rtd-theme = "^3.0.2"
flask-testing = "^0.8.1"
factory-boy = "^3.3.1"
faker = "^33.3.1"
lxml = "^5.3.0"
mock = "^5.1.0"
pre-commit = "^4.1.0"
pytest = "^8.3.4"
psycopg2 = "^2.9.10"
setuptools = ">=75.8,<79.0"
[dependency-groups]
dev = [
"sphinx~=8.1.3",
"sphinx-rtd-theme~=3.0.2",
"flask-testing~=0.8.1",
"factory-boy~=3.3.3",
"faker~=33.3.1",
"lxml~=5.4.0",
"mock~=5.2.0",
"pre-commit~=4.3.0",
"pytest~=8.4.2",
"psycopg2~=2.9.11",
"setuptools~=78.0",
]

[tool.isort]
line_length = 88
Expand All @@ -73,5 +67,5 @@ use_parentheses = true
known_first_party = "spkrepo"

[build-system]
requires = ["poetry>=1.2.0"]
requires = ["poetry>=2.2.1"]
build-backend = "poetry.core.masonry.api"
Loading