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 6b8b7f6 commit 1bba00b
Show file tree
Hide file tree
Showing 4 changed files with 17 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
*.spec
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
SHELL := /bin/bash
OS := $(shell uname -s | tr A-Z a-z)
VERSION := $(shell vyper --version)

ifeq (, $(shell which pip3))
pip := $(shell which pip3)
Expand Down Expand Up @@ -36,6 +38,11 @@ release: clean
twine check dist/*
#twine upload dist/*


freeze: clean
echo Generating binary...
pyinstaller --clean --onefile vyper/cli/vyper_compile.py --name vyper.$(VERSION).$(OS)

clean: clean-build clean-docs clean-pyc clean-test

clean-build:
Expand Down
9 changes: 8 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,12 @@ CALL docs\make html
START docs\_build\html\index.html
goto :end

:freeze
CALL :clean
for /f "delims=" %%a in ('vyper --version') do @set VERSION=%%a
pyinstaller --clean --onefile vyper/cli/vyper_compile.py --name vyper.%VERSION%.windows
goto :end

:clean
CALL :clean-build
CALL :clean-pyc
Expand All @@ -64,4 +71,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 1bba00b

Please sign in to comment.