-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
91 lines (88 loc) · 2.62 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
from setuptools import setup
# We're not having that for the moment
# from setuptools.command.install import install
# from setuptools.command.develop import develop
# from pathlib import Path
# import os
# import shutil
# import sys
#
#
# class CollectionInstaller:
# @property
# def collection_target(self):
# target = Path(os.getenv('HOME'))
# target /= '.ansible/collections/ansible_collections/yourlabs/cli2'
# return target
#
#
# class Develop(CollectionInstaller, develop):
# def run(self):
# super().run()
#
# source = Path(self.egg_path) / 'cli2/ansible/collection'
# if self.collection_target.exists():
# if self.collection_target.is_symlink():
# if self.collection_target.resolve() == source:
# return
# elif self.collection_target.is_dir():
# shutil.rmtree(self.collection_target)
#
# self.collection_target.parent.mkdir(exist_ok=True, parents=True)
# self.collection_target.symlink_to(source)
#
#
# class Install(CollectionInstaller, install):
# def run(self):
# super().run()
#
# self.collection_target.parent.mkdir(exist_ok=True, parents=True)
# source = Path(self.install_lib) / 'cli2/ansible/collection'
# shutil.copytree(source, self.collection_target, dirs_exist_ok=True)
setup(
name='cli2',
versioning='dev',
setup_requires='setupmeta',
packages=['cli2'],
install_requires=[
'docstring_parser',
'pyyaml',
'pygments',
'structlog',
'aiofiles',
],
extras_require=dict(
httpx=['chttpx'],
ansible=['cansible'],
test=[
'freezegun',
'pytest',
'pytest-cov',
'pytest-mock',
'pytest-asyncio',
'pytest-httpx',
],
),
author='James Pic',
author_email='[email protected]',
url='https://yourlabs.io/oss/cli2',
include_package_data=True,
license='MIT',
keywords='cli',
python_requires='>=3.6',
entry_points={
'console_scripts': [
'cli2 = cli2.cli2:main.entry_point',
'cli2-theme = cli2.theme:cli.entry_point',
'cli2-md = cli2.markdown:cli.entry_point',
'cli2-example = cli2.examples.obj:cli.entry_point',
'cli2-example2 = cli2.examples.obj2:cli.entry_point',
'cli2-example-nesting = cli2.examples.nesting:cli.entry_point',
'cli2-example-client = cli2.examples.client:cli.entry_point',
],
},
# cmdclass={
# 'install': Install,
# 'develop': Develop,
# },
)