Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
ats-tool: [ats, ats3, atsflux, atsformat, atslite1, atslite3]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.13"]

steps:
- uses: actions/checkout@v3
Expand Down
7 changes: 4 additions & 3 deletions ats/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,13 @@ def get_machine_entry_points(machine_class):
log("Machine Factory: looping over available machine plugins:",
echo=False)
if sys.version_info >= (3, 12):
ats_machines = entry_points().select(group='ats.machines', value=machine_class)
ats_machines = entry_points().select(group='ats.machines')
log(f"Machine Factory: found machine plugins: {ats_machines}",
echo=False)
for machine_factory in ats_machines:
log(f"Machine Factory: Found machine {machine_factory.name} of class {machine_factory.value}: {machine_factory}")
return machine_factory.load()(machine_class, -1)
if machine_class in machine_factory.value:
log(f"Machine Factory: Found machine {machine_factory.name} of class {machine_factory.value}: {machine_factory}")
return machine_factory.load()(machine_class, -1)
else:
ats_machines = {machine.name: machine
for group, machines in entry_points().items()
Expand Down
2 changes: 1 addition & 1 deletion ats/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def setName(self, name):
Set namebase to a version without special chars or blanks.
"""
self.name = name
self.namebase = re.sub('\W', '_', name)
self.namebase = re.sub(r'\W', '_', name)
#print "DEBUG setName = %s\n" % self.name

def __init__ (self, *fixedargs, **options):
Expand Down