Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize license disclaimer #4568

Merged
merged 4 commits into from
Sep 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/disclaimer.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright (C) 2014 Anaconda, Inc
SPDX-License-Identifier: BSD-3-Clause
24 changes: 23 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
# disable autofixing PRs, commenting "pre-commit.ci autofix" on a pull request triggers a autofix
ci:
autofix_prs: false
# generally speaking we ignore all vendored code as well as tests data
# ignore patches/diffs since slight reformatting can break them
exclude: ^(tests/(archives|index_data|test-cran-skeleton|test-recipes|test-skeleton|variant_recipe)/|.*\.(patch|diff)|versioneer.py)
exclude: |
(?x)^(
tests/(
archives |
index_data |
test-cran-skeleton |
test-recipes |
test-skeleton |
variant_recipe
)/ |
.*\.(patch|diff) |
versioneer.py |
conda_build/_version.py
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
Expand Down Expand Up @@ -46,3 +62,9 @@ repos:
args: [--exit-zero]
# ignore all tests, not just tests data
exclude: ^tests/
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.0
hooks:
- id: insert-license
files: \.py$
args: [--license-filepath, .github/disclaimer.txt, --no-extra-eol]
2 changes: 2 additions & 0 deletions benchmarks/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
2 changes: 2 additions & 0 deletions benchmarks/time_render.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os

from conda_build import api
Expand Down
2 changes: 2 additions & 0 deletions conda.recipe/run_test.py
Original file line number Diff line number Diff line change
@@ -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__)
2 changes: 2 additions & 0 deletions conda.recipe/test_bdist_conda_setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from setuptools import setup
import conda_build.bdist_conda

Expand Down
8 changes: 2 additions & 6 deletions conda_build/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from . import _version
__version__ = _version.get_versions()['version']

Expand Down
2 changes: 2 additions & 0 deletions conda_build/_link.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 2 additions & 0 deletions conda_build/_load_setup_py_data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os
import sys
import logging
Expand Down
8 changes: 2 additions & 6 deletions conda_build/api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

# 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
Expand Down
2 changes: 2 additions & 0 deletions conda_build/bdist_conda.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""
bdist_conda

Expand Down
2 changes: 2 additions & 0 deletions conda_build/build.py
Original file line number Diff line number Diff line change
@@ -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.
'''
Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
2 changes: 2 additions & 0 deletions conda_build/cli/actions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import argparse


Expand Down
9 changes: 2 additions & 7 deletions conda_build/cli/main_build.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.


# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import argparse
import warnings

Expand Down
8 changes: 2 additions & 6 deletions conda_build/cli/main_convert.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from locale import getpreferredencoding
import logging
from os.path import abspath, expanduser
Expand Down
7 changes: 2 additions & 5 deletions conda_build/cli/main_debug.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import logging
import sys
from argparse import ArgumentParser
Expand Down
9 changes: 2 additions & 7 deletions conda_build/cli/main_develop.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.


# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import logging
import sys

Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/main_index.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import logging
import os
import sys
Expand Down
8 changes: 2 additions & 6 deletions conda_build/cli/main_inspect.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import logging
from os.path import expanduser
from pprint import pprint
Expand Down
9 changes: 2 additions & 7 deletions conda_build/cli/main_metapackage.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.


# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import argparse
import logging
import sys
Expand Down
9 changes: 2 additions & 7 deletions conda_build/cli/main_render.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.


# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import argparse
import logging
import sys
Expand Down
9 changes: 2 additions & 7 deletions conda_build/cli/main_skeleton.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.


# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import importlib
import logging
import os
Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/validators.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from __future__ import annotations

import os
Expand Down
2 changes: 2 additions & 0 deletions conda_build/conda_interface.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions conda_build/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
'''
Module to store conda build settings.
'''
Expand Down
2 changes: 2 additions & 0 deletions conda_build/convert.py
Original file line number Diff line number Diff line change
@@ -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
#
Expand Down
2 changes: 2 additions & 0 deletions conda_build/create_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
'''
Module to handle generating test files.
'''
Expand Down
9 changes: 2 additions & 7 deletions conda_build/develop.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.


# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from os.path import join, isdir, abspath, expanduser, exists
import shutil
import sys
Expand Down
2 changes: 2 additions & 0 deletions conda_build/environ.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import contextlib
import json
import logging
Expand Down
2 changes: 2 additions & 0 deletions conda_build/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import textwrap
SEPARATOR = "-" * 70

Expand Down
2 changes: 2 additions & 0 deletions conda_build/features.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os
import sys

Expand Down
2 changes: 2 additions & 0 deletions conda_build/index.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2018 Anaconda, Inc
# SPDX-License-Identifier: Proprietary

Expand Down
9 changes: 2 additions & 7 deletions conda_build/inspect_pkg.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.


# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from collections import defaultdict
from itertools import groupby
import json
Expand Down
2 changes: 2 additions & 0 deletions conda_build/jinja_context.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions conda_build/license_family.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import re
import string
from conda_build import exceptions
Expand Down
2 changes: 2 additions & 0 deletions conda_build/metadata.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from collections import OrderedDict
import contextlib
import copy
Expand Down
2 changes: 2 additions & 0 deletions conda_build/metapackage.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions conda_build/noarch_python.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import json
import locale
import logging
Expand Down
2 changes: 2 additions & 0 deletions conda_build/os_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
2 changes: 2 additions & 0 deletions conda_build/os_utils/elf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import sys
from os.path import islink, isfile

Expand Down
2 changes: 2 additions & 0 deletions conda_build/os_utils/external.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os
import stat
import sys
Expand Down
2 changes: 2 additions & 0 deletions conda_build/os_utils/ldd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import sys
import re
import subprocess
Expand Down
2 changes: 2 additions & 0 deletions conda_build/os_utils/liefldd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
try:
from collections.abc import Hashable
except ImportError:
Expand Down
2 changes: 2 additions & 0 deletions conda_build/os_utils/macho.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import re
import stat
import sys
Expand Down
2 changes: 2 additions & 0 deletions conda_build/os_utils/pyldd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import argparse
import glob
import os
Expand Down
2 changes: 2 additions & 0 deletions conda_build/post.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 2 additions & 7 deletions conda_build/render.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.


# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from collections import OrderedDict, defaultdict
from locale import getpreferredencoding
import json
Expand Down
2 changes: 2 additions & 0 deletions conda_build/skeletons/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
2 changes: 2 additions & 0 deletions conda_build/skeletons/_example_skeleton.py
Original file line number Diff line number Diff line change
@@ -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."""
Expand Down
Loading