代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/GIF-for-CLI 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2018 Google LLC
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
https://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.
"""
from setuptools import setup, find_packages
import os
import gif_for_cli
# Python doesn't seem to have a consistent way of including non-Python files
# from outside a package directory, nor an obvious way to map a subpackage to
# a different directory.
current_dir = os.path.dirname(__file__)
symlink_path = os.path.join(current_dir, 'gif_for_cli', 'third_party')
try:
os.unlink(symlink_path)
except Exception:
pass
third_party_module_existed = False
try:
os.symlink(os.path.join(current_dir, '..', 'third_party'), symlink_path)
except Exception:
third_party_module_existed = True
packages = find_packages()
try:
packages.remove('third_party')
except ValueError:
# May not be present in builds.
pass
setup(
name='gif-for-cli',
version=gif_for_cli.__version__,
description="Render an animated GIF to your command line terminal.",
author='Seán Hayes',
author_email='sth@google.com',
url='https://github.com/google/gif-for-cli',
keywords='gif cli terminal ascii ansi',
packages=packages,
include_package_data=True,
entry_points={
'console_scripts': ['gif-for-cli=gif_for_cli.__main__:main'],
},
install_requires=[
'Pillow>=5.1.0', # PIL Software License
'requests>=2.18.4', # Apache License 2.0
'x256>=0.0.3', # MIT License
],
tests_require=[
'coverage>=4.5.1',
],
test_suite='tests',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.5',
'Topic :: Artistic Software',
'Topic :: Multimedia :: Graphics :: Graphics Conversion',
'Topic :: Multimedia :: Graphics :: Presentation',
'Topic :: Multimedia :: Graphics :: Viewers',
'Topic :: Multimedia :: Video :: Conversion',
'Topic :: Multimedia :: Video :: Display',
'Topic :: Terminals',
'Topic :: Utilities',
],
)
if not third_party_module_existed:
# Only try to unlink if a symlink was created, but not if
# gif_for_cli.third_party was directory (inside a distribution).
os.unlink(symlink_path)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。