Skip to content

Commit bbe1d97

Browse files
committed
Add env config in WM. Remove unused poetry locks. Fix pip command in install_deps_in_env handler. Finish prepare_runners and prepare_envs actions. Add runner config in ER. Improve logs.
1 parent d15a76e commit bbe1d97

42 files changed

Lines changed: 733 additions & 2699 deletions

Some content is hidden

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

extensions/fine_python_ast/fine_python_ast/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from .iast_provider import IPythonSingleAstProvider
21
from .ast_provider import PythonSingleAstProvider
2+
from .iast_provider import IPythonSingleAstProvider
33

44
__all__ = [
55
"IPythonSingleAstProvider",

extensions/fine_python_ast/poetry.lock

Lines changed: 0 additions & 195 deletions
This file was deleted.
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
[project]
22
name = "fine-python-ast"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = ""
55
authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">=3.11, < 3.14"
8-
dependencies = ["finecode_extension_api==0.1.0"]
9-
10-
11-
[build-system]
12-
requires = ["poetry-core>=2.0.0,<3.0.0"]
13-
build-backend = "poetry.core.masonry.api"
8+
dependencies = ["finecode_extension_api==0.1.3"]
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
from setuptools import setup
2+
from setuptools.command.build import build
3+
from setuptools.command.build_ext import build_ext
4+
from setuptools.command.build_py import build_py
5+
from setuptools.command.egg_info import egg_info
6+
import tempfile
7+
import atexit
8+
import shutil
9+
import sys
10+
11+
# Create a single temp directory for all build operations
12+
_TEMP_BUILD_DIR = None
13+
14+
def get_temp_build_dir(pkg_name):
15+
global _TEMP_BUILD_DIR
16+
if _TEMP_BUILD_DIR is None:
17+
_TEMP_BUILD_DIR = tempfile.mkdtemp(prefix=f'{pkg_name}_build_')
18+
atexit.register(lambda: shutil.rmtree(_TEMP_BUILD_DIR, ignore_errors=True))
19+
return _TEMP_BUILD_DIR
20+
21+
class TempDirBuildMixin:
22+
def initialize_options(self):
23+
super().initialize_options()
24+
temp_dir = get_temp_build_dir(self.distribution.get_name())
25+
self.build_base = temp_dir
26+
27+
class TempDirEggInfoMixin:
28+
def initialize_options(self):
29+
super().initialize_options()
30+
temp_dir = get_temp_build_dir(self.distribution.get_name())
31+
self.egg_base = temp_dir
32+
33+
class CustomBuild(TempDirBuildMixin, build):
34+
pass
35+
36+
class CustomBuildPy(TempDirBuildMixin, build_py):
37+
pass
38+
39+
class CustomBuildExt(TempDirBuildMixin, build_ext):
40+
pass
41+
42+
class CustomEggInfo(TempDirEggInfoMixin, egg_info):
43+
def initialize_options(self):
44+
# Don't use temp dir for editable installs
45+
if '--editable' in sys.argv or '-e' in sys.argv:
46+
egg_info.initialize_options(self)
47+
else:
48+
super().initialize_options()
49+
50+
setup(
51+
name="fine_python_ast",
52+
cmdclass={
53+
'build': CustomBuild,
54+
'build_py': CustomBuildPy,
55+
'build_ext': CustomBuildExt,
56+
'egg_info': CustomEggInfo,
57+
}
58+
)

extensions/fine_python_flake8/poetry.lock

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

extensions/fine_python_flake8/pyproject.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@ authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">=3.11, < 3.14"
88
dependencies = [
9-
"finecode_extension_api==0.1.0",
10-
"fine_python_ast==0.1.0",
9+
"finecode_extension_api==0.1.*",
10+
"fine_python_ast==0.1.*",
1111
"types-flake8 (>=7.1.0.20241020,<8.0.0.0)",
1212
"flake8 (>=7.1.2,<8.0.0)",
1313
]
14-
15-
16-
[build-system]
17-
requires = ["poetry-core>=2.0.0,<3.0.0"]
18-
build-backend = "poetry.core.masonry.api"

extensions/fine_python_isort/poetry.lock

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

extensions/fine_python_isort/pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,4 @@ description = ""
55
authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">= 3.11, < 3.14"
8-
dependencies = ["finecode_extension_api==0.1.0", "isort (>=5.13, <6)"]
9-
10-
11-
[build-system]
12-
requires = ["poetry-core>=2.0.0,<3.0.0"]
13-
build-backend = "poetry.core.masonry.api"
8+
dependencies = ["finecode_extension_api==0.1.*", "isort (>=5.13, <6)"]

extensions/fine_python_module_exports/poetry.lock

Lines changed: 0 additions & 210 deletions
This file was deleted.
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
[project]
22
name = "fine-python-module-exports"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = ""
55
authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">= 3.11, < 3.14"
8-
dependencies = ["finecode_extension_api==0.1.0", "fine_python_ast==0.1.0"]
9-
10-
11-
[build-system]
12-
requires = ["poetry-core>=2.0.0,<3.0.0"]
13-
build-backend = "poetry.core.masonry.api"
8+
dependencies = ["finecode_extension_api==0.1.3", "fine_python_ast==0.1.1"]

0 commit comments

Comments
 (0)