File: setup.py

package info (click to toggle)
devscripts 2.15.3%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 4,680 kB
  • ctags: 793
  • sloc: perl: 16,581; sh: 7,295; python: 950; makefile: 224; ansic: 28
file content (29 lines) | stat: -rwxr-xr-x 684 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/python3

from setuptools import setup
import glob
import os
import re

# look/set what version we have
changelog = "../debian/changelog"
if os.path.exists(changelog):
    head = open(changelog, encoding="utf8").readline()
    match = re.compile(".*\((.*)\).*").match(head)
    if match:
        version = match.group(1)

scripts = ['sadt',
           'suspicious-source',
           'wrap-and-sort',
          ]

if __name__ == '__main__':
    setup(name='devscripts',
          version=version,
          scripts=scripts,
          packages=['devscripts',
                    'devscripts/test',
                   ],
          test_suite='devscripts.test.discover',
    )