-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
42 lines (37 loc) · 1.08 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
# Copyright (C) 2022 Nokia
# Licensed under the MIT License
# SPDX-License-Identifier: MIT
from setuptools import setup
install_requires = []
with open("requirements.txt") as f:
for line in f:
line, _, _ = line.partition("#")
line = line.strip()
if line:
install_requires.append(line)
with open("README.md") as f:
long_description = f.read()
with open("Dockerfile") as f:
for line in f:
if line.startswith("ARG VERSION="):
version = line.partition("=")[2].strip()
break
setup(
name="koredump",
version=version,
author="Nokia",
author_email="",
description="Coredump REST API for Kubernetes",
license="MIT",
url="http://github.com/nokia/koredump",
long_description=long_description,
install_requires=install_requires,
python_requires=">=3.6",
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
],
)