Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pantsbuild.pants / backend / python / targets / python_library.py
Size: Mime:
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from pants.backend.python.targets.python_target import PythonTarget
from pants.backend.python.targets.python_tests import PythonTests


class PythonLibrary(PythonTarget):
    """A Python library.

    :API: public
    """

    @classmethod
    def alias(cls):
        return "python_library"

    default_sources_globs = "*.py"
    default_sources_exclude_globs = PythonTests.default_sources_globs