mirror of
https://github.com/infeeeee/dyn2py
synced 2025-12-16 22:16:18 +01:00
Before first release
This commit is contained in:
@@ -1,16 +1,15 @@
|
|||||||
name: Build Windows exe
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# Only build for tags.
|
|
||||||
tags:
|
tags:
|
||||||
- "*"
|
- "*"
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
permissions:
|
||||||
workflow_dispatch:
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
build-windows-portable:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -31,3 +30,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: dyn2py.exe
|
name: dyn2py.exe
|
||||||
path: dist/dyn2py.exe
|
path: dist/dyn2py.exe
|
||||||
|
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: dyn2py.exe
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: dyn2py.exe
|
||||||
3
TODO.md
3
TODO.md
@@ -14,10 +14,8 @@
|
|||||||
- [x] Tests on Linux
|
- [x] Tests on Linux
|
||||||
- [x] Tests on Windows
|
- [x] Tests on Windows
|
||||||
- [x] Windows Build
|
- [x] Windows Build
|
||||||
- [ ] Windows Installer
|
|
||||||
- [ ] Pip
|
- [ ] Pip
|
||||||
|
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
- [x] API docs
|
- [x] API docs
|
||||||
@@ -27,5 +25,6 @@
|
|||||||
|
|
||||||
## Extra features maybe later
|
## Extra features maybe later
|
||||||
|
|
||||||
|
- [ ] Windows Installer
|
||||||
- [ ] Autocomplete
|
- [ ] Autocomplete
|
||||||
- [ ] Winget
|
- [ ] Winget
|
||||||
@@ -9,6 +9,7 @@ from importlib_metadata import metadata
|
|||||||
import textwrap
|
import textwrap
|
||||||
import logging
|
import logging
|
||||||
import inspect
|
import inspect
|
||||||
|
import sys
|
||||||
from dyn2py.files import *
|
from dyn2py.files import *
|
||||||
from dyn2py.options import *
|
from dyn2py.options import *
|
||||||
|
|
||||||
@@ -91,7 +92,7 @@ def __command_line() -> None:
|
|||||||
parser.add_argument("source",
|
parser.add_argument("source",
|
||||||
type=pathlib.Path,
|
type=pathlib.Path,
|
||||||
help="path to a Dynamo graph, a python script or a folder containing them",
|
help="path to a Dynamo graph, a python script or a folder containing them",
|
||||||
nargs="*"
|
nargs="+"
|
||||||
)
|
)
|
||||||
|
|
||||||
options = parser.parse_args(namespace=Options())
|
options = parser.parse_args(namespace=Options())
|
||||||
@@ -128,7 +129,7 @@ def run(options: Options) -> None:
|
|||||||
if from_command_line:
|
if from_command_line:
|
||||||
# log only if it was called from command line:
|
# log only if it was called from command line:
|
||||||
logging.error(f"File does not exist: {source}")
|
logging.error(f"File does not exist: {source}")
|
||||||
exit(1)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
raise FileNotFoundError(f"Source file does not exist!")
|
raise FileNotFoundError(f"Source file does not exist!")
|
||||||
|
|
||||||
@@ -181,7 +182,7 @@ def run(options: Options) -> None:
|
|||||||
|
|
||||||
if not files and from_command_line:
|
if not files and from_command_line:
|
||||||
logging.error("No files to process! See previous warnings!")
|
logging.error("No files to process! See previous warnings!")
|
||||||
exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Cycle through files:
|
# Cycle through files:
|
||||||
for f in files:
|
for f in files:
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ build = ["pyinstaller"]
|
|||||||
doc = ["pdoc"]
|
doc = ["pdoc"]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
homepage = "https://infeeeee.github.io/dyn2py"
|
homepage = "https://github.com/infeeeee/dyn2py"
|
||||||
documentation = "https://github.com/infeeeee/dyn2py"
|
documentation = "https://infeeeee.github.io/dyn2py"
|
||||||
repository = "https://github.com/infeeeee/dyn2py"
|
repository = "https://github.com/infeeeee/dyn2py"
|
||||||
changelog = "https://github.com/infeeeee/dyn2py/releases"
|
changelog = "https://github.com/infeeeee/dyn2py/releases"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user