Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chg: convert as rye python package #241

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
sudo apt-get install -y libimage-exiftool-perl
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements-dev.txt
pip install -r requirements.lock
pip install -r requirements-dev.lock

- name: Run tests
run: pytest
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- uses: actions/[email protected]
- name: Install dependencies
run: pip install -r requirements-dev.txt
run: pip install -r requirements.lock
- name: Install dev dependencies
run: pip install -r requirements-dev.lock
- name: Run pre-commit
run: pre-commit run -a
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
run: |
sudo apt-get install -y libimage-exiftool-perl
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -r requirements.lock
pip install -r requirements-dev.lock

- name: Run tests
run: pytest
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ __pycache__/
*.py[cod]
*$py.class
.pytest_cache

.ruff_cache
# C extensions
*.so

Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM python:3.10-alpine
FROM python:3.11-alpine

VOLUME /mnt/input
VOLUME /mnt/output

ENV CRON ""
ENV OPTIONS ""
ENV CRON=""
ENV OPTIONS=""

COPY . /opt/phockup
RUN chmod +x /opt/phockup/entrypoint.sh

RUN apk --no-cache add exiftool \
&& pip install --no-cache-dir -r /opt/phockup/requirements.txt \
&& pip install --no-cache-dir -r /opt/phockup/requirements.lock \
&& ln -s /opt/phockup/phockup.py /usr/local/bin/phockup \
&& apk add bash \
&& apk add flock
Expand Down
12 changes: 0 additions & 12 deletions __main__.py

This file was deleted.

Loading