Skip to content

Commit

Permalink
Add poetry support (#14)
Browse files Browse the repository at this point in the history
* Add poetry support
  • Loading branch information
rrooij authored Feb 19, 2024
1 parent 455e65e commit 5c2b2d8
Show file tree
Hide file tree
Showing 6 changed files with 198 additions and 14 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ jobs:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install pyinstaller pyqt5
pip install -r requirements-dev.txt
pip install poetry pyinstaller
poetry install
shell: bash
- name: Lint with flake8
run: |
Expand All @@ -36,7 +34,7 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run pytest
run: python -m pytest
run: poetry run pytest
- name: Build executable
run: make
shell: bash
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ Only Python 3 is supported. View the available locations and their IDs by lookin

# Running the GUI on Debian or Ubuntu

First, install pyqt and git:
First, make sure to have Python and poetry installed. After that, run:

```
sudo apt install python3-pip python3-pyqt5 git
git clone https://github.com/rrooij/sd3save_editor.git
cd sd3save_editor
pip3 install -r requirements.txt
python3 -m sd3save_editor.gui
poetry install
poetry run python -m sd3save_editor.gui
```

There is also an executable available on the [Releases](https://github.com/rrooij/sd3save_editor/releases) page.
Expand Down
171 changes: 171 additions & 0 deletions poetry.lock

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

21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[tool.poetry]
name = "sd3save-editor"
version = "0.7.0"
description = "Save editor for Seiken Densetsu 3"
authors = ["rrooij"]
license = "GPLv3"
readme = "README.md"
packages = [{include = "sd3save_editor"}]

[tool.poetry.dependencies]
python = "^3.8"
construct = "2.10.56"
scalpl = "0.4.0"
PyQt5 = "=5.15.2"

[tool.poetry.group.test.dependencies]
pytest = "^8.0.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
3 changes: 0 additions & 3 deletions requirements-dev.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

0 comments on commit 5c2b2d8

Please sign in to comment.