-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·37 lines (34 loc) · 1.06 KB
/
setup.py
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
#! /usr/bin/env python3
from setuptools import setup, find_packages
import codecs
import glob
import os
import re
# look/set what version we have
changelog = 'debian/changelog'
if os.path.exists(changelog):
head = codecs.open(changelog, encoding='utf-8').readline()
match = re.compile('.*\((.*)\).*').match(head)
if match:
version = match.group(1)
scripts = glob.glob('bin/snap-*')
scripts.append('bin/create-snap-declaration')
scripts.append('bin/get-base-declaration')
scripts.append('bin/rock-updates-available')
scripts.append('bin/rock-check-notices')
scripts.append('bin/snap-updates-available')
scripts.append('bin/snap-check-notices')
scripts.append('bin/fetch-db')
scripts.append('bin/diffsquash')
scripts.append('bin/store-query')
scripts.append('bin/unpack-package')
scripts.remove('bin/snap-check-skeleton')
setup(
name='review-tools',
version=version,
scripts=scripts,
packages=find_packages(),
test_suite='reviewtools.tests',
package_data={'reviewtools': ['data/*.yaml', 'data/*.json']},
include_package_data=True,
)