Skip to content

Commit

Permalink
Bump version adding logging module and fixing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
GraysonBellamy committed Jun 11, 2024
1 parent 2173d35 commit 1b59f5f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 42 deletions.
10 changes: 6 additions & 4 deletions pyalicat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@

import sys

if sys.version_info >= (3, 8):
from importlib import metadata as importlib_metadata
else:
import importlib_metadata
from importlib import metadata as importlib_metadata


def get_version() -> str:
"""Get the version of the package.
Returns:
str: The version of the package.
"""
try:
return importlib_metadata.version(__name__)
except importlib_metadata.PackageNotFoundError: # pragma: no cover
Expand Down
3 changes: 2 additions & 1 deletion pyalicat/daq.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
from typing import Any

import asyncpg
import device
from anyio import create_task_group, run

from pyalicat import device

warnings.filterwarnings("always")


Expand Down
2 changes: 1 addition & 1 deletion pyalicat/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from abc import ABC, abstractmethod
from typing import Any, Self

from comm import SerialDevice
from pyalicat.comm import SerialDevice

warnings.filterwarnings("always")

Expand Down
32 changes: 0 additions & 32 deletions pyalicat/example.py

This file was deleted.

7 changes: 4 additions & 3 deletions pyalicat/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
from threading import Thread
from typing import Any

import daq
from anyio import create_task_group, run
from comm import SerialDevice
from device import Device, all_subclasses

from pyalicat import daq
from pyalicat.comm import SerialDevice
from pyalicat.device import Device, all_subclasses


def gas_correction():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "pyAlicat"
version = "0.0.3"
version = "0.0.4"
description = "Python API for acquisition and control of Alicat mass flow meters and controllers."
readme = "README.md"
authors = ["ulfsri <[email protected]>"]
Expand Down

0 comments on commit 1b59f5f

Please sign in to comment.