Skip to content

Commit

Permalink
chore: add pyinstaller to makefiles, update deps and gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Aug 21, 2020
1 parent a9233d6 commit 5a8be5f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ docs/vyper.*.rst

# vyper
vyper/vyper_git_version.txt
vyper.spec
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 7 additions & 1 deletion make.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -64,4 +70,4 @@ goto :end
for /r /d %%x in (htmlcov) do if exist "%%x" RMDIR /Q /S "%%x"
goto :end

:end
:end
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = (
Expand Down

0 comments on commit 5a8be5f

Please sign in to comment.