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

refactor: run data scripts without using docker #817

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
4 changes: 2 additions & 2 deletions bin/download_github_releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

# Tell ruff to not delete the unused import by rexporting it using as
# See https://docs.astral.sh/ruff/rules/unused-import/
from ecobalyse import logging_config as logging_config
from ecobalyse.github import get_github
from ecobalyse_lib import logging_config as logging_config
from ecobalyse_lib.github import get_github

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion bin/extract_data_branch_from_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse
import os

from ecobalyse.github import extract_branch_name, get_github
from ecobalyse_lib.github import extract_branch_name, get_github

if __name__ == "__main__":
parser = argparse.ArgumentParser(
Expand Down
2 changes: 1 addition & 1 deletion bin/get_tag_for_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse
import os

from ecobalyse.github import get_github
from ecobalyse_lib.github import get_github

if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Get tag for a specific commit")
Expand Down
4 changes: 2 additions & 2 deletions bin/patch_files_for_versions_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

# Tell ruff to not delete the unused import by rexporting it using as
# See https://docs.astral.sh/ruff/rules/unused-import/
from ecobalyse import logging_config as logging_config
from ecobalyse.patch_files import (
from ecobalyse_lib import logging_config as logging_config
from ecobalyse_lib.patch_files import (
add_entry_to_version_file,
patch_cross_origin_index_html_file,
patch_elm_version_file,
Expand Down
8 changes: 8 additions & 0 deletions packages/python/ecobalyse-lib/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[project]
name = "ecobalyse-lib"
requires-python = ">= 3.11"
version = "2.4.0"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
8 changes: 0 additions & 8 deletions packages/python/ecobalyse/setup.py

This file was deleted.

20 changes: 20 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
[project]
name = "ecobalyse-app"
requires-python = ">= 3.11"
version = "2.4.0"
dependencies = [
"ecobalyse-lib",
"pygithub>=2.4.0",
"requests>=2.32.3",
]

[tool.ruff]
extend-select = ["I"]

[tool.uv]
package = false

[tool.uv.sources]
ecobalyse-lib = { workspace = true }

[tool.uv.workspace]
members = ["packages/python/*"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
265 changes: 265 additions & 0 deletions uv.lock

Large diffs are not rendered by default.

Loading