File: rules

package info (click to toggle)
python-sqlalchemy-utils 0.41.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,252 kB
  • sloc: python: 13,566; makefile: 141
file content (25 lines) | stat: -rwxr-xr-x 799 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

UPSTREAM_GIT := https://github.com/kvesteri/sqlalchemy-utils.git
include /usr/share/openstack-pkg-tools/pkgos.make

export PYBUILD_NAME=sqlalchemy-utils

%:
	dh $@ --buildsystem=pybuild --with python3,sphinxdoc

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	# autopkg tests are configured to setup dependencies and run tests
	echo "Do not run tests right now:"
	echo "need to setup mysql and postgres before running them"
	echo "and set SQLALCHEMY_UTILS_TEST_DB SQLALCHEMY_UTILS_TEST_POSTGRESQL_USER SQLALCHEMY_UTILS_TEST_MYSQL_USER"
endif

override_dh_sphinxdoc:
	PYTHONPATH=. python3 -m sphinx -b html docs debian/python-sqlalchemy-utils-doc/usr/share/doc/python-sqlalchemy-utils-doc/html
	dh_sphinxdoc

override_dh_clean:
	dh_clean
	rm -rf build