This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
112 lines (95 loc) · 4 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
from os import path
from codecs import open
from setuptools import setup, find_packages
PROJECT = 'RESTEasyCLI'
VERSION = 'v0.9.8' # Also change resteasycli.config.default.DefaultConfig
DESCRIPTION = 'Handy REST API client on your terminal'
here = path.abspath(path.dirname(__file__))
# Get requirements from requirements.txt file
with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f:
requirements = f.read().splitlines()
# Get dev requirements from dev/requirements.txt file
with open(path.join(here, 'dev/requirements.txt'), encoding='utf-8') as f:
dev_requirements = f.read().splitlines()
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name=PROJECT,
version=VERSION,
# Also change resteasycli.config.Config, README.md
description=DESCRIPTION,
long_description=long_description,
# long_description_content_type='text/markdown',
url='https://github.com/rapidstack/RESTEasyCLI',
download_url=(
'https://github.com/rapidstack/'
'RESTEasyCLI/archive/{}.tar.gz'
).format(VERSION),
author='Arijit Basu',
author_email='sayanarijit@gmail.com',
license='MIT',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Internet',
'Topic :: Utilities',
'Topic :: Software Development',
'Operating System :: MacOS',
'Operating System :: Unix',
'Operating System :: POSIX',
'Operating System :: Microsoft',
],
platforms=['Any'],
install_requires=requirements,
extras_require={'develop': dev_requirements},
packages=find_packages(),
entry_points={
'console_scripts': [
'recli = resteasycli.cmd.main:main',
],
'cliff.recli.pre_init': [
'init = resteasycli.cmd.initialize:Init',
],
'cliff.recli.post_init': [
'init = resteasycli.cmd.initialize:Init',
'get = resteasycli.cmd.requests:GET',
'post = resteasycli.cmd.requests:POST',
'put = resteasycli.cmd.requests:PUT',
'patch = resteasycli.cmd.requests:PATCH',
'delete = resteasycli.cmd.requests:DELETE',
'list = resteasycli.cmd.requests:UnSavedList',
'show = resteasycli.cmd.requests:UnSavedShow',
'redo = resteasycli.cmd.requests:SavedRedo',
'do = resteasycli.cmd.requests:SavedRedo',
'redo-list = resteasycli.cmd.requests:SavedList',
'dolst = resteasycli.cmd.requests:SavedList',
'redo-show = resteasycli.cmd.requests:SavedShow',
'doshw = resteasycli.cmd.requests:SavedShow',
'list-sites = resteasycli.cmd.workspace:ListSites',
'show-site = resteasycli.cmd.workspace:ShowSite',
'list-endpoints = resteasycli.cmd.workspace:ListEndpoints',
'show-endpoint = resteasycli.cmd.workspace:ShowEndpoint',
'list-saved = resteasycli.cmd.workspace:ListSavedRequests',
'show-saved = resteasycli.cmd.workspace:ShowSavedRequest',
'list-headers = resteasycli.cmd.workspace:ListHeaders',
'show-headers = resteasycli.cmd.workspace:ShowHeaders',
'list-auth = resteasycli.cmd.workspace:ListAuth',
'show-auth = resteasycli.cmd.workspace:ShowAuth',
'doc = resteasycli.cmd.doc:Generate',
],
},
keywords='REST API client CLI tool',
)