3
# Copyright 2015 Canonical Ltd. All rights reserved.
5
# This file is part of launchpad-buildd.
7
# launchpad-buildd is free software: you can redistribute it and/or modify
8
# it under the terms of the GNU Affero General Public License as published
9
# by the Free Software Foundation, version 3 of the License.
11
# launchpad-buildd is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
14
# License for more details.
16
# You should have received a copy of the GNU Affero General Public License
17
# along with launchpad-buildd. If not, see <http://www.gnu.org/licenses/>.
20
from textwrap import dedent
22
from setuptools import (
28
changelog_heading = re.compile(r'\w[-+0-9a-z.]* \(([^\(\) \t]+)\)')
30
with open('debian/changelog') as changelog:
31
line = changelog.readline()
32
match = changelog_heading.match(line)
35
"Failed to parse first line of debian/changelog: '%s'" % line)
36
version = match.group(1)
40
name='launchpad-buildd',
42
description='Launchpad buildd slave',
43
long_description=dedent("""
44
The Launchpad buildd slave libraries. The PyPI version of this
45
package will not produce a complete installation on its own, and is
46
mostly useful for testing other pieces of software against
47
launchpad-buildd; for a real Launchpad buildd slave, install the
48
launchpad-buildd package from ppa:launchpad/ubuntu/ppa.
50
url='https://launchpad.net/launchpad-buildd',
51
packages=find_packages(),
54
'tests/buildd-slave-test.conf',
57
maintainer='Launchpad Developers',
58
maintainer_email='launchpad-dev@lists.launchpad.net',
59
license='Affero GPL v3',
62
# XXX cjwatson 2015-11-04: This does in fact require python-apt, but
63
# that's normally shipped as a system package and specifying it here
64
# causes problems for Launchpad's build system.
71
('', ['buildd-slave.tac', 'template-buildd-slave.conf']),
73
test_suite='lpbuildd.tests',