This repository has been archived by the owner on May 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·69 lines (59 loc) · 1.83 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
#!/usr/bin/env python3
"""A setuptools based setup module.
See:
https://packaging.python.org/guides/distributing-packages-using-setuptools/
"""
import os.path
from setuptools import setup, find_packages
def read_file(file_name: str) -> str:
"""Read file that is placed in the same directory as this `setup.py`
module.
:param file_name: File name, should not be a path.
:return: File content as string.
"""
project_root = os.path.abspath(os.path.dirname(__file__))
file_path = os.path.join(project_root, file_name)
with open(file_path) as file:
return file.read()
setup(
name="geni",
version="0.1.0.dev3",
description=("Gentoo installer - bootstraps chroot and executes commands "
"in chroot "),
long_description=read_file("README.md"),
long_description_content_type='text/markdown',
author="aidecoe",
author_email="aidecoe@aidecoe.name",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: System Administrators",
"Topic :: System :: Installation/Setup",
"License :: OSI Approved :: GNU General Public License v3 or later "
"(GPLv3+)",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
keywords="gentoo installer chroot",
packages=find_packages(),
python_requires=">=3.6, <4",
install_requires=[
"arrow",
"plumbum",
"portalocker",
"requests",
],
extras_require={
"dev": ["mypy",
"pylint"],
},
entry_points={
"console_scripts": [
"geni = geni:Geni.run",
],
},
include_package_data=True,
project_urls={
"Bug Reports": "https://github.com/aidecoe/geni/issues",
"Source": "https://github.com/aidecoe/geni",
},
)