comply with PEP 625: lower case distribution filenames; bump version 2.1.18

This commit is contained in:
Mario Fink 2025-02-12 23:18:49 +01:00
parent 1eea219361
commit bb10d80489
12 changed files with 17 additions and 16 deletions

View File

@ -88,11 +88,11 @@ docker-run:
python-build: check-tags $(GVSN) python-build: check-tags $(GVSN)
make -C python/ build-inplace make -C python/ build-inplace
cp python/IMCtermite*.so ./ -v cp python/imctermite*.so ./ -v
python-clean: python-clean:
make -C python/ clean make -C python/ clean
rm -vf IMCtermite*.so rm -vf imctermite*.so
python-test: python-test:
PYTHONPATH=./ python python/examples/usage.py PYTHONPATH=./ python python/examples/usage.py

View File

@ -1 +1 @@
2.1.17 2.1.18

View File

@ -1,5 +1,5 @@
import IMCtermite import imctermite
import pandas import pandas
import datetime import datetime
@ -11,7 +11,7 @@ def add_trigger_time(trigger_time, add_time) :
if __name__ == "__main__" : if __name__ == "__main__" :
# read file and extract data # read file and extract data
imctm = IMCtermite.imctermite(b"Measurement.raw") imctm = imctermite.imctermite(b"Measurement.raw")
chns = imctm.get_channels(True) chns = imctm.get_channels(True)
# prepare abscissa # prepare abscissa

View File

@ -1,11 +1,11 @@
import IMCtermite import imctermite
import json import json
import os import os
# declare and initialize instance of "imctermite" by passing a raw-file # declare and initialize instance of "imctermite" by passing a raw-file
try : try :
imcraw = IMCtermite.imctermite(b"samples/exampleB.raw") imcraw = imctermite.imctermite(b"samples/exampleB.raw")
except RuntimeError as e : except RuntimeError as e :
raise Exception("failed to load/parse raw-file: " + str(e)) raise Exception("failed to load/parse raw-file: " + str(e))

View File

@ -1,5 +1,5 @@
import IMCtermite import imctermite
import json import json
import os import os
@ -15,7 +15,7 @@ for fl in rawlist1:
# declare and initialize instance of "imctermite" by passing a raw-file # declare and initialize instance of "imctermite" by passing a raw-file
try : try :
imcraw = IMCtermite.imctermite(fl.encode()) imcraw = imctermite.imctermite(fl.encode())
except RuntimeError as e : except RuntimeError as e :
raise Exception("failed to load/parse raw-file: " + str(e)) raise Exception("failed to load/parse raw-file: " + str(e))

View File

@ -1,12 +1,12 @@
import IMCtermite import imctermite
import json import json
import os import os
import datetime import datetime
# declare and initialize instance of "imctermite" by passing a raw-file # declare and initialize instance of "imctermite" by passing a raw-file
try : try :
imcraw = IMCtermite.imctermite(b"samples/sampleB.raw") imcraw = imctermite.imctermite(b"samples/sampleB.raw")
except RuntimeError as e : except RuntimeError as e :
raise Exception("failed to load/parse raw-file: " + str(e)) raise Exception("failed to load/parse raw-file: " + str(e))

View File

@ -1,5 +1,5 @@
from IMCtermite import imctermite import imctermite import imctermite
def show_results(imcraw) : def show_results(imcraw) :

View File

@ -1,7 +1,7 @@
# distutils: language = c++ # distutils: language = c++
# cython: language_level = 3 # cython: language_level = 3
from IMCtermite cimport cppimctermite from imctermite cimport cppimctermite
import json as jn import json as jn
import decimal import decimal

View File

@ -29,6 +29,7 @@ build-clean:
rm -vf imctermite*.so imctermite*.cpp rm -vf imctermite*.so imctermite*.cpp
rm -vf IMCtermite*.so IMCtermite*.cpp rm -vf IMCtermite*.so IMCtermite*.cpp
rm -rvf dist/ IMCtermite.egg-info/ rm -rvf dist/ IMCtermite.egg-info/
rm -rvf dist/ imctermite.egg-info/
cibuildwheel-build: setup cibuildwheel-build: setup
cibuildwheel --platform linux cibuildwheel --platform linux

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = IMCtermite name = imctermite
description = Enables extraction of measurement data from binary files with extension 'raw' used by proprietary software imcFAMOS and imcSTUDIO and facilitates its storage in open source file formats description = Enables extraction of measurement data from binary files with extension 'raw' used by proprietary software imcFAMOS and imcSTUDIO and facilitates its storage in open source file formats
long_description = file: README.md long_description = file: README.md
# long_description_content_type = text/x-rst # long_description_content_type = text/x-rst

View File

@ -11,8 +11,8 @@ cmpArgs = {
} }
extension = Extension( extension = Extension(
"IMCtermite", "imctermite",
sources=["IMCtermite.pyx"], sources=["imctermite.pyx"],
extra_compile_args=cmpArgs[sys.platform] extra_compile_args=cmpArgs[sys.platform]
) )