Skip to content

Commit

Permalink
Merge pull request #328 from Czarified/pd_update
Browse files Browse the repository at this point in the history
Expand pandas support
  • Loading branch information
Czarified authored Jul 4, 2024
2 parents 4b68e8d + 1a3d8f6 commit 16d3edb
Show file tree
Hide file tree
Showing 11 changed files with 919 additions and 677 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,21 @@ jobs:
fail-fast: false
matrix:
include:
- { python: "3.11", os: "ubuntu-latest", session: "pre-commit" }
- { python: "3.11", os: "ubuntu-latest", session: "safety" }
- { python: "3.12", os: "ubuntu-latest", session: "pre-commit" }
- { python: "3.12", os: "ubuntu-latest", session: "safety" }
- { python: "3.12", os: "ubuntu-latest", session: "mypy" }
- { python: "3.11", os: "ubuntu-latest", session: "mypy" }
- { python: "3.10", os: "ubuntu-latest", session: "mypy" }
- { python: "3.9", os: "ubuntu-latest", session: "mypy" }
- { python: "3.12", os: "ubuntu-latest", session: "tests" }
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
- { python: "3.9", os: "ubuntu-latest", session: "tests" }
- { python: "3.11", os: "windows-latest", session: "tests" }
- { python: "3.11", os: "macos-latest", session: "tests" }
- { python: "3.11", os: "ubuntu-latest", session: "typeguard" }
- { python: "3.11", os: "ubuntu-latest", session: "xdoctest" }
- { python: "3.11", os: "ubuntu-latest", session: "docs-build" }
- { python: "3.12", os: "windows-latest", session: "tests" }
- { python: "3.12", os: "macos-latest", session: "tests" }
- { python: "3.12", os: "ubuntu-latest", session: "typeguard" }
- { python: "3.12", os: "ubuntu-latest", session: "xdoctest" }
- { python: "3.12", os: "ubuntu-latest", session: "docs-build" }

env:
NOXSESSION: ${{ matrix.session }}
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sphinx configuration."""

project = "Thymed"
author = "Benjamin Crews"
copyright = "2022, Benjamin Crews"
Expand Down
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nox sessions."""

import os
import shlex
import shutil
Expand All @@ -23,7 +24,7 @@


package = "thymed"
python_versions = ["3.11", "3.10", "3.9"]
python_versions = ["3.12", "3.11", "3.10", "3.9"]
nox.needs_version = ">= 2021.6.6"
nox.options.sessions = (
"pre-commit",
Expand Down
1,560 changes: 897 additions & 663 deletions poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "thymed"
version = "0.4.1"
version = "0.5.0"
description = "Thymed"
authors = ["Benjamin Crews <aceF22@gmail.com>"]
license = "MIT"
Expand All @@ -16,11 +16,11 @@ classifiers = [
Changelog = "https://github.com/czarified/thymed/releases"

[tool.poetry.dependencies]
python = "^3.8"
python = ">=3.9,<4.0"
click = ">=8.0.1"
toml = "^0.10.2"
rich = ">12.5.1"
pandas = "^1.5.0"
pandas = ">2.2.0"
openpyxl = "^3.0.10"
textual = ">0.38.1"
textual-plotext = "^0.2.1"
Expand Down
1 change: 0 additions & 1 deletion src/thymed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
related to to time-keeping.
"""


import datetime as dt
import json
from copy import copy
Expand Down
5 changes: 3 additions & 2 deletions src/thymed/__main__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""Command-line interface."""

import json
from importlib.metadata import version
from typing import Any

import click
import pkg_resources
from rich.console import Console
from rich.panel import Panel
from rich.prompt import Confirm
Expand All @@ -19,7 +20,7 @@
install()


__version__ = pkg_resources.get_distribution("thymed").version
__version__ = version("thymed")


@click.group()
Expand Down
1 change: 1 addition & 0 deletions src/thymed/thymer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
The Text User Interface is all created, managed,
and tested with Textual.
"""

import json
from time import monotonic

Expand Down
1 change: 1 addition & 0 deletions tests/test_chargecode.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Cases for the ChargeCode class."""

import datetime as dt
import json
import random
Expand Down
1 change: 1 addition & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test cases for the __main__ module."""

import json

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_timecard.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Cases for the ChargeCode class."""

import datetime as dt
import json
import random
Expand Down

0 comments on commit 16d3edb

Please sign in to comment.