diff options
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | LICENSE | 9 | ||||
| -rw-r--r-- | README.md | 12 | ||||
| -rw-r--r-- | THIRD_PARTY_LICENSES.txt | 112 | ||||
| -rw-r--r-- | pyproject.toml | 14 | ||||
| -rw-r--r-- | requirements.txt | 10 |
6 files changed, 145 insertions, 15 deletions
@@ -174,4 +174,5 @@ data/ # other .ruff_cache *.lock -*.err
\ No newline at end of file +*.err +.agents/
\ No newline at end of file @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright © 2026 <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.
\ No newline at end of file @@ -28,11 +28,11 @@ uv venv .venv uv pip install -e ".[dev]" -p .venv ``` -`requirements.txt` から本番依存だけを入れる場合: +本番依存だけを入れる場合: ```bash uv venv .venv -uv pip install -r requirements.txt -p .venv +uv pip install -e . -p .venv ``` ## Usage @@ -98,4 +98,10 @@ mypy src/ ## License -MIT +SPDX-License-Identifier: MIT + +This project is licensed under the MIT License. +See [LICENSE](LICENSE) for the full text. + +Third-party libraries bundled with or depended upon by this project are listed in +[THIRD_PARTY_LICENSES.txt](THIRD_PARTY_LICENSES.txt). diff --git a/THIRD_PARTY_LICENSES.txt b/THIRD_PARTY_LICENSES.txt new file mode 100644 index 0000000..2270512 --- /dev/null +++ b/THIRD_PARTY_LICENSES.txt @@ -0,0 +1,112 @@ +Third-Party Licenses for ollama-web +===================================== + +This file lists the open-source licenses that apply to third-party software +bundled with or depended upon by ollama-web. Unless otherwise noted, the +copyright holders are the respective authors of each project. + +For the full license text of each dependency, please see the package's own +source distribution or official repository. This summary is provided for +attribution and compliance purposes only. + +------------------------------------------------------------------------------ +1. Bundled Frontend Libraries (src/ollama_web/static/vendor/) +------------------------------------------------------------------------------ + +marked + Version: 12.0.0 + License: MIT + Source: https://github.com/markedjs/marked + +DOMPurify + Version: 3.1.6 + License: Apache-2.0 OR MPL-2.0 + Source: https://github.com/cure53/DOMPurify + +highlight.js + Version: 11.9.0 + License: BSD-3-Clause + Source: https://github.com/highlightjs/highlight.js + +KaTeX + Version: 0.16.9 + License: MIT + Source: https://github.com/KaTeX/KaTeX + +GitHub Dark theme for highlight.js + Source: https://github.com/highlightjs/highlight.js/blob/main/src/styles/github-dark.css + License: BSD-3-Clause (highlight.js project) + +------------------------------------------------------------------------------ +2. Direct Python Dependencies +------------------------------------------------------------------------------ + +ollama + License: MIT + Source: https://github.com/ollama/ollama-python + +ddgs + License: MIT + Source: https://github.com/deedy5/ddgs + +Starlette + License: BSD-3-Clause + Source: https://github.com/Kludex/starlette + +Uvicorn + License: BSD-3-Clause + Source: https://github.com/encode/uvicorn + +httpx + License: BSD-3-Clause + Source: https://github.com/encode/httpx + +beautifulsoup4 + License: MIT + Source: https://www.crummy.com/software/BeautifulSoup/bs4/ + +Jinja2 + License: BSD-3-Clause + Source: https://github.com/pallets/jinja + +pypdf + License: BSD-3-Clause + Source: https://github.com/py-pdf/pypdf + +python-multipart + License: Apache-2.0 + Source: https://github.com/Kludex/python-multipart + +Pillow + License: MIT-CMU License / HPND-style historical PIL license + Source: https://github.com/python-pillow/Pillow + +------------------------------------------------------------------------------ +3. Development Dependencies (not distributed with the application) +------------------------------------------------------------------------------ + +pytest + License: MIT + Source: https://github.com/pytest-dev/pytest + +pytest-cov + License: MIT + Source: https://github.com/pytest-dev/pytest-cov + +ruff + License: MIT + Source: https://github.com/astral-sh/ruff + +mypy + License: MIT + Source: https://github.com/python/mypy + +------------------------------------------------------------------------------ +Notice +------------------------------------------------------------------------------ + +Some packages listed above may pull in additional transitive dependencies. +The licenses of those transitive dependencies are the responsibility of +their respective authors. If you redistribute this project in a way that +bundles third-party packages, please verify the full dependency tree with +a tool such as `pip-licenses` or `cyclonedx-py`.
\ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 5adc2c3..e04ae3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,14 +7,23 @@ name = "ollama-web" version = "0.1.0" description = "Ollama web project" readme = "README.md" +license = "MIT" +license-files = ["LICENSE", "THIRD_PARTY_LICENSES.txt"] requires-python = ">=3.10" +classifiers = [ + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] dependencies = [ "ollama>=0.6.2", "ddgs>=9.14.4", "starlette>=0.37", "uvicorn>=0.30", "httpx>=0.27", - "beautifulsoup4>=0.0.1", + "beautifulsoup4>=4.12", "jinja2>=3.1", "pypdf>=4.0", "python-multipart>=0.0.9", @@ -45,6 +54,9 @@ select = ["E", "F", "I", "UP", "B"] [tool.pytest.ini_options] testpaths = ["tests"] pythonpath = ["src"] +filterwarnings = [ + "ignore:Using `httpx` with `starlette.testclient` is deprecated.*:starlette.exceptions.StarletteDeprecationWarning", +] [tool.mypy] python_version = "3.10" diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 92f4afe..0000000 --- a/requirements.txt +++ /dev/null @@ -1,10 +0,0 @@ -ollama>=0.6.2 -ddgs>=9.14.4 -starlette>=0.37 -uvicorn>=0.30 -httpx>=0.27 -beautifulsoup4>=0.0.1 -jinja2>=3.1 -pypdf>=4.0 -python-multipart>=0.0.9 -Pillow>=10.0 |
