-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (53 loc) · 2.04 KB
/
Copy pathMakefile
File metadata and controls
64 lines (53 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
SHELL=/bin/bash
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
.PHONY: clean docs test
default:
find . -type f | xargs chmod -x
clean:
-rm -f *.pyc rom/*.pyc MANIFEST
-rm -rf dist build
install:
python setup.py install
upload:
git tag `cat VERSION`
git push origin --tags
python3.6 setup.py sdist
python3.6 -m twine upload --verbose dist/rom-`cat VERSION`.tar.gz
test:
PYTHONPATH=`pwd` python2.6 test/test_rom.py
PYTHONPATH=`pwd` python2.7 test/test_rom.py
PYTHONPATH=`pwd` python3.3 test/test_rom.py
PYTHONPATH=`pwd` python3.4 test/test_rom.py
PYTHONPATH=`pwd` python3.5 test/test_rom.py
PYTHONPATH=`pwd` python3.6 test/test_rom.py
install-test-requirements:
sudo apt-get install python2.6 python2.6-dev python2.7 python2.7-dev python3.3 python3.3-dev python3.4 python3.4-dev python3.5 python3.5-dev
# may require other steps to get pip installed
sudo python2.6 -m pip.__init__ install setuptools
sudo python2.6 -m pip.__init__ install redis hiredis six
sudo python2.7 -m pip install setuptools
sudo python2.7 -m pip install redis hiredis six
sudo python3.3 -m pip install setuptools
sudo python3.3 -m pip install redis hiredis six
sudo python3.4 -m pip install setuptools
sudo python3.4 -m pip install redis hiredis six
sudo python3.5 -m pip install setuptools
sudo python3.5 -m pip install redis hiredis six
test-tox:
tox
docs:
python3.6 -c "import rom; open('README.rst', 'wb').write(rom.__doc__.encode('latin-1')); open('VERSION', 'wb').write(rom.VERSION.encode('latin-1'));"
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
cp -r $(BUILDDIR)/html/. docs
@echo
@echo "Build finished. The HTML pages are in docs"