https://github.com/xflr6/graphviz
Revision 6fe8c4e3bc3d5a8a053115e238f1cc974cd793b5 authored by Eli Schwartz on 04 December 2023, 09:05:52 UTC, committed by GitHub on 04 December 2023, 09:05:52 UTC
The PyPI standalone mock package is a straight backport of the stdlib to
older versions of python. It is usually not needed.

In this case, the required version of mock is >=4, which backports the
python 3.8 stdlib. The minimum version of python required is already
3.8, so all functionality guaranteed to exist is already part of the
stdlib.

Simply use the stdlib directly.
1 parent 448d1a0
Raw File
Tip revision: 6fe8c4e3bc3d5a8a053115e238f1cc974cd793b5 authored by Eli Schwartz on 04 December 2023, 09:05:52 UTC
migrate from external mock package to stdlib unittest.mock (#212)
Tip revision: 6fe8c4e
setup.py
import pathlib
from setuptools import setup, find_packages

setup(
    name='graphviz',
    version='0.20.2.dev0',
    author='Sebastian Bank',
    author_email='sebastian.bank@uni-leipzig.de',
    description='Simple Python interface for Graphviz',
    keywords='graph visualization dot render',
    license='MIT',
    url='https://github.com/xflr6/graphviz',
    project_urls={
        'Documentation': 'https://graphviz.readthedocs.io',
        'Changelog': 'https://graphviz.readthedocs.io/en/latest/changelog.html',
        'Issue Tracker': 'https://github.com/xflr6/graphviz/issues',
        'CI': 'https://github.com/xflr6/graphviz/actions',
        'Coverage': 'https://codecov.io/gh/xflr6/graphviz',
    },
    packages=find_packages(),
    platforms='any',
    python_requires='>=3.8',
    extras_require={
        'dev': ['tox>=3', 'flake8', 'pep8-naming', 'wheel', 'twine'],
        'test': ['pytest>=7',
                 'pytest-mock>=3',
                 'pytest-cov', 'coverage'],
        'docs': ['sphinx>=5,<7', 'sphinx-autodoc-typehints', 'sphinx-rtd-theme'],
    },
    long_description=pathlib.Path('README.rst').read_text(encoding='utf-8'),
    long_description_content_type='text/x-rst',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10',
        'Programming Language :: Python :: 3.11',
        'Programming Language :: Python :: 3.12',
        'Topic :: Scientific/Engineering :: Visualization',
    ],
)
back to top