from .server import App from .worker import Worker from importlib.metadata import version as _version, PackageNotFoundError try: __version__ = _version('deframed') except PackageNotFoundError: import subprocess import io c = subprocess.run("git describe --tags".split(" "), capture_output=True) __version__ = c.stdout.decode("utf-8").strip()
from pathlib import Path as _Path from vyper.compiler import compile_code, compile_codes # noqa: F401 try: from importlib.metadata import PackageNotFoundError # type: ignore from importlib.metadata import version as _version # type: ignore except ModuleNotFoundError: from importlib_metadata import PackageNotFoundError # type: ignore from importlib_metadata import version as _version # type: ignore _commit_hash_file = _Path(__file__).parent.joinpath("vyper_git_commithash.txt") if _commit_hash_file.exists(): with _commit_hash_file.open() as fp: __commit__ = fp.read() else: __commit__ = "unknown" try: __version__ = _version(__name__) except PackageNotFoundError: from vyper.version import version as __version__
from .core.dataset import Dataset from .core.extensions import register_dataarray_accessor, register_dataset_accessor from .core.merge import Context, MergeError, merge from .core.options import get_options, set_options from .core.parallel import map_blocks from .core.variable import Coordinate, IndexVariable, Variable, as_variable from .util.print_versions import show_versions try: from importlib.metadata import version as _version except ImportError: # if the fallback library is missing, we are doomed. from importlib_metadata import version as _version # type: ignore[no-redef] try: __version__ = _version("xarray") except Exception: # Local copy or not installed with setuptools. # Disable minimum version checks on downstream libraries. __version__ = "999" # A hardcoded __all__ variable is necessary to appease # `mypy --strict` running in projects that import xarray. __all__ = ( # Sub-packages "testing", "tutorial", # Top-level functions "align", "apply_ufunc", "as_variable",
from importlib.metadata import version as _version from .settings import Settings __all__ = ['Settings'] __version__ = _version('django-enhanced-settings')
source_suffix = '.rst' # The master toctree document. master_doc = 'index' # General information about the project. project = u'effmass' copyright = u'2018, Lucy Whalley' author = u'Lucy Whalley' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The full version, including alpha/beta/rc tags. release = _version('myproject') # The short X.Y version. version = '.'.join(release.split('.')[:2]) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. language = None # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This patterns also effect to html_static_path and html_extra_path exclude_patterns = []
# The master toctree document. master_doc = 'index' # General information about the project. project = 'Mizani' copyright = '2022, Hassan Kibirige' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # The short X.Y version. try: from importlib.metadata import version as _version finally: version = _version('mizani') # readthedocs modifies the repository which messes up the version. # 1. remove +dirty if readthedocs modifies the repo, # 2. remove the 0.0 version created by setuptools_scm when clone is too shallow if on_rtd: import re p1 = re.compile(r'\+dirty$') if p1.match(version): version = p1.sub('', version) p2 = re.compile(r'^0\.0\.post\d+\+g') if p2.match(version): commit = p2.sub('', version) version = f'Commit: {commit}'
""" MIT License Copyright (c) 2018-2020 Nihaal Sangha (Orangutan) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ from importlib.metadata import version as _version __version__ = _version('PMA') from pma.classes import *