Changeset - 3f1b9b9b0505
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 6 years ago 2019-05-21 23:55:35
drewp@bigasterisk.com
add yapf tool
Ignore-this: 28fe07e21ca358a97282f5316c8820e0
2 files changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
makefile
Show inline comments
 
@@ -35,48 +35,51 @@ npm:
 
	cd node_modules/n3; nodejs ../browserify/bin/cmd.js --standalone N3 --require n3 -o n3-browser.js
 

	
 
bin/ascoltami2: gst_packages link_to_sys_packages
 

	
 
effect_node_setup: create_virtualenv packages binexec install_python_deps
 

	
 
tkdnd_build:
 
	# get tkdnd r95 with subversion
 
	# then apply tkdnd-patch-on-r95 to that
 
	cd tkdnd/trunk
 
	./configure
 
	make
 

	
 
### build ###
 

	
 
coffee:
 
	zsh -c 'cd light9/web; ../../node_modules/coffeescript/bin/coffee --map -cw {.,live,timeline,paint,effects}/*.coffee'
 

	
 
mypy-collector:
 
	env/bin/mypy --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep bin/collector light9/collector/*.py
 

	
 
mypy-paint:
 
	env/bin/mypy --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep light9/paint/*.py
 

	
 
reformat:
 
	env/bin/yapf --verbose --parallel --in-place --style google light9/**/*.py `file --no-pad  bin/* | grep 'Python script' | perl -lpe 's/:.*//'`
 

	
 
### show ###
 

	
 
darcs_show_checkpoint:
 
	darcs add --quiet --recursive ${LIGHT9_SHOW} 
 
	darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW}
 

	
 
### pi setup ###
 

	
 
raspberry_pi_packages:
 
	sudo apt-get install python3-picamera python3-dev python3-twisted python3-virtualenv
 

	
 
raspberry_pi_virtualenv:
 
	mkdir -p env_pi
 
	virtualenv -p /usr/bin/python3 --system-site-packages env_pi
 
	env_pi/bin/pip install cyclone 'coloredlogs==6.0'
 

	
 
### arduino build ###
 

	
 
/usr/share/arduino/Arduino.mk:
 
	sudo aptitude install arduino-mk
 

	
 
arduino_upload: /usr/share/arduino/Arduino.mk
 
	cd rgbled
 
	make upload
requirements.txt
Show inline comments
 
@@ -7,33 +7,34 @@ freezegun==0.3.8
 
genshi==0.7
 
ipdb==0.10.2
 
ipython==5.3.0
 
klein==17.2.0
 
mock==2.0.0
 
mypy==0.701
 
noise==1.2.2
 
nose-watcher==0.1.3
 
nose==1.3.7
 
pyjade==4.0.0
 
pyserial==3.3
 
python-dateutil==2.6.0
 
pyusb==1.0.0
 
rdflib==4.2.2
 
requests==2.22.0
 
scipy==1.3.0
 
service_identity==18.1.0
 
statprof==0.1.2
 
toposort==1.5
 
treq==18.6.0
 
txzmq==0.8.0
 
typing==3.6.1
 
watchdog==0.8.3
 
webcolors==1.7
 
yapf==0.27.0
 

	
 
git+http://github.com/drewp/scales.git@448d59fb491b7631877528e7695a93553bfaaa93#egg=scales
 
git+http://github.com/11craft/louie.git@f18bb71010c114eca9c6b88c96453340e3b39454#egg=louie
 
git+http://github.com/webpy/webpy@ace0f8954c28311004b33c7a513c6e40a3c02470#egg=web
 
https://github.com/drewp/cyclone/archive/python3.zip#egg=cyclone
 

	
 
rdfdb==0.8.0
 

	
 

	
0 comments (0 inline, 0 general)