Skip to content

Commit

Permalink
Merge pull request #20 from DavidLutton/packaging_python
Browse files Browse the repository at this point in the history
Packaging python
  • Loading branch information
DavidLutton authored Dec 26, 2023
2 parents 6b5aca8 + 2d54b8c commit 7ab1849
Show file tree
Hide file tree
Showing 102 changed files with 68 additions and 174 deletions.
95 changes: 0 additions & 95 deletions Makefile

This file was deleted.

57 changes: 57 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "LabToolkit"
dynamic = ["version"]
authors = [
{ name="David Lutton", email="david.lutton@gmail.com" },
]
description = "Python package for instrument control, data acquisition and automation"
readme = "README.md"
requires-python = ">= 3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

keywords = [
"VISA",
"GPIB",
"USB",
"Serial",
"RS232",
"Measurement",
"Acquisition",
]

dependencies = [
"pyvisa",
"pandas",
"numpy",
]

[project.optional-dependencies]
VXI11 = [
"pyvisa_py",
]
screenshots = [
"Pillow",
]
[project.urls]
Homepage = "https://github.com/DavidLutton/LabToolkit"
Issues = "https://github.com/DavidLutton/LabToolkit/issues"

[tool.hatch.version]
path = "src/__about__.py"

[tool.hatch.build.targets.wheel]
packages = ["src"]
21 changes: 0 additions & 21 deletions setup.cfg

This file was deleted.

58 changes: 0 additions & 58 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.4.0"
10 changes: 10 additions & 0 deletions labtoolkit/__init__.py → src/__init__.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
import pandas as pd
# import numpy as np
import pyvisa
from importlib.metadata import version



__version__ = "unknown package is not installed"
try:
__version__ = version(__name__)
except PackageNotFoundError:
pass # package is not installed


"""Example Google style docstrings.
Expand Down

0 comments on commit 7ab1849

Please sign in to comment.