forked from lbl-srg/BuildingsPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (45 loc) · 1.38 KB
/
Makefile
File metadata and controls
56 lines (45 loc) · 1.38 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
BPDIR=buildingspy
BPDOC=doc
.PHONY: doc clean
doc:
(cd $(BPDOC); make html linkcheck)
pep8:
pep8 buildingspy/io/*.py \
buildingspy/examples/*.py \
buildingspy/examples/dymola/*.py \
buildingspy/simulate/*.py \
buildingspy/development/*.py
unittest:
python -m unittest discover buildingspy/tests
# python buildingspy/tests/test_development_error_dictionary.py
doctest:
python -m doctest \
buildingspy/fmi/*.py \
buildingspy/io/*.py \
buildingspy/examples/*.py \
buildingspy/examples/dymola/*.py \
buildingspy/simulate/*.py \
buildingspy/development/*.py
@rm -f plot.pdf plot.png roomTemperatures.png dymola.log
dist: clean doctest unittest doc
@# Make sure README.rst are consistent
cmp -s README.rst buildingspy/README.rst
python setup.py sdist --formats=gztar,zip
python setup.py bdist_egg
rm -rf build
rm -rf buildingspy.egg-info
python setup.py sdist --formats=gztar,zip bdist_egg upload -r https://pypi.python.org/pypi
@echo "Source distribution is in directory dist"
@echo "To post to server, run postBuildingsPyToWeb.sh"
upload-test:
@# Make sure README.rst are consistent
cmp -s README.rst buildingspy/README.rst
python setup.py sdist --formats=gztar,zip bdist_egg upload -r https://testpypi.python.org/pypi
clean-dist:
rm -rf build
rm -rf buildingspy.egg-info
rm -rf buildingspy-*
rm -rf dist
clean-doc:
(cd $(BPDOC); make clean)
clean: clean-doc clean-dist