bitter-ability-32190
11/16/2022, 7:34 PMFile "pydantic/dataclasses.py", line 52, in init pydantic.dataclasses
ImportError: cannot import name dataclass_transform
bitter-ability-32190
11/16/2022, 8:11 PMpex3 lock export
what's the order of the packages? Would it possible to sort into alphabetical order for easier diffing?bitter-ability-32190
11/16/2022, 8:12 PMlocked_requirements
in the JSON seems ordered, which is greatcurved-television-6568
11/16/2022, 8:51 PMcurved-television-6568
11/16/2022, 8:52 PMbitter-ability-32190
11/16/2022, 9:01 PMcurved-television-6568
11/16/2022, 9:27 PMcareful-address-89803
11/17/2022, 4:19 AMFlake8LockfileSentinel
). Problem is, that class now exists only at runtime. Is there a simple way to go from the tool (class Flake8(PythonToolBase):
) to whatever the concrete class of the UnionRule is ( whatever was used as the 2nd argument in`UnionRule(GenerateToolLockfileSentinel, Flake8LockfileSentinel)`) ? I could fish it out of the generated rules, but that doesn't seem like something Pants wants anyone to do.wide-midnight-78598
11/17/2022, 2:50 PMāŗ oss/pants-pyright % ./pants --changed-since=origin/main fmt ā 17557-npx-dep-version*
ā 107.83s Fetching with coursier: org.scala-lang:scala-reflect:2.13.7
ā ¤ 107.73s Fetching with coursier: org.jline:jline:3.20.0
ā ¤ 107.73s Fetching with coursier: org.scalameta:scalafmt-interfaces:3.2.1
ā ¤ 107.73s Fetching with coursier: org.scala-lang.modules:scala-parallel-collections_2.13:1.0.4
ā ¤ 107.73s Fetching with coursier: org.scala-lang:scala-compiler:2.13.7
That went up to 3000 seconds before I cancelled it yesterday, and I'm formatting 3 python files in the nodejs backendbitter-ability-32190
11/17/2022, 3:10 PMancient-vegetable-10556
11/17/2022, 3:59 PMbitter-ability-32190
11/17/2022, 4:00 PM# NB: Mark this as an explicit namespace packages
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Fixes my tests, naturally. But wanted to see if that was verbotenancient-vegetable-10556
11/17/2022, 4:01 PM__init__.py
, which makes it an implicit namespace package. As I recall, marking it explicitly did not fix the thing I was poking around with, so we decided not to change.
PyOx is no longer a priority, since SCIE looks like a much better fit, so if youāve found a good use case for explicit namespace packaging, then that sounds great. @happy-kitchen-89482 was the one working with me on trying to get to the bottom of that.ancient-vegetable-10556
11/17/2022, 4:02 PMwitty-crayon-22786
11/17/2022, 4:21 PMbitter-ability-32190
11/17/2022, 4:22 PMwitty-crayon-22786
11/17/2022, 4:23 PMbitter-ability-32190
11/17/2022, 4:28 PMtouch
an __init__.py
file in the source treewitty-crayon-22786
11/17/2022, 4:29 PMwitty-crayon-22786
11/17/2022, 4:29 PMwitty-crayon-22786
11/17/2022, 4:29 PMbitter-ability-32190
11/17/2022, 4:29 PMwitty-crayon-22786
11/17/2022, 4:30 PMbitter-ability-32190
11/17/2022, 4:31 PMwitty-crayon-22786
11/17/2022, 4:31 PMbitter-ability-32190
11/17/2022, 4:32 PMbitter-ability-32190
11/17/2022, 4:32 PMbitter-ability-32190
11/17/2022, 4:44 PMbitter-ability-32190
11/17/2022, 5:00 PMwide-midnight-78598
11/17/2022, 7:54 PMclass CowsayTool(NpxToolBase):
options_scope = "cowsay"
name = "Cowsay"
# Intentionally older version.
default_version = "cowsay@1.4.0"
help = "The Cowsay utility for printing cowsay messages"
I want to ensure that the version option is present, but the create_subsystem
utility doesn't seem to do any checking to see if fields exist or not: cowsaytool = create_subsystem(CowsayTool, versionXYZ="cowsay@1.5.0")
My hope was to do something like this: rule_runner.set_options(["--backend-packages=['pants.backend.experimental.javascript']", "--cowsay-version='cowsay@1.5.0'"])
and then somehow get the subsystem and verify that the version was picked up correctly.
Would I only be able to do this via the run_pants
mechanism (which seems heavy for what I want)