代码拉取完成,页面将自动刷新
同步操作将从 MindSpore/darglint 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
"""Defines the package, tests, and dependencies."""
import os
from setuptools import setup, find_packages, Command
import subprocess
def read_full_documentation(fname):
"""Get long documentation from the README.rst.
Args:
fname: The filename for the documentation.
Returns:
The documentation, as a string.
"""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requirements = []
class CleanCommand(Command):
"""Cleans the project.
- Remove the dist directory.
- Remove the build directory.
"""
description = 'Clean the directory of build artifacts'
user_options = []
def initialize_options(self):
self.cwd = None
def finalize_options(self):
self.cwd = os.getcwd()
def run(self):
assert os.getcwd() == self.cwd, 'We must be in the package root.'
subprocess.run(['rm', '-rf', './dist'])
subprocess.run(['rm', '-rf', './build'])
flake8_entry_point = 'flake8.extension'
setup(
name="darglint",
version="1.8.0-1",
author="Terrence Reilly",
author_email="terrencepreilly@gmail.com",
description=("A utility for ensuring Google-style docstrings "
"stay up to date with the source code."),
license="MIT",
keywords="documentation linter development",
url="http://github.com/terrencepreilly/darglint",
packages=find_packages(exclude=('tests', 'docs')),
long_description=read_full_documentation('README.md'),
long_description_content_type="text/markdown",
entry_points={
'console_scripts': [
'darglint = darglint.driver:main',
],
flake8_entry_point: [
'DAR = darglint.flake8_entry:DarglintChecker',
],
},
install_requires=requirements,
setup_requires=requirements,
tests_require=['pytest', 'tox'] + requirements,
python_requires='>=3.6',
classifiers=[
'Intended Audience :: Developers',
'Topic :: Software Development :: Documentation',
'Topic :: Software Development :: Quality Assurance',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.6',
],
cmdclass={
'clean': CleanCommand,
},
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。