Skip to content

Commit

Permalink
chore: Add SPDX license tags to vendored code
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpelsepp committed Jan 4, 2024
1 parent 44cd5fd commit 0f2dfbb
Show file tree
Hide file tree
Showing 66 changed files with 285 additions and 0 deletions.
9 changes: 9 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) <year> <copyright holders>

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.
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/.github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

name: Linting

on:
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/.github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

name: Tests

on:
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/.github/workflows/typing.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

name: Typing

on:
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

# IDE settings / virtual environment
.venv/
.vscode/
Expand Down
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

<div align="center">
<a href="https://pydantic-argparse.supimdos.com">
<img src="https://raw.githubusercontent.com/SupImDos/pydantic-argparse/master/docs/assets/images/logo.svg" width="50%">
Expand Down
3 changes: 3 additions & 0 deletions vendor/pydantic-argparse/docs/CNAME.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Hayden Richards

SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions vendor/pydantic-argparse/docs/assets/images/logo.svg.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Hayden Richards

SPDX-License-Identifier: MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Hayden Richards

SPDX-License-Identifier: MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Hayden Richards

SPDX-License-Identifier: MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Hayden Richards

SPDX-License-Identifier: MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Hayden Richards

SPDX-License-Identifier: MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Hayden Richards

SPDX-License-Identifier: MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Hayden Richards

SPDX-License-Identifier: MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Hayden Richards

SPDX-License-Identifier: MIT
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/docs/background.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

## Overview
Before delving into the documentation, examples and code reference, it is first
necessary to explore and understand why you may want to use this package.
Expand Down
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/docs/examples/commands.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

### Define Model
```python title="commands.py"
--8<-- "examples/commands.py"
Expand Down
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/docs/examples/simple.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

### Define Model
```python title="simple.py"
--8<-- "examples/simple.py"
Expand Down
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

<div align="center">
<a href="https://pydantic-argparse.supimdos.com">
<img src="assets/images/logo.svg" width="50%">
Expand Down
3 changes: 3 additions & 0 deletions vendor/pydantic-argparse/docs/reference/reference.py.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Hayden Richards

SPDX-License-Identifier: MIT
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/docs/showcase.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

## Feature Showcase
This showcase demonstrates how `pydantic-argparse` can be useful, by
highlighting some of its features and showing how they can be utilised.
Expand Down
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/docs/usage/argument_parser.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

## Overview
The interface for `pydantic-argparse` is the custom typed
[`ArgumentParser`][pydantic_argparse.argparse.parser.ArgumentParser] class,
Expand Down
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/docs/usage/arguments/choices.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

## Overview
`pydantic-argparse` provides functionality for choice arguments. A choice is a
command-line argument that allows a restricted set of values. For example:
Expand Down
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/docs/usage/arguments/commands.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

## Overview
`pydantic-argparse` provides functionality for commands. A command is a
positional command-line argument that can be followed by its own specific
Expand Down
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/docs/usage/arguments/flags.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

## Overview
`pydantic-argparse` provides functionality for flag arguments. A flag is a
command-line argument that has no following value. For example: `--flag` or
Expand Down
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/docs/usage/arguments/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

## Overview
At the core of `pydantic-argparse` is the `pydantic` *model*, in which
arguments are declared with `pydantic` *fields*. This combination of the
Expand Down
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/docs/usage/arguments/regular.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

## Overview
`pydantic-argparse` provides functionality for regular arguments. A regular
argument is a command-line argument that is followed by *exactly* one value.
Expand Down
6 changes: 6 additions & 0 deletions vendor/pydantic-argparse/docs/usage/arguments/variadic.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: Hayden Richards
SPDX-License-Identifier: MIT
-->

## Overview
`pydantic-argparse` provides functionality for variadic arguments. A variadic
argument is a command-line argument that is followed by one *or more* values.
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/examples/commands.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Commands Example."""


Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/examples/simple.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Simple Example."""


Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

# Site
site_name: Pydantic Argparse
site_description: Typed Argument Parsing with Pydantic
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Declarative Typed Argument Parsing with Pydantic Models.
This is the `pydantic-argparse` package, which contains the classes, methods
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/__metadata__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Single-Source of Truth Package Versioning and Metadata.
The `pydantic-argparse` package uses the `pyproject.toml` file as a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Declarative and Typed Argument Parsing.
This package contains the classes and methods required for declarative and
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Recursively Nesting Sub-Parsers Action for Typed Argument Parsing.
The `actions` module contains the `SubParsersAction` class, which is an action
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/argparse/parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Declarative and Typed Argument Parser.
The `parser` module contains the `ArgumentParser` class, which provides a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Monkey patches for ArgumentParser.
In order to support Python 3.7 and 3.8 while retaining the unit tests, we need
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Parses Pydantic Fields to Command-Line Arguments.
This package contains the functions required for parsing `pydantic` model
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/parsers/boolean.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Parses Boolean Pydantic Fields to Command-Line Arguments.
The `boolean` module contains the `should_parse` function, which checks whether
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/parsers/command.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Parses Nested Pydantic Model Fields to Sub-Commands.
The `command` module contains the `should_parse` function, which checks whether
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Parses Container Pydantic Fields to Command-Line Arguments.
The `container` module contains the `should_parse` function, which checks
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/parsers/enum.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Parses Enum Pydantic Fields to Command-Line Arguments.
The `enum` module contains the `should_parse` function, which checks whether
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/parsers/literal.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Parses Literal Pydantic Fields to Command-Line Arguments.
The `literal` module contains the `should_parse` function, which checks whether
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/parsers/mapping.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Parses Mapping Pydantic Fields to Command-Line Arguments.
The `mapping` module contains the `should_parse` function, which checks whether
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Parses Standard Pydantic Fields to Command-Line Arguments.
The `standard` module contains the `parse_field` function, which parses
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/parsers/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Argument parser utilities."""

from argparse import Action, FileType
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Utilities for Declarative Typed Argument Parsing.
This package contains helper utility functions for the typed argument parsing
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/utils/errors.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Errors Utility Functions for Declarative Typed Argument Parsing.
The `errors` module contains a utility function used for formatting `pydantic`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Namespaces Utility Functions for Declarative Typed Argument Parsing.
The `namespaces` module contains a utility function used for recursively
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/utils/nesting.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Utilities to help with parsing arbitrarily nested `pydantic` models."""

from argparse import Namespace
Expand Down
4 changes: 4 additions & 0 deletions vendor/pydantic-argparse/pydantic_argparse/utils/pydantic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: Hayden Richards
#
# SPDX-License-Identifier: MIT

"""Pydantic Utility Functions for Declarative Typed Argument Parsing.

The `pydantic` module contains utility functions used for interacting with the
Expand Down
Loading

0 comments on commit 0f2dfbb

Please sign in to comment.