-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
160 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build-windows: | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Install Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.12' | ||
architecture: 'x64' | ||
- name: Install poetry | ||
run: | | ||
pip install poetry | ||
- name: Build | ||
run: | | ||
poetry run build | ||
- name: Upload artifacts | ||
uses: actions/upload-artifacts@v2 | ||
with: | ||
name: Windows | ||
path: dist/mapbuilder.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ __pycache__/ | |
*$py.class | ||
.idea | ||
.direnv/ | ||
build/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import PyInstaller.__main__ | ||
from pathlib import Path | ||
|
||
HERE = Path(__file__).parent.absolute() | ||
path_to_main = str(HERE / "__main__.py") | ||
|
||
def install(): | ||
PyInstaller.__main__.run([ | ||
path_to_main, | ||
'--onefile', | ||
'--windowed', | ||
'--name', 'mapbuilder', | ||
]) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ authors = ["Alex Legler <[email protected]>"] | |
license = "MIT" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
python = "~3.11" | ||
Jinja2 = "^3.1.2" | ||
shapely = "^2.0.2" | ||
more-itertools = "^10.1.0" | ||
|
@@ -18,10 +18,12 @@ xmltodict = "^0.13.0" | |
|
||
[tool.poetry.scripts] | ||
mapbuilder = 'mapbuilder.__main__:entry' | ||
build = "mapbuilder.pyinstaller:install" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
ruff = "0.1.8" | ||
lxml-stubs = "^0.4.0" | ||
pyinstaller = "^6.3.0" | ||
|
||
[tool.ruff] | ||
line-length = 100 | ||
|