diff --git a/.gitignore b/.gitignore index 61ad37e..0d43173 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ .venv example __pycache__ -dyn2py.egg-info \ No newline at end of file +dyn2py.egg-info +build +dist \ No newline at end of file diff --git a/README.md b/README.md index a44eddf..5fb1235 100644 --- a/README.md +++ b/README.md @@ -45,9 +45,6 @@ The script by default overwrites older files with newer files. Do not move the source Dynamo graphs, or update won't work with them later. ``` - - - ## Development ### Installation @@ -70,3 +67,9 @@ py -m venv .venv py -m pip install -e . ``` +Build: + +```shell +pip install -e .[build] +pyinstaller dyn2py.spec +``` \ No newline at end of file diff --git a/dyn2py.spec b/dyn2py.spec new file mode 100644 index 0000000..300da28 --- /dev/null +++ b/dyn2py.spec @@ -0,0 +1,44 @@ +# -*- mode: python ; coding: utf-8 -*- + + +block_cipher = None + + +a = Analysis( + ['dyn2py\\__main__.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False, +) +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [], + name='dyn2py', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +) diff --git a/pyproject.toml b/pyproject.toml index 459388b..64e4b5a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,11 @@ classifiers = [] dependencies = ["importlib_metadata", "pathvalidate", "simplejson"] +[project.optional-dependencies] +build = [ + "pyinstaller" +] + [project.urls] homepage = "https://github.com/infeeeee/dyn2py" documentation = "https://github.com/infeeeee/dyn2py"