forked from gyf304/vmcli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (53 loc) · 1.9 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
#!/usr/bin/env python
import platform
from distutils.core import setup
from distutils.version import StrictVersion
import sys
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
mac_version = platform.mac_ver()[0]
if not mac_version:
print('This package only works on Mac, Sorry.')
sys.exit(1)
mac_version = StrictVersion(mac_version)
if mac_version < StrictVersion("12.3"):
print('This package has been tested on MacOS 12.3, Please upgrade.')
sys.exit(1)
setup(name='macos-virt',
version='0.2.0',
description='MacOS utility to run Linux using Virtualization.Framework',
author='David Markey',
author_email='[email protected]',
url='https://github.com/dmarkey/macos-virt',
packages=['macos_virt', "macos_virt.profiles", "macos_virt.service"],
entry_points={
'console_scripts': [
'macos-virt=macos_virt.main:main',
]
},
include_package_data=True,
classifiers=['Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License'],
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=[
"click==8.0.4",
"commonmark==0.9.1",
"pycdlib==1.12.0",
"Pygments==2.11.2",
"pyserial==3.5",
"PyYAML==6.0",
"rich==12.0.0",
"six==1.16.0",
"typer==0.4.0",
"xdg==5.1.1"
],
package_data={
"macos_virt": ["macos_virt_runner/macos_virt_runner",
"macos_virt_runner/macos_virt_runner.entitlements",
"profiles/ubuntu-cloudinit.yaml"],
"macos_virt.service": ["install_boot.sh", "macos-virt-service.service",
"docker-service-override.conf"],
}
)