Skip to content

Commit d417934

Browse files
committed
feat: adapt uv workspaces
1 parent f0b99a6 commit d417934

File tree

297 files changed

+3124
-577
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

297 files changed

+3124
-577
lines changed

Makefile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# (C) 2021 GoodData Corporation
22
# list all full paths to files and directories in CWD containing "gooddata", filter out ones ending by "client"
3-
NO_CLIENT_GD_PROJECTS_ABS = $(filter-out %client, $(wildcard $(CURDIR)/*gooddata*))
3+
NO_CLIENT_GD_PROJECTS_ABS = $(filter-out %client, $(wildcard $(CURDIR)/packages/*gooddata*))
44
# for each path, take only the base name of the path
55
NO_CLIENT_GD_PROJECTS_DIRS = $(foreach dir, $(NO_CLIENT_GD_PROJECTS_ABS), $(notdir $(dir)))
66
# TODO: replace API_VERSION in the future by call to API
@@ -18,10 +18,9 @@ all:
1818

1919
.PHONY: dev
2020
dev:
21-
rm -rf .venv
22-
python3.13 -m venv .venv --upgrade-deps
23-
.venv/bin/pip3 install -r dev-requirements.txt
21+
uv sync --all-groups
2422
.venv/bin/pre-commit install
23+
source .venv/bin/activate
2524

2625
.PHONY: lint
2726
lint:
@@ -72,13 +71,13 @@ download:
7271
.PHONY: mypy
7372
mypy:
7473
RESULT=0; \
75-
for project in $(NO_CLIENT_GD_PROJECTS_DIRS); do $(MAKE) -C $${project} $@ || RESULT=$$?; done; \
74+
for project in $(NO_CLIENT_GD_PROJECTS_DIRS); do $(MAKE) -C packages/$${project} $@ || RESULT=$$?; done; \
7675
exit $$RESULT
7776

7877
.PHONY: test
7978
test:
8079
RESULT=0; \
81-
for project in $(NO_CLIENT_GD_PROJECTS_DIRS); do $(MAKE) -C $${project} test || RESULT=$$?; done; \
80+
for project in $(NO_CLIENT_GD_PROJECTS_DIRS); do $(MAKE) -C packages/$${project} test || RESULT=$$?; done; \
8281
exit $$RESULT
8382

8483
.PHONY: release
@@ -104,7 +103,7 @@ docs:
104103
.PHONY: remove-cassettes
105104
remove-cassettes:
106105
RESULT=0; \
107-
for project in $(NO_CLIENT_GD_PROJECTS_DIRS); do $(MAKE) -C $${project} $@ || RESULT=$$?; done; \
106+
for project in $(NO_CLIENT_GD_PROJECTS_DIRS); do $(MAKE) -C packages/$${project} $@ || RESULT=$$?; done; \
108107
exit $$RESULT
109108

110109
.PHONY: new-docs

dev-requirements.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

fmt-requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/gooddata-dbt/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../OSS LICENSES/LICENSE (gooddata-dbt).txt
1+
../../OSS LICENSES/LICENSE (gooddata-dbt).txt

packages/gooddata-dbt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# (C) 2023 GoodData Corporation
2-
include ../project_common.mk
2+
include ../../project_common.mk
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# (C) 2025 GoodData Corporation
2+
[project]
3+
name = "gooddata-dbt"
4+
version = "1.45.0"
5+
description = "dbt plugin for GoodData"
6+
readme = "README.md"
7+
license = {text = "MIT"}
8+
authors = [
9+
{name = "GoodData", email = "[email protected]"}
10+
]
11+
requires-python = ">=3.9.0"
12+
dependencies = [
13+
"gooddata-sdk~=1.45.0",
14+
"pyyaml>=6.0",
15+
"attrs>=21.4.0,<=24.2.0",
16+
"cattrs>=22.1.0,<=24.1.1",
17+
"requests~=2.32.0",
18+
"tabulate~=0.8.10",
19+
]
20+
classifiers = [
21+
"Development Status :: 4 - Beta",
22+
"Environment :: Console",
23+
"License :: OSI Approved :: MIT License",
24+
"Programming Language :: Python :: 3.9",
25+
"Programming Language :: Python :: 3.10",
26+
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
28+
"Programming Language :: Python :: 3.13",
29+
"Topic :: Database",
30+
"Topic :: Scientific/Engineering",
31+
"Topic :: Software Development",
32+
"Typing :: Typed",
33+
]
34+
35+
[project.scripts]
36+
gooddata-dbt = "gooddata_dbt.main:main"
37+
38+
[dependency-groups]
39+
test = [
40+
"pytest~=8.3.4",
41+
"pytest-cov~=6.0.0",
42+
]
43+
type = [
44+
"mypy~=1.11.2",
45+
"pydantic~=2.9.2"
46+
]
47+
48+
[tool.hatch.build.targets.wheel]
49+
packages = ["src/gooddata_dbt"]
50+
51+
[build-system]
52+
requires = ["hatchling"]
53+
build-backend = "hatchling.build"

packages/gooddata-dbt/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/gooddata-dbt/setup.py

Lines changed: 0 additions & 51 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)