-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (62 loc) · 1.89 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
72
73
"""Install script for leprechaun."""
from pathlib import Path
from setuptools import find_packages, setup
from setuptools.command.egg_info import egg_info
class egg_info_ex(egg_info):
"""Includes license file into `.egg-info` folder."""
def run(self):
# don't duplicate license into `.egg-info` when building a distribution
if not self.distribution.have_run.get('install', True):
# `install` command is in progress, copy license
self.mkpath(self.egg_info)
self.copy_file('LICENSE.txt', self.egg_info)
egg_info.run(self)
dir = Path(__file__).parent
long_description = (dir / "README.md").read_text()
install_requires = [
"appdirs",
"cachetools",
"pywin32; platform_system=='Windows'",
"pyyaml",
"PySide6",
"better_exceptions",
"requests",
"calc @ https://github.com/andreasxp/calc/archive/refs/heads/main.zip",
"idle @ https://github.com/andreasxp/idle/archive/refs/heads/main.zip",
]
extras_require = {
"freeze": [
"pyinstaller",
],
"docs": [
"sphinx",
"furo==2022.1.2",
"sphinx-copybutton"
]
}
entry_points = {
"gui_scripts": ["leprechaun-gui = leprechaun.gui:main"],
"console_scripts": ["leprechaun = leprechaun.__main__:main"],
}
setup(
name="leprechaun",
version="0.5.2",
description="Your friendly neighborhood cryptominer",
long_description=long_description,
long_description_content_type='text/markdown',
author="Andrey Zhukov",
url="https://github.com/andreasxp/leprechaun",
license="GPLv3",
license_files=('LICENSE.txt',),
cmdclass={'egg_info': egg_info_ex},
install_requires=install_requires,
extras_require=extras_require,
packages=find_packages(include=[
"leprechaun",
"leprechaun.*"
]),
package_data={
"leprechaun": ["data/*"]
},
entry_points=entry_points
)