generated from PyMoDAQ/pymodaq_plugins_template
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
8 changed files
with
84 additions
and
47 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
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,10 @@ | ||
from pathlib import Path | ||
from hatchling.metadata.plugin.interface import MetadataHookInterface | ||
from pymodaq_utils.resources.hatch_build_plugins import update_metadata_from_toml | ||
|
||
here = Path(__file__).absolute().parent | ||
|
||
|
||
class PluginInfoTomlHook(MetadataHookInterface): | ||
def update(self, metadata: dict) -> None: | ||
update_metadata_from_toml(metadata, here) |
This file was deleted.
Oops, something went wrong.
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,64 @@ | ||
[features] # defines the plugin features contained into this plugin | ||
instruments = true # true if plugin contains instrument classes (else false, notice the lowercase for toml files) | ||
extensions = false # true if plugins contains dashboard extensions | ||
models = false # true if plugins contains pid models | ||
h5exporters = false # true if plugin contains custom h5 file exporters | ||
scanners = false # true if plugin contains custom scan layout (daq_scan extensions) | ||
|
||
[urls] | ||
package-url = 'https://github.com/PyMoDAQ/pymodaq_plugins_stanford_research_systems' | ||
|
||
[project] | ||
name = "pymodaq_plugins_stanford_research_systems" | ||
description = 'Set of plugins for the Stanford Research Systems (SRS) Instruments' | ||
dependencies = [ | ||
"pymodaq>=4.0.0", | ||
"pyvisa", | ||
"pymodaq_utils", | ||
] | ||
|
||
authors = [ | ||
{name = "Sebastien J. Weber", email = "sebastien.weber@cemes.fr"}, | ||
#todo: list here all authors of your plugin | ||
] | ||
maintainers = [ | ||
{name = "Sebastien J. Weber", email = "sebastien.weber@cemes.fr"}, | ||
#todo: list here all maintainers of your plugin | ||
] | ||
|
||
# nottodo: leave everything below as is! | ||
|
||
dynamic = ["version", "urls", "entry-points"] | ||
readme = "README.rst" | ||
license = { file="LICENSE" } | ||
requires-python = ">=3.8" | ||
|
||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Scientific/Engineering :: Human Machine Interfaces", | ||
"Topic :: Scientific/Engineering :: Visualization", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Software Development :: User Interfaces", | ||
] | ||
|
||
[build-system] | ||
requires = [ | ||
"hatchling>=1.9.0", | ||
"hatch-vcs", "toml", | ||
"pymodaq_utils>=0.0.6", | ||
] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.metadata.hooks.custom] | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
from pathlib import Path | ||
from pymodaq.utils.logger import set_logger # to be imported by other modules. | ||
|
||
from .utils import Config | ||
config = Config() | ||
from pymodaq_utils.utils import get_version, PackageNotFoundError | ||
from pymodaq_utils.logger import set_logger, get_module_name | ||
|
||
with open(str(Path(__file__).parent.joinpath('resources/VERSION')), 'r') as fvers: | ||
__version__ = fvers.read().strip() | ||
|
||
config = Config() | ||
try: | ||
__version__ = get_version(__package__) | ||
except PackageNotFoundError: | ||
__version__ = '0.0.0dev' |
1 change: 0 additions & 1 deletion
1
src/pymodaq_plugins_stanford_research_systems/resources/VERSION
This file was deleted.
Oops, something went wrong.