How to use the multimethod.__version__ function in multimethod

To help you get started, we’ve selected a few multimethod examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github coady / multimethod / setup.py View on Github external
from setuptools import setup
import multimethod

setup(
    name='multimethod',
    version=multimethod.__version__,
    description='Multiple argument dispatching.',
    long_description=open('README.md').read(),
    long_description_content_type='text/markdown',
    author='Aric Coady',
    author_email='aric.coady@gmail.com',
    url='https://github.com/coady/multimethod',
    project_urls={'Documentation': 'https://multimethod.readthedocs.io'},
    license='Apache Software License',
    packages=['multimethod'],
    package_data={'multimethod': ['py.typed']},
    zip_safe=False,
    extras_require={'docs': ['recommonmark', 'nbsphinx', 'jupyter', 'sphinx']},
    python_requires='>=3.6',
    tests_require=['pytest-cov'],
    keywords='multiple dispatch multidispatch generic functions methods overload',
    classifiers=[
github coady / multimethod / docs / conf.py View on Github external
# documentation root, use os.path.abspath to make it absolute, like shown here.

import os
import sys
sys.path.append(os.path.abspath('..'))
import multimethod


# -- Project information -----------------------------------------------------

project = 'multimethod'
copyright = '2020, Aric Coady'
author = 'Aric Coady'

# The full version, including alpha/beta/rc tags
release = multimethod.__version__


# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.viewcode',
    'recommonmark',
    'nbsphinx',
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']