From 1380e02f0559e981e77eb399fb63de293e2f6a18 Mon Sep 17 00:00:00 2001 From: Chris Arderne Date: Tue, 27 Aug 2024 13:35:04 +0100 Subject: [PATCH] una as subdir --- pyproject.toml | 49 +-------------------------- una/pyproject.toml | 60 ++++++++++++++++++++++++++++++++++ una/{ => una}/__init__.py | 0 una/{ => una}/__main__.py | 0 una/{ => una}/check.py | 0 una/{ => una}/cli.py | 0 una/{ => una}/config.py | 0 una/{ => una}/consts.py | 0 una/{ => una}/distributions.py | 0 una/{ => una}/files.py | 0 una/{ => una}/package_deps.py | 0 una/{ => una}/parse.py | 0 una/{ => una}/py.typed | 0 una/{ => una}/stdlib.py | 0 una/{ => una}/sync.py | 0 una/{ => una}/types.py | 0 16 files changed, 61 insertions(+), 48 deletions(-) create mode 100644 una/pyproject.toml rename una/{ => una}/__init__.py (100%) rename una/{ => una}/__main__.py (100%) rename una/{ => una}/check.py (100%) rename una/{ => una}/cli.py (100%) rename una/{ => una}/config.py (100%) rename una/{ => una}/consts.py (100%) rename una/{ => una}/distributions.py (100%) rename una/{ => una}/files.py (100%) rename una/{ => una}/package_deps.py (100%) rename una/{ => una}/parse.py (100%) rename una/{ => una}/py.typed (100%) rename una/{ => una}/stdlib.py (100%) rename una/{ => una}/sync.py (100%) rename una/{ => una}/types.py (100%) diff --git a/pyproject.toml b/pyproject.toml index 3059b32..c713142 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,40 +1,3 @@ -[project] -name = "una" -dynamic = ["version"] -description = "Python monorepo tooling" -authors = [ - { name = "Chris Arderne", email = "chris@rdrn.me" } -] -readme = "README.md" -license = {text = "MIT License"} -requires-python = ">= 3.11" -keywords = ["uv", "monorepo", "build", "python"] - -classifiers = [ - "Environment :: Console", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Operating System :: Unix", - "Programming Language :: Python", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", -] - -dependencies = [ - "dataclasses-json ~= 0.6", - "rich ~= 13.1", - "tomlkit ~= 0.10", - "typer ~= 0.8", -] - -[project.urls] -homepage = "https://github.com/carderne/una" -repository = "https://github.com/carderne/una" - -[project.scripts] -una = "una.cli:app" - [tool.uv] dev-dependencies = [ "pytest >= 8.3.1", @@ -44,17 +7,7 @@ dev-dependencies = [ ] [tool.uv.workspace] -members = ["plugins/*"] - -[build-system] -requires = ["hatchling", "hatch-vcs"] -build-backend = "hatchling.build" - -[tool.hatch.build.targets.wheel] -packages = ["una"] - -[tool.hatch.version] -source = "vcs" +members = ["una", "plugins/*"] [tool.ruff] target-version = "py311" diff --git a/una/pyproject.toml b/una/pyproject.toml new file mode 100644 index 0000000..21b6721 --- /dev/null +++ b/una/pyproject.toml @@ -0,0 +1,60 @@ +[project] +name = "una" +dynamic = ["version"] +description = "Python monorepo tooling" +authors = [ + { name = "Chris Arderne", email = "chris@rdrn.me" } +] +readme = "README.md" +license = {text = "MIT License"} +requires-python = ">= 3.11" +keywords = ["uv", "monorepo", "build", "python"] + +classifiers = [ + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: Unix", + "Programming Language :: Python", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] + +dependencies = [ + "dataclasses-json ~= 0.6", + "rich ~= 13.1", + "tomlkit ~= 0.10", + "typer ~= 0.8", +] + +[project.urls] +homepage = "https://github.com/carderne/una" +repository = "https://github.com/carderne/una" + +[project.scripts] +una = "una.cli:app" + +[tool.uv] +dev-dependencies = [] + +[build-system] +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel] +packages = ["una"] + +[tool.hatch.version] +source = "vcs" + +[tool.basedpyright] +venvPath = ".." +venv = ".venv" +pythonVersion = "3.11" +strict = ["**/*.py"] +extraPaths = ["plugins/hatch"] +reportUnnecessaryTypeIgnoreComment = true +reportImplicitOverride = false +reportUnusedCallResult = false +enableTypeIgnoreComments = true diff --git a/una/__init__.py b/una/una/__init__.py similarity index 100% rename from una/__init__.py rename to una/una/__init__.py diff --git a/una/__main__.py b/una/una/__main__.py similarity index 100% rename from una/__main__.py rename to una/una/__main__.py diff --git a/una/check.py b/una/una/check.py similarity index 100% rename from una/check.py rename to una/una/check.py diff --git a/una/cli.py b/una/una/cli.py similarity index 100% rename from una/cli.py rename to una/una/cli.py diff --git a/una/config.py b/una/una/config.py similarity index 100% rename from una/config.py rename to una/una/config.py diff --git a/una/consts.py b/una/una/consts.py similarity index 100% rename from una/consts.py rename to una/una/consts.py diff --git a/una/distributions.py b/una/una/distributions.py similarity index 100% rename from una/distributions.py rename to una/una/distributions.py diff --git a/una/files.py b/una/una/files.py similarity index 100% rename from una/files.py rename to una/una/files.py diff --git a/una/package_deps.py b/una/una/package_deps.py similarity index 100% rename from una/package_deps.py rename to una/una/package_deps.py diff --git a/una/parse.py b/una/una/parse.py similarity index 100% rename from una/parse.py rename to una/una/parse.py diff --git a/una/py.typed b/una/una/py.typed similarity index 100% rename from una/py.typed rename to una/una/py.typed diff --git a/una/stdlib.py b/una/una/stdlib.py similarity index 100% rename from una/stdlib.py rename to una/una/stdlib.py diff --git a/una/sync.py b/una/una/sync.py similarity index 100% rename from una/sync.py rename to una/una/sync.py diff --git a/una/types.py b/una/una/types.py similarity index 100% rename from una/types.py rename to una/una/types.py