mirror of
https://github.com/infeeeee/dyn2py
synced 2025-12-16 22:16:18 +01:00
Update docs, workflows
This commit is contained in:
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@@ -9,12 +9,14 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-release:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
name: Checkout
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
|
name: Setup Python
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
|
|
||||||
@@ -27,11 +29,30 @@ jobs:
|
|||||||
run: pyinstaller dyn2py.spec
|
run: pyinstaller dyn2py.spec
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
name: Upload artifact
|
||||||
with:
|
with:
|
||||||
name: dyn2py.exe
|
name: dyn2py.exe
|
||||||
path: dist/dyn2py.exe
|
path: dist/dyn2py.exe
|
||||||
|
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
name: Checkout
|
||||||
|
- name: Generate changelog
|
||||||
|
id: changelog
|
||||||
|
uses: metcalfc/changelog-generator@v4.1.0
|
||||||
|
with:
|
||||||
|
myToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Download artifact
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: dyn2py.exe
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: dist/dyn2py.exe
|
files: dyn2py.exe
|
||||||
|
body: ${{ steps.modified.outputs.log }}
|
||||||
|
|
||||||
|
# TODO: pip
|
||||||
|
|||||||
5
.github/workflows/website.yml
vendored
5
.github/workflows/website.yml
vendored
@@ -2,9 +2,8 @@ name: Deploy website
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# Only build for tags.
|
branches:
|
||||||
tags:
|
- main
|
||||||
- "*"
|
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|||||||
@@ -9,6 +9,14 @@ Use cases:
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
### Windows portable
|
||||||
|
|
||||||
|
Prebuilt exe available from github releases.
|
||||||
|
|
||||||
|
No requirements, just download `dyn2py.exe` from release assets:
|
||||||
|
|
||||||
|
https://github.com/infeeeee/dyn2py/releases/latest
|
||||||
|
|
||||||
### With pip from Github
|
### With pip from Github
|
||||||
|
|
||||||
Requirements: git, python, pip
|
Requirements: git, python, pip
|
||||||
|
|||||||
@@ -371,7 +371,7 @@ class PythonFile(File):
|
|||||||
"""A Python file, subclass of File()"""
|
"""A Python file, subclass of File()"""
|
||||||
|
|
||||||
code: list[str]
|
code: list[str]
|
||||||
"""The python code."""
|
"""The python code. Lines as list items, without newlines."""
|
||||||
header_data: dict
|
header_data: dict
|
||||||
"""Parsed dict from the header of a python file."""
|
"""Parsed dict from the header of a python file."""
|
||||||
text: str
|
text: str
|
||||||
@@ -564,7 +564,7 @@ class PythonNode():
|
|||||||
engine: str
|
engine: str
|
||||||
"""The engine of the node, IronPython2 or CPython3"""
|
"""The engine of the node, IronPython2 or CPython3"""
|
||||||
code: list[str]
|
code: list[str]
|
||||||
"""The full code"""
|
"""The full code. Lines as list items, without newlines."""
|
||||||
checksum: str
|
checksum: str
|
||||||
"""The checksum of the code, for checking changes"""
|
"""The checksum of the code, for checking changes"""
|
||||||
name: str
|
name: str
|
||||||
@@ -572,7 +572,7 @@ class PythonNode():
|
|||||||
filename: pathlib.Path | str
|
filename: pathlib.Path | str
|
||||||
"""The filename the node should be saved as, including the .py extension"""
|
"""The filename the node should be saved as, including the .py extension"""
|
||||||
filepath: pathlib.Path
|
filepath: pathlib.Path
|
||||||
"""The path is shoul"""
|
"""The full path the node should be saved as"""
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
node_dict_from_dyn: dict = {},
|
node_dict_from_dyn: dict = {},
|
||||||
|
|||||||
Reference in New Issue
Block a user