def _rules(self): return Util.strip_margin('''#!/usr/bin/make -f | |include /usr/share/dpkg/default.mk | |%: | dh $@ --parallel | |# debian policy is to not use /usr/local |# dh_usrlocal does some funny stuff; override to do nothing |override_dh_usrlocal: | |# skip scanning for shlibdeps? |override_dh_shlibdeps: | |# skip removing debug output |override_dh_strip: |''')
def _control(self): return Util.strip_margin( f'''Source: {self.package_name} |Maintainer: Pivotal Greenplum Release Engineering <*****@*****.**> |Section: database |Build-Depends: debhelper (>= 9) | |Package: {self.package_name} |Architecture: amd64 |Depends: libapr1, | libaprutil1, | bash, | bzip2, | krb5-multidev, | libcurl3-gnutls, | libcurl4, | libevent-2.1-6, | libreadline7, | libxml2, | libyaml-0-2, | zlib1g, | libldap-2.4-2, | openssh-client, | openssh-server, | openssl, | perl, | rsync, | sed, | tar, | zip, | net-tools, | less, | iproute2 |Description: Greenplum Database | Greenplum Database is an advanced, fully featured, open source data platform. | It provides powerful and rapid analytics on petabyte scale data volumes. | Uniquely geared toward big data analytics, Greenplum Database is powered by | the world's most advanced cost-based query optimizer delivering high | analytical query performance on large data volumes.The Greenplum Database® | project is released under the Apache 2 license. We want to thank all our | current community contributors and all who are interested in new | contributions. For the Greenplum Database community, no contribution is too | small, we encourage all types of contributions. |''')
def test_strip_margin_removes_multiline_tabs(self): self.assertEqual( Util.strip_margin(f'''A |B |C'''), "A\nB\nC")
def test_strip_margin_removes_tabs(self): self.assertEqual(Util.strip_margin("\n\t\t\t|"), "\n")
def test_strip_margin_noop_on_empty_string(self): self.assertEqual(Util.strip_margin(''), '')