diff --git a/benchmarks/__init__.py b/benchmarks/__init__.py index e69de29bb2..3f48e8b789 100644 --- a/benchmarks/__init__.py +++ b/benchmarks/__init__.py @@ -0,0 +1,2 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause diff --git a/benchmarks/time_render.py b/benchmarks/time_render.py index 8455aa98f9..5fe76f6f45 100644 --- a/benchmarks/time_render.py +++ b/benchmarks/time_render.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os from conda_build import api diff --git a/conda.recipe/run_test.py b/conda.recipe/run_test.py index 62baa807eb..42a35beb73 100644 --- a/conda.recipe/run_test.py +++ b/conda.recipe/run_test.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import conda_build print('conda_build.__version__: %s' % conda_build.__version__) diff --git a/conda.recipe/test_bdist_conda_setup.py b/conda.recipe/test_bdist_conda_setup.py index ad03a5c4f4..3f26e18b06 100644 --- a/conda.recipe/test_bdist_conda_setup.py +++ b/conda.recipe/test_bdist_conda_setup.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from setuptools import setup import conda_build.bdist_conda diff --git a/conda_build/__init__.py b/conda_build/__init__.py index 9f97bfeef2..481c819391 100644 --- a/conda_build/__init__.py +++ b/conda_build/__init__.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from . import _version __version__ = _version.get_versions()['version'] diff --git a/conda_build/_link.py b/conda_build/_link.py index db0e5b1a0a..50c0da3641 100644 --- a/conda_build/_link.py +++ b/conda_build/_link.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ This is code that is added to noarch Python packages. See conda_build/noarch_python.py. diff --git a/conda_build/_load_setup_py_data.py b/conda_build/_load_setup_py_data.py index adabad7094..fd4bef91f1 100644 --- a/conda_build/_load_setup_py_data.py +++ b/conda_build/_load_setup_py_data.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import sys import logging diff --git a/conda_build/api.py b/conda_build/api.py index 0920fdb82c..2d186fe9f4 100644 --- a/conda_build/api.py +++ b/conda_build/api.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ This file defines the public API for conda-build. Adding or removing functions, or Changing arguments to anything in here should also mean changing the major diff --git a/conda_build/bdist_conda.py b/conda_build/bdist_conda.py index 24b32e733b..49ee52d14f 100644 --- a/conda_build/bdist_conda.py +++ b/conda_build/bdist_conda.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ bdist_conda diff --git a/conda_build/build.py b/conda_build/build.py index e4b500e393..6bd05d4e53 100644 --- a/conda_build/build.py +++ b/conda_build/build.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause ''' Module that does most of the heavy lifting for the ``conda build`` command. ''' diff --git a/conda_build/cli/__init__.py b/conda_build/cli/__init__.py index e69de29bb2..3f48e8b789 100644 --- a/conda_build/cli/__init__.py +++ b/conda_build/cli/__init__.py @@ -0,0 +1,2 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause diff --git a/conda_build/cli/actions.py b/conda_build/cli/actions.py index 11b200a699..0067f370de 100644 --- a/conda_build/cli/actions.py +++ b/conda_build/cli/actions.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import argparse diff --git a/conda_build/cli/main_build.py b/conda_build/cli/main_build.py index 43219e22d8..06ad0d8ded 100644 --- a/conda_build/cli/main_build.py +++ b/conda_build/cli/main_build.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import argparse import warnings diff --git a/conda_build/cli/main_convert.py b/conda_build/cli/main_convert.py index 282676eb52..b5b27c7cfa 100644 --- a/conda_build/cli/main_convert.py +++ b/conda_build/cli/main_convert.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from locale import getpreferredencoding import logging from os.path import abspath, expanduser diff --git a/conda_build/cli/main_debug.py b/conda_build/cli/main_debug.py index 14b6d461bf..22cdf2cb73 100644 --- a/conda_build/cli/main_debug.py +++ b/conda_build/cli/main_debug.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import logging import sys from argparse import ArgumentParser diff --git a/conda_build/cli/main_develop.py b/conda_build/cli/main_develop.py index 27129ecfee..7fc473725c 100644 --- a/conda_build/cli/main_develop.py +++ b/conda_build/cli/main_develop.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import logging import sys diff --git a/conda_build/cli/main_index.py b/conda_build/cli/main_index.py index c272fe2e5b..9d3f4009b9 100644 --- a/conda_build/cli/main_index.py +++ b/conda_build/cli/main_index.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import logging import os import sys diff --git a/conda_build/cli/main_inspect.py b/conda_build/cli/main_inspect.py index 7555c69801..21c09a570b 100644 --- a/conda_build/cli/main_inspect.py +++ b/conda_build/cli/main_inspect.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import logging from os.path import expanduser from pprint import pprint diff --git a/conda_build/cli/main_metapackage.py b/conda_build/cli/main_metapackage.py index 9eefc0506b..5a9613c273 100644 --- a/conda_build/cli/main_metapackage.py +++ b/conda_build/cli/main_metapackage.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import argparse import logging import sys diff --git a/conda_build/cli/main_render.py b/conda_build/cli/main_render.py index 44098c81c0..b2280db449 100644 --- a/conda_build/cli/main_render.py +++ b/conda_build/cli/main_render.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import argparse import logging import sys diff --git a/conda_build/cli/main_skeleton.py b/conda_build/cli/main_skeleton.py index 570c7cf014..993d3f3ee6 100644 --- a/conda_build/cli/main_skeleton.py +++ b/conda_build/cli/main_skeleton.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import importlib import logging import os diff --git a/conda_build/cli/validators.py b/conda_build/cli/validators.py index 1e533f22f4..fdebdcba5b 100644 --- a/conda_build/cli/validators.py +++ b/conda_build/cli/validators.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from __future__ import annotations import os diff --git a/conda_build/conda_interface.py b/conda_build/conda_interface.py index 444986fd70..c1b3b56774 100644 --- a/conda_build/conda_interface.py +++ b/conda_build/conda_interface.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from functools import partial import os from os import lstat diff --git a/conda_build/config.py b/conda_build/config.py index 01a0eb67c5..13138a6a62 100644 --- a/conda_build/config.py +++ b/conda_build/config.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause ''' Module to store conda build settings. ''' diff --git a/conda_build/convert.py b/conda_build/convert.py index 9f82703e89..e19cbfc48b 100644 --- a/conda_build/convert.py +++ b/conda_build/convert.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause # (c) 2012-2017 Continuum Analytics, Inc. / http://continuum.io # All Rights Reserved # diff --git a/conda_build/create_test.py b/conda_build/create_test.py index badd09f6c8..afd6bfbcb9 100644 --- a/conda_build/create_test.py +++ b/conda_build/create_test.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause ''' Module to handle generating test files. ''' diff --git a/conda_build/develop.py b/conda_build/develop.py index 0d41bcd992..3899c0e063 100644 --- a/conda_build/develop.py +++ b/conda_build/develop.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from os.path import join, isdir, abspath, expanduser, exists import shutil import sys diff --git a/conda_build/environ.py b/conda_build/environ.py index 457107c9ac..f19e78f7d5 100644 --- a/conda_build/environ.py +++ b/conda_build/environ.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import contextlib import json import logging diff --git a/conda_build/exceptions.py b/conda_build/exceptions.py index 4e56e99f20..72d62a377d 100644 --- a/conda_build/exceptions.py +++ b/conda_build/exceptions.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import textwrap SEPARATOR = "-" * 70 diff --git a/conda_build/features.py b/conda_build/features.py index 9dfe36e607..5d10031032 100644 --- a/conda_build/features.py +++ b/conda_build/features.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import sys diff --git a/conda_build/index.py b/conda_build/index.py index c3623c378c..342c92ad16 100644 --- a/conda_build/index.py +++ b/conda_build/index.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause # Copyright (C) 2018 Anaconda, Inc # SPDX-License-Identifier: Proprietary diff --git a/conda_build/inspect_pkg.py b/conda_build/inspect_pkg.py index 547588a221..2a0e7a5e0a 100644 --- a/conda_build/inspect_pkg.py +++ b/conda_build/inspect_pkg.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from collections import defaultdict from itertools import groupby import json diff --git a/conda_build/jinja_context.py b/conda_build/jinja_context.py index fc1f521dcd..e494bd7e43 100644 --- a/conda_build/jinja_context.py +++ b/conda_build/jinja_context.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from functools import partial from io import StringIO import json diff --git a/conda_build/license_family.py b/conda_build/license_family.py index 77fbfb1975..542166dd30 100644 --- a/conda_build/license_family.py +++ b/conda_build/license_family.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import re import string from conda_build import exceptions diff --git a/conda_build/metadata.py b/conda_build/metadata.py index 73aa4de0c5..7a3758e454 100644 --- a/conda_build/metadata.py +++ b/conda_build/metadata.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from collections import OrderedDict import contextlib import copy diff --git a/conda_build/metapackage.py b/conda_build/metapackage.py index f5f4021ff1..fd993c1236 100644 --- a/conda_build/metapackage.py +++ b/conda_build/metapackage.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from collections import defaultdict from conda_build.config import Config from conda_build.metadata import MetaData diff --git a/conda_build/noarch_python.py b/conda_build/noarch_python.py index 4588a7e9f0..6823faeea6 100644 --- a/conda_build/noarch_python.py +++ b/conda_build/noarch_python.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import json import locale import logging diff --git a/conda_build/os_utils/__init__.py b/conda_build/os_utils/__init__.py index e69de29bb2..3f48e8b789 100644 --- a/conda_build/os_utils/__init__.py +++ b/conda_build/os_utils/__init__.py @@ -0,0 +1,2 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause diff --git a/conda_build/os_utils/elf.py b/conda_build/os_utils/elf.py index b37d96ed8d..e8b2386f55 100644 --- a/conda_build/os_utils/elf.py +++ b/conda_build/os_utils/elf.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import sys from os.path import islink, isfile diff --git a/conda_build/os_utils/external.py b/conda_build/os_utils/external.py index d050bd3308..3e5ea52994 100644 --- a/conda_build/os_utils/external.py +++ b/conda_build/os_utils/external.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import stat import sys diff --git a/conda_build/os_utils/ldd.py b/conda_build/os_utils/ldd.py index 27ca8aed7d..0ce249b83b 100644 --- a/conda_build/os_utils/ldd.py +++ b/conda_build/os_utils/ldd.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import sys import re import subprocess diff --git a/conda_build/os_utils/liefldd.py b/conda_build/os_utils/liefldd.py index e5f94fc7d1..ba7df48b74 100644 --- a/conda_build/os_utils/liefldd.py +++ b/conda_build/os_utils/liefldd.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause try: from collections.abc import Hashable except ImportError: diff --git a/conda_build/os_utils/macho.py b/conda_build/os_utils/macho.py index 8e3b555703..5e19303bf7 100644 --- a/conda_build/os_utils/macho.py +++ b/conda_build/os_utils/macho.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import re import stat import sys diff --git a/conda_build/os_utils/pyldd.py b/conda_build/os_utils/pyldd.py index 7f17354265..efce517ce2 100644 --- a/conda_build/os_utils/pyldd.py +++ b/conda_build/os_utils/pyldd.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import argparse import glob import os diff --git a/conda_build/post.py b/conda_build/post.py index d6a56ed03d..5d97beac84 100644 --- a/conda_build/post.py +++ b/conda_build/post.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from copy import copy from collections import defaultdict, OrderedDict from functools import partial diff --git a/conda_build/render.py b/conda_build/render.py index a00c2484bb..40a589e4c9 100644 --- a/conda_build/render.py +++ b/conda_build/render.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from collections import OrderedDict, defaultdict from locale import getpreferredencoding import json diff --git a/conda_build/skeletons/__init__.py b/conda_build/skeletons/__init__.py index e69de29bb2..3f48e8b789 100644 --- a/conda_build/skeletons/__init__.py +++ b/conda_build/skeletons/__init__.py @@ -0,0 +1,2 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause diff --git a/conda_build/skeletons/_example_skeleton.py b/conda_build/skeletons/_example_skeleton.py index cfbca180ed..25ee72e23e 100644 --- a/conda_build/skeletons/_example_skeleton.py +++ b/conda_build/skeletons/_example_skeleton.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """This file is an example of the structure that any add-on module for a new language should have. You can have structure beyond this, but this is a minimum of what conda-build will look for.""" diff --git a/conda_build/skeletons/cpan.py b/conda_build/skeletons/cpan.py index b7f14625c3..60b74c5b89 100644 --- a/conda_build/skeletons/cpan.py +++ b/conda_build/skeletons/cpan.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ Tools for converting CPAN packages to conda recipes. """ diff --git a/conda_build/skeletons/cran.py b/conda_build/skeletons/cran.py index 98e9123c70..1d623c78b8 100755 --- a/conda_build/skeletons/cran.py +++ b/conda_build/skeletons/cran.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ Tools for converting Cran packages to conda recipes. """ diff --git a/conda_build/skeletons/luarocks.py b/conda_build/skeletons/luarocks.py index 2de9fe9ced..e83e76fd65 100644 --- a/conda_build/skeletons/luarocks.py +++ b/conda_build/skeletons/luarocks.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ Tools for converting luarocks packages to conda recipes. """ diff --git a/conda_build/skeletons/pypi.py b/conda_build/skeletons/pypi.py index e359e81a1d..8abc64cf17 100644 --- a/conda_build/skeletons/pypi.py +++ b/conda_build/skeletons/pypi.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ Tools for converting PyPI packages to conda recipes. """ diff --git a/conda_build/skeletons/rpm.py b/conda_build/skeletons/rpm.py index 119a0e4d16..3defe6578c 100644 --- a/conda_build/skeletons/rpm.py +++ b/conda_build/skeletons/rpm.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import argparse from conda_build.conda_interface import iteritems from conda_build.source import download_to_cache diff --git a/conda_build/source.py b/conda_build/source.py index fdbcfd818f..5dbaa59d52 100644 --- a/conda_build/source.py +++ b/conda_build/source.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import locale import os from os.path import join, isdir, isfile, abspath, basename, exists, normpath, expanduser diff --git a/conda_build/tarcheck.py b/conda_build/tarcheck.py index ac8ab53ce6..ac8cebd769 100644 --- a/conda_build/tarcheck.py +++ b/conda_build/tarcheck.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import json from os.path import basename, normpath import tarfile diff --git a/conda_build/utils.py b/conda_build/utils.py index 6beeb52eae..4de2388086 100644 --- a/conda_build/utils.py +++ b/conda_build/utils.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from collections import OrderedDict, defaultdict import contextlib import fnmatch diff --git a/conda_build/variants.py b/conda_build/variants.py index feec5d649d..d2fde1f5d6 100644 --- a/conda_build/variants.py +++ b/conda_build/variants.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """This file handles the parsing of feature specifications from files, ending up with a configuration matrix""" diff --git a/conda_build/windows.py b/conda_build/windows.py index a005a5c258..2c4ec8f067 100644 --- a/conda_build/windows.py +++ b/conda_build/windows.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import pprint from os.path import isdir, join, dirname, isfile diff --git a/docs/scrape_help.py b/docs/scrape_help.py index 6966140650..ac7ffe0e45 100755 --- a/docs/scrape_help.py +++ b/docs/scrape_help.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from subprocess import check_output, PIPE, Popen, STDOUT from os.path import join, dirname, abspath, isdir from os import makedirs, pathsep diff --git a/docs/source/conf.py b/docs/source/conf.py index fce8a04088..c654dff3e8 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause # # Configuration file for the Sphinx documentation builder. # diff --git a/setup.py b/setup.py index 0cbd80036b..2a52da6420 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from pathlib import Path from setuptools import setup diff --git a/tests/__init__.py b/tests/__init__.py index bbc39889bf..622c492538 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,2 +1,4 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause # This is just here so that tests is a package, so that dotted relative # imports work. diff --git a/tests/bdist-recipe/bin/test-script-setup.py b/tests/bdist-recipe/bin/test-script-setup.py index d772bb7f7c..f125947783 100644 --- a/tests/bdist-recipe/bin/test-script-setup.py +++ b/tests/bdist-recipe/bin/test-script-setup.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import conda_build_test conda_build_test diff --git a/tests/bdist-recipe/conda_build_test/__init__.py b/tests/bdist-recipe/conda_build_test/__init__.py index 72f453f625..3574c4128a 100644 --- a/tests/bdist-recipe/conda_build_test/__init__.py +++ b/tests/bdist-recipe/conda_build_test/__init__.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ conda build test package """ diff --git a/tests/bdist-recipe/conda_build_test/empty.py b/tests/bdist-recipe/conda_build_test/empty.py index e69de29bb2..3f48e8b789 100644 --- a/tests/bdist-recipe/conda_build_test/empty.py +++ b/tests/bdist-recipe/conda_build_test/empty.py @@ -0,0 +1,2 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause diff --git a/tests/bdist-recipe/conda_build_test/manual_entry.py b/tests/bdist-recipe/conda_build_test/manual_entry.py index 94b3ef13f6..fb15342cd3 100644 --- a/tests/bdist-recipe/conda_build_test/manual_entry.py +++ b/tests/bdist-recipe/conda_build_test/manual_entry.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause def main(): import argparse diff --git a/tests/bdist-recipe/setup.py b/tests/bdist-recipe/setup.py index a7fe8ef631..d9aac68996 100644 --- a/tests/bdist-recipe/setup.py +++ b/tests/bdist-recipe/setup.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from setuptools import setup import conda_build.bdist_conda diff --git a/tests/cli/__init__.py b/tests/cli/__init__.py index e69de29bb2..3f48e8b789 100644 --- a/tests/cli/__init__.py +++ b/tests/cli/__init__.py @@ -0,0 +1,2 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause diff --git a/tests/cli/test_main_debug.py b/tests/cli/test_main_debug.py index f4ea744104..991000279b 100644 --- a/tests/cli/test_main_debug.py +++ b/tests/cli/test_main_debug.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import io import os.path import sys diff --git a/tests/cli/test_validators.py b/tests/cli/test_validators.py index 020258a760..7de6c87d56 100644 --- a/tests/cli/test_validators.py +++ b/tests/cli/test_validators.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os from argparse import ArgumentError from typing import Union diff --git a/tests/conftest.py b/tests/conftest.py index 36776b37f3..d3d4fbcbd3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from collections import defaultdict import os import sys diff --git a/tests/test_api_build.py b/tests/test_api_build.py index 43359d1927..c1327519cb 100644 --- a/tests/test_api_build.py +++ b/tests/test_api_build.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ This module tests the build API. These are high-level integration tests. """ diff --git a/tests/test_api_build_conda_v2.py b/tests/test_api_build_conda_v2.py index a6f9694e02..b7c38a96e8 100644 --- a/tests/test_api_build_conda_v2.py +++ b/tests/test_api_build_conda_v2.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import pytest diff --git a/tests/test_api_build_dll_package.py b/tests/test_api_build_dll_package.py index bef56db574..32adb88cc4 100644 --- a/tests/test_api_build_dll_package.py +++ b/tests/test_api_build_dll_package.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import pytest diff --git a/tests/test_api_build_go_package.py b/tests/test_api_build_go_package.py index 6f0371f6ad..16e7a27385 100644 --- a/tests/test_api_build_go_package.py +++ b/tests/test_api_build_go_package.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import pytest diff --git a/tests/test_api_consistency.py b/tests/test_api_consistency.py index 939ed7d0e6..bc46822646 100644 --- a/tests/test_api_consistency.py +++ b/tests/test_api_consistency.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause # This file makes sure that our API has not changed. Doing so can not be accidental. Whenever it # happens, we should bump our major build number, because we may have broken someone. diff --git a/tests/test_api_convert.py b/tests/test_api_convert.py index e7adfd811d..dc973467da 100644 --- a/tests/test_api_convert.py +++ b/tests/test_api_convert.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import csv import os import json diff --git a/tests/test_api_debug.py b/tests/test_api_debug.py index eac0a60388..10415c15d1 100644 --- a/tests/test_api_debug.py +++ b/tests/test_api_debug.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ This module tests the test API. These are high-level integration tests. Lower level unit tests should go in test_render.py diff --git a/tests/test_api_inspect.py b/tests/test_api_inspect.py index 7a775a7170..f3fc6411a2 100644 --- a/tests/test_api_inspect.py +++ b/tests/test_api_inspect.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import pytest diff --git a/tests/test_api_render.py b/tests/test_api_render.py index 5a185574b9..452a642e43 100644 --- a/tests/test_api_render.py +++ b/tests/test_api_render.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ This module tests the test API. These are high-level integration tests. Lower level unit tests should go in test_render.py diff --git a/tests/test_api_skeleton.py b/tests/test_api_skeleton.py index c598ee3794..8603cc76c6 100644 --- a/tests/test_api_skeleton.py +++ b/tests/test_api_skeleton.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import fnmatch import os import subprocess diff --git a/tests/test_api_skeleton_cran.py b/tests/test_api_skeleton_cran.py index f3e7dd64f4..5cbfddff76 100644 --- a/tests/test_api_skeleton_cran.py +++ b/tests/test_api_skeleton_cran.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause ''' Integrative tests of the CRAN skeleton that start from conda_build.api.skeletonize and check the output files diff --git a/tests/test_api_test.py b/tests/test_api_test.py index 22f7b789a4..4bb70a220c 100644 --- a/tests/test_api_test.py +++ b/tests/test_api_test.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ This module tests the test API. These are high-level integration tests. """ diff --git a/tests/test_api_update_index.py b/tests/test_api_update_index.py index 4aa5214ca7..cf1f06c44d 100644 --- a/tests/test_api_update_index.py +++ b/tests/test_api_update_index.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os from conda_build import api diff --git a/tests/test_build.py b/tests/test_build.py index 42fae2fd10..e7e086f8e6 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause """ This file tests the build.py module. It sits lower in the stack than the API tests, and is more unit-test oriented. diff --git a/tests/test_check.py b/tests/test_check.py index 10746a2cfb..8e5109c771 100644 --- a/tests/test_check.py +++ b/tests/test_check.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os from conda_build import api diff --git a/tests/test_cli.py b/tests/test_cli.py index 9446859fc7..57990b63d6 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause # For the most part, all functionality should be tested with the api tests, # because they actually provide coverage. These tests are here to make # sure that the CLI still works. diff --git a/tests/test_conda_interface.py b/tests/test_conda_interface.py index f6d92cfe8a..ea56b3062c 100644 --- a/tests/test_conda_interface.py +++ b/tests/test_conda_interface.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from conda_build import conda_interface as ci diff --git a/tests/test_config.py b/tests/test_config.py index 35c7b4d1f6..4dce1e63a2 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import sys diff --git a/tests/test_cran_skeleton.py b/tests/test_cran_skeleton.py index 29317778ae..2116fff0f7 100644 --- a/tests/test_cran_skeleton.py +++ b/tests/test_cran_skeleton.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause ''' Unit tests of the CRAN skeleton utility functions ''' diff --git a/tests/test_create_test.py b/tests/test_create_test.py index 65e77b5e8e..69877a72e8 100644 --- a/tests/test_create_test.py +++ b/tests/test_create_test.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os from conda_build import create_test as ct diff --git a/tests/test_develop.py b/tests/test_develop.py index 41b5bd876e..f10d19e9a1 100644 --- a/tests/test_develop.py +++ b/tests/test_develop.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause ''' Simple tests for testing functions in develop module - lower level than going through API. ''' diff --git a/tests/test_environ.py b/tests/test_environ.py index 6076efa6f1..fed4cf0a17 100644 --- a/tests/test_environ.py +++ b/tests/test_environ.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os from conda_build import environ diff --git a/tests/test_index.py b/tests/test_index.py index 3f7437478e..2bff212cc0 100644 --- a/tests/test_index.py +++ b/tests/test_index.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import json from logging import getLogger import os diff --git a/tests/test_inspect.py b/tests/test_inspect.py index d8c61edfd0..d2c4d812fd 100644 --- a/tests/test_inspect.py +++ b/tests/test_inspect.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import re import sys diff --git a/tests/test_jinja_context.py b/tests/test_jinja_context.py index 9d2d8f4af9..a6e6eedefa 100644 --- a/tests/test_jinja_context.py +++ b/tests/test_jinja_context.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import pytest from conda_build import jinja_context diff --git a/tests/test_license_family.py b/tests/test_license_family.py index 7537fc82bc..775e5898a8 100644 --- a/tests/test_license_family.py +++ b/tests/test_license_family.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from conda_build.license_family import guess_license_family, allowed_license_families, ensure_valid_license_family import pytest diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 00a0bb74d7..2bf9b0c045 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import subprocess diff --git a/tests/test_misc.py b/tests/test_misc.py index 4a95758916..fc9a415243 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import json from os.path import join diff --git a/tests/test_os_utils_external.py b/tests/test_os_utils_external.py index 488e1ece10..caf8fd49bd 100644 --- a/tests/test_os_utils_external.py +++ b/tests/test_os_utils_external.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import sys import os import os.path diff --git a/tests/test_patch.py b/tests/test_patch.py index a330265011..6ca2702f24 100644 --- a/tests/test_patch.py +++ b/tests/test_patch.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os from textwrap import dedent from types import SimpleNamespace diff --git a/tests/test_post.py b/tests/test_post.py index f7d47ac97d..a008c6656a 100644 --- a/tests/test_post.py +++ b/tests/test_post.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import shutil import sys diff --git a/tests/test_published_examples.py b/tests/test_published_examples.py index 2a8d7c3918..2d76a08e6c 100644 --- a/tests/test_published_examples.py +++ b/tests/test_published_examples.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import pytest diff --git a/tests/test_pypi_skeleton.py b/tests/test_pypi_skeleton.py index 0cb2046099..d86a81dbeb 100644 --- a/tests/test_pypi_skeleton.py +++ b/tests/test_pypi_skeleton.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from collections import OrderedDict from conda_build.skeletons import pypi diff --git a/tests/test_render.py b/tests/test_render.py index 31e13c7445..140d75001f 100644 --- a/tests/test_render.py +++ b/tests/test_render.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os from conda_build import api diff --git a/tests/test_source.py b/tests/test_source.py index 9e8db6f4aa..6776a3815d 100644 --- a/tests/test_source.py +++ b/tests/test_source.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import os import subprocess import tarfile diff --git a/tests/test_subpackages.py b/tests/test_subpackages.py index 84749a14d1..e2b0b59855 100644 --- a/tests/test_subpackages.py +++ b/tests/test_subpackages.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from glob import glob import json import os diff --git a/tests/test_utils.py b/tests/test_utils.py index dfced0aa56..5aa6469b72 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import contextlib import filelock import os diff --git a/tests/test_variants.py b/tests/test_variants.py index db1430ba88..e8ace350a7 100644 --- a/tests/test_variants.py +++ b/tests/test_variants.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause from collections import OrderedDict import os import json diff --git a/tests/utils.py b/tests/utils.py index fd92218344..d9f9a04780 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,3 +1,5 @@ +# Copyright (C) 2014 Anaconda, Inc +# SPDX-License-Identifier: BSD-3-Clause import contextlib import os import sys