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
10 changed files
with
86 additions
and
47 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,58 @@ | ||
name: Windows Builds | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2022 | ||
strategy: | ||
matrix: | ||
include: | ||
- ARCH: "x86" | ||
FILENAME: "mpkg-win32.zip" | ||
- ARCH: "x64" | ||
FILENAME: "mpkg-win64.zip" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.7" | ||
architecture: ${{ matrix.ARCH }} | ||
- name: Install dependencies | ||
run: | | ||
pip install . | ||
pip install pywin32 pyinstaller | ||
pip install setuptools --upgrade | ||
- name: Edit version | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: | | ||
python scripts\edit_version.py | ||
- name: Build | ||
run: | | ||
copy scripts\bootstrap.py . | ||
pyinstaller bootstrap.py -n mpkg --hidden-import=lxml.etree --hidden-import=bs4 --hidden-import=mpkg.parse | ||
7z a ${{ matrix.FILENAME }} .\dist\mpkg | ||
- name: Upload files to AutoBuild | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: AutoBuild | ||
files: | | ||
${{ matrix.FILENAME }} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.FILENAME }} | ||
path: ${{ matrix.FILENAME }} | ||
- name: Release mpkg | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
${{ matrix.FILENAME }} |
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
This file was deleted.
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.0.11' | ||
__version__ = '0.0.12-dev' |
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
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,3 @@ | ||
from mpkg.cli import cli | ||
|
||
cli() |
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,7 @@ | ||
with open('mpkg/__init__.py', 'r', encoding='utf-8') as f: | ||
text = f.read() | ||
|
||
text = text.replace("-dev'", "'") | ||
print(text) | ||
with open('mpkg/__init__.py', 'w', encoding='utf-8') as f: | ||
f.write(text) |
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