diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..45b48f4 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ + +SCRIPT_DIR ?= "make_scripts" + +# Removes development/build directories that accumulate over time. +clean: + @$(SCRIPT_DIR)/clean.bash + +moof: + @$(SCRIPT_DIR)/moof.bash + +# Creates virtual environments for development using the Python executables in $ENV_LIST. +# Existing environments are recreated. +venv: + @$(SCRIPT_DIR)/venv.bash + diff --git a/make_scripts/build_dist.bash b/make_scripts/build_dist.bash new file mode 100644 index 0000000..618a792 --- /dev/null +++ b/make_scripts/build_dist.bash @@ -0,0 +1,12 @@ +#! /bin/bash + + +#do this inside my dev venv +python2.7.venv/bin/python setup.py sdist +python2.7.venv.venv/bin/python setup.py bdist_wheel +rm -rf python2.7-sdist.venv + +virtualenv python2.7-sdist.venv +python2.7-sdist.venv/bin/pip install dist/pygments-xojo-0.0.0.tar.gz +#check import and version. +#python2.7-sdist.venv/bin/python -c 'from pygments_xojo import __version__;print(__version__)' \ No newline at end of file diff --git a/make_scripts/clean.bash b/make_scripts/clean.bash new file mode 100755 index 0000000..cac06fc --- /dev/null +++ b/make_scripts/clean.bash @@ -0,0 +1,3 @@ +#! /bin/bash + +rm -rf *.venv \ No newline at end of file diff --git a/make_scripts/moof.bash b/make_scripts/moof.bash new file mode 100755 index 0000000..ff5c5ec --- /dev/null +++ b/make_scripts/moof.bash @@ -0,0 +1,3 @@ +#! /bin/bash + +echo "moof" \ No newline at end of file diff --git a/make_virtualenv.bash b/make_scripts/venv.bash similarity index 100% rename from make_virtualenv.bash rename to make_scripts/venv.bash