forked from lfit/releng-lftools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
28 lines (24 loc) · 1008 Bytes
/
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
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
"""Setup.py."""
from setuptools import find_packages, setup
with open("requirements.txt") as f:
install_reqs = f.read().splitlines()
with open("requirements-test.txt") as f:
f.readline() # Skip the first -rrequirements.txt line
test_reqs = f.read().splitlines()
setup(
setup_requires=["pbr", "pytest-runner"],
pbr=True,
install_requires=install_reqs,
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
tests_require=test_reqs,
)