9 Star 1 Fork 1

openEuler / auto_py2to3

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
setup.py 3.58 KB
Copy Edit Raw Blame History
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# auto_py2to3 is licensed under the Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
# http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
# PURPOSE.
# See the Mulan PSL v2 for more details.
# Create: 2020-8-1
"""The setup script."""
import os
from setuptools import setup, find_packages
with open("README.rst", "r", encoding="utf-8") as readme_file:
readme = readme_file.read()
with open("HISTORY.rst", "r", encoding="utf-8") as history_file:
history = history_file.read()
dir_ = os.path.dirname(os.path.abspath(__file__))
requirements = open(os.path.join(dir_, "requirements.txt"), "r", encoding="utf-8").read().splitlines()
setup_requirements = ['pytest-runner', ]
test_requirements = ['pytest>=3', ]
setup(
author="61Duke",
author_email='61duke@isrc.iscas.ac.cn',
python_requires='>=3.*.*',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Mulan PSL v2',
'Natural Language :: English',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'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',
'Programming Language :: Python :: 3.8',
],
description="On January 1, 2020, the Python 2 code base was frozen. Since that day, there has been no further "
"backport of Python 2, which actually makes this language and runtime environment obsolete. Nick "
"Coghlan, the core developer, explained in the FAQ, thus ending the situation of “the core "
"development team maintains Python 2 and 3 at the same time as a reference interpreter for about 13 "
"years”. The final version of Python 2 is currently passing the beta testing and release candidate "
"stage, and the last production-level version of Python 2.7.18 is expected to be launched in April "
"2020. Although most people in the Python community agree that Python needs drastic "
"changes—especially because of the much-needed Unicode support that was already there. But many "
"people are frustrated that Python 2 code works well. Therefore, code migration is required, "
"and the ultimate purpose of the library is to enable automated and rapid code migration and provide "
"automated testing. In this process, although there may be some unsatisfactory places in the code "
"migration process, the library will continue to iterate and maintain.",
entry_points={
'console_scripts': [
'py2to3=auto_py2to3.cli:main',
],
},
install_requires=requirements,
license="Mulan PSL v2",
long_description=readme + '\n\n' + history,
include_package_data=True,
keywords='auto_py2to3',
name='auto_py2to3',
packages=find_packages(include=['auto_py2to3', 'auto_py2to3.*']),
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
url='https://gitee.com/weihaitong/auto_py2to3',
version='0.1.2',
zip_safe=False,
)
1
https://gitee.com/openeuler/auto_py2to3.git
git@gitee.com:openeuler/auto_py2to3.git
openeuler
auto_py2to3
auto_py2to3
master

Search