Skip to content
Snippets Groups Projects
Commit e2de23f9 authored by Corné Lukken's avatar Corné Lukken
Browse files

Merge branch 'fix-broken-importlib' into 'master'

Use correct native importlib library available Python 3.7+

See merge request !21
parents 469f0ca6 2127bc9d
No related branches found
No related tags found
1 merge request!21Use correct native importlib library available Python 3.7+
Pipeline #47031 passed
stages: stages:
- run
- image - image
test-run:
stage: run
image: python:3.11
before_script:
- pip3 install -r requirements.txt
- python3 setup.py install
script:
- hwtr -h
docker-build: docker-build:
stage: image stage: image
image: docker:latest image: docker:latest
......
import logging from importlib import metadata
import argparse import argparse
import logging
import signal
import sys
import threading import threading
import time import time
import sys
import signal
from importlib_metadata import metadata
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument("-s", "--simulator", help="Do not connect to I2c, but simulate behaviour.", action="store_true") parser.add_argument("-s", "--simulator", help="Do not connect to I2c, but simulate behaviour.", action="store_true")
...@@ -26,7 +26,7 @@ args = parser.parse_args() ...@@ -26,7 +26,7 @@ args = parser.parse_args()
#} #}
#configure_logger(logstash_host=args.loghost,level=args.loglevel, log_extra=log_extra) #configure_logger(logstash_host=args.loghost,level=args.loglevel, log_extra=log_extra)
logging.getLogger().setLevel(args.loglevel) logging.getLogger().setLevel(args.loglevel)
git_hash=metadata("pypcc")["Summary"] git_hash=metadata.metadata("pypcc")["Summary"]
logging.info("Git Hash="+git_hash) logging.info("Git Hash="+git_hash)
from pypcc.opcuaserv import opcuaserv from pypcc.opcuaserv import opcuaserv
......
git+https://github.com/amaork/libi2c.git; platform_system == "linux" git+https://github.com/amaork/libi2c.git; platform_system == "Linux"
asyncua asyncua
numpy numpy
recordclass recordclass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment