Skip to content

Commit

Permalink
Pipfile -> Poetry (#11)
Browse files Browse the repository at this point in the history
* pipenv -> poetry

* potry lock

* New instagram impl

* Fix CI
  • Loading branch information
amadejkastelic authored Oct 5, 2024
1 parent 80dda54 commit ea9b26a
Show file tree
Hide file tree
Showing 17 changed files with 3,491 additions and 2,321 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Lint

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:

jobs:
lint:
Expand All @@ -16,12 +20,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
pipenv install --dev
python -m pip install poetry
poetry install
- name: flake8
uses: py-actions/flake8@v2
- name: pylint
run: |
pipenv run pylint ./bot/**/*.py
poetry run pylint ./bot/**/*.py
- name: black formatting
uses: psf/black@stable
54 changes: 0 additions & 54 deletions .idx/dev.nix

This file was deleted.

10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ RUN apt -y update -oAcquire::AllowInsecureRepositories=true && \
apt -y remove wget && \
apt -y autoremove && apt -y clean

RUN pip install "pipenv"
RUN pip install "poetry"

WORKDIR /app
COPY Pipfile ./
COPY Pipfile.lock ./
COPY pyproject.toml ./
COPY poetry.lock ./
COPY *.py ./
COPY bot/ ./bot/
COPY conf/ ./conf/
COPY examples/settings_prod.py ./settings.py

RUN pipenv install && pipenv run playwright install chromium && pipenv run playwright install-deps
RUN poetry install --without dev && poetry run playwright install chromium && poetry run playwright install-deps

# Set this
ENTRYPOINT ["pipenv", "run", "python", "manage.py"]
ENTRYPOINT ["poetry", "run", "python", "manage.py"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ lint:
format:
python -m black **/*.py
nix-env:
@nix-shell --command 'source "$$(pipenv --venv)/bin/activate"; return'
@nix-shell --command 'source "$$(poetry env info --path)/bin/activate"; return'
41 changes: 0 additions & 41 deletions Pipfile

This file was deleted.

Loading

0 comments on commit ea9b26a

Please sign in to comment.