-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6e6956d
Showing
24 changed files
with
994 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine toml | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# Compiled python modules. | ||
*.pyc | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# pycharm | ||
.idea/ | ||
.idea/* | ||
|
||
*yacctab.py | ||
*lextab.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2021 Sebastien Weber <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include README.rst | ||
include LICENSE | ||
graft src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
pymodaq_plugins_keithley (Keithley) | ||
################################### | ||
|
||
.. image:: https://img.shields.io/pypi/v/pymodaq_plugins_keithley .svg | ||
:target: https://pypi.org/project/pymodaq_plugins_physical_measurements/ | ||
:alt: Latest Version | ||
|
||
.. image:: https://readthedocs.org/projects/pymodaq/badge/?version=latest | ||
:target: https://pymodaq.readthedocs.io/en/stable/?badge=latest | ||
:alt: Documentation Status | ||
|
||
.. image:: https://github.com/PyMoDAQ/pymodaq_plugins_keithley /workflows/Upload%20Python%20Package/badge.svg | ||
:target: https://github.com/PyMoDAQ/pymodaq_plugins_keithley | ||
|
||
'Set of PyMoDAQ plugins for various physical measurements from keithley' | ||
|
||
|
||
Authors | ||
======= | ||
|
||
* Sebastien J. Weber | ||
|
||
Contributors | ||
============ | ||
|
||
* Nicolas Bruyant | ||
|
||
|
||
Instruments | ||
=========== | ||
Below is the list of instruments included in this plugin | ||
|
||
|
||
Actuator | ||
++++++++ | ||
|
||
* **Keithley2400**: Sourcemeter Keithley 2400 (using pymeasure intermediate package) | ||
|
||
Viewer0D | ||
++++++++ | ||
|
||
* **Keithley_Pico**: Pico-Amperemeter Keithley 648X Series, 6430 and 6514 | ||
* **Keithley2110**: Multimeter Keithley 2110 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## To modify by developper(s) of the plugin | ||
|
||
[plugin-info] | ||
SHORT_PLUGIN_NAME = 'keithley' #for instance daqmx | ||
package-url = 'https://github.com/PyMoDAQ/pymodaq_plugins_keithley' #to modify | ||
description = 'Set of PyMoDAQ plugins for various physical measurements from keithley' | ||
|
||
author = 'Sébastien Weber' | ||
author-email = '[email protected]' | ||
license = 'MIT' | ||
|
||
[plugin-install] | ||
#packages required for your plugin: | ||
packages-required = ["pyvisa", "pymeasure"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
from setuptools import setup, find_packages | ||
import toml | ||
|
||
config = toml.load('./plugin_info.toml') | ||
SHORT_PLUGIN_NAME = config['plugin-info']['SHORT_PLUGIN_NAME'] | ||
PLUGIN_NAME = f"pymodaq_plugins_{SHORT_PLUGIN_NAME}" | ||
|
||
|
||
from pathlib import Path | ||
|
||
with open(str(Path(__file__).parent.joinpath(f'src/{PLUGIN_NAME}/VERSION')), 'r') as fvers: | ||
version = fvers.read().strip() | ||
|
||
|
||
with open('README.rst') as fd: | ||
long_description = fd.read() | ||
|
||
setupOpts = dict( | ||
name=PLUGIN_NAME, | ||
description=config['plugin-info']['description'], | ||
long_description=long_description, | ||
license=config['plugin-info']['license'], | ||
url=config['plugin-info']['package-url'], | ||
author=config['plugin-info']['author'], | ||
author_email=config['plugin-info']['author-email'], | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Other Environment", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Scientific/Engineering :: Human Machine Interfaces", | ||
"Topic :: Scientific/Engineering :: Visualization", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Software Development :: User Interfaces", | ||
], ) | ||
|
||
|
||
setup( | ||
version=version, | ||
packages=find_packages(where='./src'), | ||
package_dir={'': 'src'}, | ||
include_package_data=True, | ||
entry_points={'pymodaq.plugins': f'{SHORT_PLUGIN_NAME} = {PLUGIN_NAME}'}, | ||
install_requires=['toml', ]+config['plugin-install']['packages-required'], | ||
**setupOpts | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.0.1 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import importlib | ||
from pathlib import Path | ||
from pymodaq.daq_utils import daq_utils as utils | ||
logger = utils.set_logger('move_plugins', add_to_console=False) | ||
|
||
for path in Path(__file__).parent.iterdir(): | ||
try: | ||
if '__init__' not in str(path): | ||
importlib.import_module('.' + path.stem, __package__) | ||
except Exception as e: | ||
logger.warning("{:} plugin couldn't be loaded due to some missing packages or errors: {:}".format(path.stem, str(e))) | ||
pass | ||
|
Oops, something went wrong.