2018-06-27 10:53:52 -07:00
|
|
|
# Copyright (C) 2018 Google Inc.
|
2017-02-15 13:22:36 -08:00
|
|
|
#
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
#
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
|
|
"""The setup.py file for Python Fire."""
|
|
|
|
|
|
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
2017-03-28 10:51:47 -04:00
|
|
|
LONG_DESCRIPTION = """
|
2017-02-23 18:12:53 +00:00
|
|
|
Python Fire is a library for automatically generating command line interfaces
|
|
|
|
|
(CLIs) with a single line of code.
|
2017-02-15 13:22:36 -08:00
|
|
|
|
|
|
|
|
It will turn any Python module, class, object, function, etc. (any Python
|
|
|
|
|
component will work!) into a CLI. It's called Fire because when you call Fire(),
|
|
|
|
|
it fires off your command.
|
|
|
|
|
""".strip()
|
|
|
|
|
|
2017-03-28 10:51:47 -04:00
|
|
|
SHORT_DESCRIPTION = """
|
2017-04-06 16:26:42 -06:00
|
|
|
A library for automatically generating command line interfaces.""".strip()
|
2017-02-23 18:12:53 +00:00
|
|
|
|
2017-03-28 10:51:47 -04:00
|
|
|
DEPENDENCIES = [
|
2017-02-15 13:22:36 -08:00
|
|
|
'six',
|
2019-06-12 17:08:14 -07:00
|
|
|
'termcolor',
|
2020-10-05 11:20:49 -07:00
|
|
|
'enum34; python_version < "3.4"'
|
|
|
|
|
]
|
2017-02-15 13:22:36 -08:00
|
|
|
|
2017-03-28 10:51:47 -04:00
|
|
|
TEST_DEPENDENCIES = [
|
2017-02-15 13:22:36 -08:00
|
|
|
'hypothesis',
|
|
|
|
|
'mock',
|
|
|
|
|
'python-Levenshtein',
|
|
|
|
|
]
|
|
|
|
|
|
2022-11-28 16:13:34 -05:00
|
|
|
VERSION = '0.5.0'
|
2017-07-24 08:54:10 -07:00
|
|
|
URL = 'https://github.com/google/python-fire'
|
|
|
|
|
|
2017-02-15 13:22:36 -08:00
|
|
|
setup(
|
2017-02-23 18:12:53 +00:00
|
|
|
name='fire',
|
2017-07-24 08:54:10 -07:00
|
|
|
version=VERSION,
|
2017-03-28 10:51:47 -04:00
|
|
|
description=SHORT_DESCRIPTION,
|
|
|
|
|
long_description=LONG_DESCRIPTION,
|
2017-07-24 08:54:10 -07:00
|
|
|
url=URL,
|
2017-02-15 13:22:36 -08:00
|
|
|
|
|
|
|
|
author='David Bieber',
|
|
|
|
|
author_email='dbieber@google.com',
|
|
|
|
|
license='Apache Software License',
|
|
|
|
|
|
|
|
|
|
classifiers=[
|
|
|
|
|
'Development Status :: 4 - Beta',
|
|
|
|
|
|
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
|
|
|
|
|
|
|
|
'License :: OSI Approved :: Apache Software License',
|
|
|
|
|
|
|
|
|
|
'Programming Language :: Python',
|
|
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
|
'Programming Language :: Python :: 3',
|
2017-03-27 16:01:23 -04:00
|
|
|
'Programming Language :: Python :: 3.5',
|
|
|
|
|
'Programming Language :: Python :: 3.6',
|
2019-02-26 13:35:02 -08:00
|
|
|
'Programming Language :: Python :: 3.7',
|
2020-06-12 10:51:40 -07:00
|
|
|
'Programming Language :: Python :: 3.8',
|
2021-01-22 08:57:47 -08:00
|
|
|
'Programming Language :: Python :: 3.9',
|
2023-02-07 00:41:38 +09:00
|
|
|
'Programming Language :: Python :: 3.10',
|
2017-02-15 13:22:36 -08:00
|
|
|
|
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
|
'Operating System :: POSIX',
|
|
|
|
|
'Operating System :: MacOS',
|
|
|
|
|
'Operating System :: Unix',
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
keywords='command line interface cli python fire interactive bash tool',
|
|
|
|
|
|
2019-05-24 08:36:13 -07:00
|
|
|
packages=['fire', 'fire.console'],
|
2017-02-15 13:22:36 -08:00
|
|
|
|
2017-03-28 10:51:47 -04:00
|
|
|
install_requires=DEPENDENCIES,
|
|
|
|
|
tests_require=TEST_DEPENDENCIES,
|
2017-02-15 13:22:36 -08:00
|
|
|
)
|