-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
70 lines (60 loc) · 2.35 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
#!/usr/bin/python
# coding: utf-8
#
# Copyright (C) 2024 rasmunk
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import os
from setuptools import setup, find_packages
cur_dir = os.path.abspath(os.path.dirname(__file__))
def read(path):
with open(path, "r") as _file:
return _file.read()
def read_req(name):
path = os.path.join(cur_dir, name)
return [req.strip() for req in read(path).splitlines() if req.strip()]
version_ns = {}
with open(os.path.join(cur_dir, "version.py")) as f:
exec(f.read(), {}, version_ns)
long_description = open("README.rst").read()
setup(
name="corc",
version=version_ns["__version__"],
description="A tool for managing cloud resources and scheduling compute tasks",
long_description=long_description,
author="Rasmus Munk",
author_email="[email protected]",
packages=find_packages(),
url="https://github.com/rasmunk/corc",
license="GNU General Public License v2 (GPLv2)",
keywords=["Cloud", "Orchstration", "Compute"],
install_requires=read_req("requirements.txt"),
extras_require={
"test": read_req("tests/requirements.txt"),
"dev": read_req("requirements-dev.txt"),
},
entry_points={"console_scripts": ["corc = corc.cli.cli:main"]},
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)