-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
25 lines (22 loc) · 716 Bytes
/
setup.py
File metadata and controls
25 lines (22 loc) · 716 Bytes
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
from setuptools import setup, find_packages, Command
# This runner was created as per
# http://pytest.org/latest/goodpractises.html#integrating-with-distutils-python-setup-py-test
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys,subprocess
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
setup(
name = "yakirpm",
version = "0.1",
author = "rmancy@redhat.com",
packages = find_packages('src'),
package_dir = {'': 'src'},
cmdclass = {'test': PyTest},
data_files = [('/usr/share/doc/yakirpm', ['README.txt']),]
)