Skip to content
Open
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 Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8-slim
FROM python:3.13-slim

ENV APP_DIR=/usr/src/snappass

Expand All @@ -24,4 +24,4 @@ USER snappass
# Default Flask port
EXPOSE 5000

CMD ["snappass"]
CMD ["waitress-serve", "--listen=*:5000", "snappass.main:app"]
14 changes: 7 additions & 7 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
coverage==7.6.0
fakeredis==2.25.1
flake8==7.1.1
coverage==7.8.0
fakeredis==2.28.1
flake8==7.2.0
freezegun==1.5.1
pytest==8.3.2
pytest-cov==5.0.0
tox==4.23.0
pytest==8.3.5
pytest-cov==6.1.1
tox==4.25.0
bumpversion==0.6.0
wheel==0.44.0
wheel==0.45.1
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2'

services:

snappass:
Expand Down
16 changes: 9 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
cryptography==43.0.1
Flask==3.0.0
cryptography==44.0.2
Flask==3.1.0
itsdangerous==2.2.0
Jinja2==3.1.4
MarkupSafe==2.1.1
redis==5.1.1
Werkzeug==3.0.6
flask-babel
Jinja2==3.1.6
MarkupSafe==3.0.2
redis==5.2.1
Werkzeug==3.1.3
flask-babel==4.0.0
setuptools==78.1.0
waitress==3.0.2
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
},
include_package_data=True,
python_requires='>=3.8, <4',
python_requires='>=3.9, <4',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand All @@ -27,9 +27,11 @@
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Software Development :: Libraries :: Python Modules',
],
zip_safe=False,
Expand Down
2 changes: 1 addition & 1 deletion snappass/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_locale():
REDIS_PREFIX = os.environ.get('REDIS_PREFIX', 'snappass')

TIME_CONVERSION = {'two weeks': 1209600, 'week': 604800, 'day': 86400,
'hour': 3600}
'eight hours': 28800, 'hour': 3600}
DEFAULT_API_TTL = 1209600
MAX_TTL = DEFAULT_API_TTL

Expand Down
7 changes: 7 additions & 0 deletions snappass/static/clipboardjs/clipboard.2.0.11.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading