Skip to content

Commit

Permalink
fix: container version to 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeshi committed Nov 12, 2023
1 parent 7161bb6 commit 6a05421
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.0-bullseye
FROM python:3.11.0-bullseye

RUN apt -y update && apt upgrade -qqy && apt -y install \
curl \
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/build-binary-nuitka.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: build-binary-nuitka

on:
push:
branches:
- develop

jobs:
build-windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- name: checkout
uses: actions/checkout@v3

- name: install python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: replace version
run: |
from pathlib import Path
version = [l for l in Path('pyproject.toml').read_text().splitlines() if 'version' in l][0].split(' ')[-1].strip('\"')
f = Path('src/ntfsdump/models/MetaData.py')
text = f.read_text().replace("get_version(name)", f"\'{version}\'")
f.write_text(text)
shell: python

- name: Install dependencies
run: |
pip install poetry
poetry config virtualenvs.in-project true
poetry install
- name: run python
run: |
poetry run ntfsdump -h
- name: build
run: |
pip install nuitka
nuitka --standalone --onefile --follow-imports --assume-yes-for-downloads
- name: verify
run: dist/ntfsdump.exe -h

# - name: upload
# uses: softprops/action-gh-release@v1
# with:
# files: dist/ntfsdump.exe
91 changes: 90 additions & 1 deletion poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ mypy = "^1.7.0"
flake8 = "^6.1.0"
poetry = "^1.1.13"
pytest = "^7.0.1"
nuitka = "^1.8.6"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 6a05421

Please sign in to comment.