-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
71 lines (62 loc) · 2.37 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read_requirements(filename):
specifiers = []
dep_links = []
with open(filename, "r") as f:
for line in f:
if line.startswith("-r") or line.strip() == "":
continue
if line.startswith("git+"):
dep_links.append(line.strip())
else:
specifiers.append(line.strip())
return specifiers, dep_links
setup_py_path = os.path.dirname(os.path.realpath(__file__))
requirements_file = os.path.join(setup_py_path, "requirements.txt")
test_requirements_file = os.path.join(setup_py_path, "test-requirements.txt")
install_requires, deps_links = read_requirements(requirements_file)
tests_require, _ = read_requirements(test_requirements_file)
if _:
deps_links.extend(_)
setup(
name="freshmaker",
description="Continuous Compose Service",
version="0.1.2",
classifiers=["Programming Language :: Python", "Topic :: Software Development :: Build Tools"],
keywords="freshmaker continuous compose service modularity fedora",
author="The Factory 2.0 Team",
# TODO: Not sure which name would be used for mail alias,
# but let's set this proactively to the new name.
author_email="[email protected]",
url="https://github.com/redhat-exd-rebuilds/freshmaker",
license="MIT",
packages=find_packages(exclude=["tests", "tests.*"]),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
tests_require=tests_require,
dependency_links=deps_links,
entry_points={
"moksha.consumer": "freshmakerconsumer = freshmaker.consumer:FreshmakerConsumer",
"moksha.producer": "freshmakerproducer = freshmaker.producer:FreshmakerProducer",
"console_scripts": [
"freshmaker-frontend = freshmaker.manage:runssl",
"freshmaker-gencert = freshmaker.manage:generatelocalhostcert",
"freshmaker-manager = freshmaker.manage:cli",
"freshmaker-upgradedb = freshmaker.manage:upgradedb",
],
},
data_files=[
("//etc/freshmaker/", ["conf/config.py"]),
(
"//etc/fedmsg.d/",
[
"fedmsg.d/freshmaker-logging.py",
"fedmsg.d/freshmaker-scheduler.py",
"fedmsg.d/freshmaker.py",
],
),
],
)