ubuntu-dev-tools/setup.py

75 lines
2.1 KiB
Python
Raw Normal View History

#!/usr/bin/python
from setuptools import setup
2010-08-02 20:41:09 +02:00
import glob
import os
import re
2014-12-18 23:51:59 +00:00
import sys
import codecs
# look/set what version we have
changelog = "debian/changelog"
if os.path.exists(changelog):
head=codecs.open(changelog, 'r', 'utf-8', 'replace').readline()
match = re.compile(".*\((.*)\).*").match(head)
if match:
version = match.group(1)
2014-12-18 23:51:59 +00:00
if sys.version_info[0] >= 3:
scripts = []
data_files = []
else:
scripts = ['404main',
'backportpackage',
2011-05-10 12:08:59 +02:00
'bitesize',
'check-mir',
'check-symbols',
'dch-repeat',
'grab-merge',
'grep-merges',
'hugdaylist',
'import-bug-from-debian',
'merge-changelog',
'mk-sbuild',
'pbuilder-dist',
'pbuilder-dist-simple',
'pull-debian-debdiff',
'pull-debian-source',
'pull-lp-source',
'pull-revu-source',
'pull-uca-source',
2011-11-12 13:12:15 +02:00
'requestbackport',
'requestsync',
'reverse-build-depends',
2011-11-12 13:12:15 +02:00
'reverse-depends',
'seeded-in-ubuntu',
'setup-packaging-environment',
'sponsor-patch',
'submittodebian',
'syncpackage',
'ubuntu-build',
'ubuntu-iso',
2011-12-04 00:35:49 +02:00
'ubuntu-upload-permission',
'update-maintainer',
]
2014-12-18 23:51:59 +00:00
data_files = [
('share/bash-completion/completions', glob.glob("bash_completion/*")),
2014-12-18 23:51:59 +00:00
('share/man/man1', glob.glob("doc/*.1")),
('share/man/man5', glob.glob("doc/*.5")),
('share/ubuntu-dev-tools', ['enforced-editing-wrapper']),
]
if __name__ == '__main__':
setup(name='ubuntu-dev-tools',
version=version,
scripts=scripts,
packages=['ubuntutools',
'ubuntutools/lp',
'ubuntutools/requestsync',
'ubuntutools/sponsor_patch',
'ubuntutools/test',
],
2014-12-18 23:51:59 +00:00
data_files=data_files,
test_suite='ubuntutools.test.discover',
)