From 5a8be5f377e427dd67808546839f6793af5caf03 Mon Sep 17 00:00:00 2001 From: Ben Hauser Date: Fri, 21 Aug 2020 22:39:13 +0300 Subject: [PATCH] chore: add pyinstaller to makefiles, update deps and gitignore --- .gitignore | 1 + Makefile | 4 ++++ make.cmd | 8 +++++++- setup.py | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d62249a9cb8..666f477d8c1 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,4 @@ docs/vyper.*.rst # vyper vyper/vyper_git_version.txt +vyper.spec diff --git a/Makefile b/Makefile index 06b585055c6..a7e15cd9fca 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,10 @@ release: clean twine check dist/* #twine upload dist/* +freeze: clean + @echo Generating binary... + @pyinstaller --clean --onefile vyper/cli/vyper_compile.py --name vyper + clean: clean-build clean-docs clean-pyc clean-test clean-build: diff --git a/make.cmd b/make.cmd index 9afc0624909..1219937294e 100644 --- a/make.cmd +++ b/make.cmd @@ -4,6 +4,7 @@ if "%1"=="test" goto :test if "%1"=="dev-deps" goto :dev-deps if "%1"=="lint" goto :lint if "%1"=="docs" goto :docs +if "%1"=="freeze" goto :freeze if "%1"=="clean" goto :clean if "%1"=="clean-build" goto :clean-build if "%1"=="clean-pyc" goto :clean-pyc @@ -39,6 +40,11 @@ CALL docs\make html START docs\_build\html\index.html goto :end +:freeze +CALL :clean +pyinstaller --clean --onefile vyper/cli/vyper_compile.py --name vyper +goto :end + :clean CALL :clean-build CALL :clean-pyc @@ -64,4 +70,4 @@ goto :end for /r /d %%x in (htmlcov) do if exist "%%x" RMDIR /Q /S "%%x" goto :end -:end \ No newline at end of file +:end diff --git a/setup.py b/setup.py index 3d94d8a0be7..9443b426021 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ "mypy==0.780", ], "docs": ["recommonmark", "sphinx>=3.0,<4.0", "sphinx_rtd_theme>=0.5,<0.6"], - "dev": ["ipython", "pre-commit", "twine"], + "dev": ["ipython", "pre-commit", "pyinstaller", "twine"], } extras_require["dev"] = (