Skip to content

Commit

Permalink
Stability update (#104)
Browse files Browse the repository at this point in the history
* Pinning versions of python and tiledb, moving from typing to typing_extensions for compatibility with python 3.10

* bump version to 1.3.0
  • Loading branch information
kylemann16 authored Dec 3, 2024
1 parent 2e4d740 commit f3d654b
Show file tree
Hide file tree
Showing 21 changed files with 30 additions and 23 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ __pycache__/
build/
dist/
stats/
.env

*.html
**/html/**
**/_build/**

# local conda environment
# conda env create --prefix .conda/ -f environment.yml
.conda/**

# environment variables for pytest
.env

#tiledb
**/__fragments/**
**/__commits/**
Expand Down
5 changes: 3 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: silvimetric
channels:
- conda-forge
dependencies:
- python
- python>=3.10
- pip
- tiledb-py
- tiledb-py>=0.32.5
- pdal
- python-pdal
- numpy
Expand All @@ -19,3 +19,4 @@ dependencies:
- dill
- pandas
- lmoments3
- typing_extensions
2 changes: 1 addition & 1 deletion src/silvimetric/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.2.3'
__version__ = '1.3.0'

from .resources.bounds import Bounds
from .resources.extents import Extents
Expand Down
2 changes: 1 addition & 1 deletion src/silvimetric/commands/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from itertools import chain


from typing import Union
from typing_extensions import Union
from osgeo import gdal, osr
import dask
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion src/silvimetric/commands/info.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime
from uuid import UUID
from typing import Union
from typing_extensions import Union

from .. import Storage, Bounds

Expand Down
2 changes: 1 addition & 1 deletion src/silvimetric/commands/shatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import signal
import datetime
import copy
from typing import Generator
from typing_extensions import Generator
import pandas as pd
import tiledb

Expand Down
2 changes: 1 addition & 1 deletion src/silvimetric/resources/array_extensions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import Sequence
from typing_extensions import Sequence

import re

Expand Down
2 changes: 1 addition & 1 deletion src/silvimetric/resources/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from pathlib import Path
from abc import ABC, abstractmethod
from typing import Union, Tuple
from typing_extensions import Union, Tuple
from datetime import datetime

from dataclasses import dataclass, field
Expand Down
3 changes: 1 addition & 2 deletions src/silvimetric/resources/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
import pathlib
import sys

from typing import Any
from typing import Dict
from typing_extensions import Any, Dict

try:
import websocket
Expand Down
3 changes: 2 additions & 1 deletion src/silvimetric/resources/metric.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import json
import base64

from typing import Callable, Optional, Any, Union, List, Self
from typing_extensions import Self, Callable, Optional, Any, Union, List

from uuid import uuid4
from functools import reduce

Expand Down
2 changes: 1 addition & 1 deletion src/silvimetric/resources/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import contextlib
import json
import urllib
from typing import Generator
from typing_extensions import Generator

from math import floor

Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import copy

from datetime import datetime
from typing import Generator
from typing_extensions import Generator

from silvimetric import Extents, Bounds, Attribute, Storage
from silvimetric import grid_metrics
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/chunk_fixtures.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import pytest

from typing import Generator, List
from typing_extensions import Generator, List

from silvimetric import Extents, Data

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/cli_fixtures.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from typing import Generator
from typing_extensions import Generator
from click.testing import CliRunner

from silvimetric.commands import shatter
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/command_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pytest

from time import sleep
from typing import List, Generator
from typing_extensions import List, Generator
from datetime import datetime

from silvimetric.commands import shatter
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/dask_fixtures.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
import os
from typing import Generator
from typing_extensions import Generator
import dask

@pytest.fixture(scope="session", autouse=True)
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/data_fixtures.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
import os
from typing import Generator
from typing_extensions import Generator

@pytest.fixture(scope='session')
def no_cell_line_pc() -> Generator[int, None, None]:
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/extract_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import copy
import uuid
from typing import Generator
from typing_extensions import Generator

from silvimetric.commands.shatter import shatter
from silvimetric import Attribute, ExtractConfig, Log, Bounds
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/metric_fixtures.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import pytest
from typing import Generator
from typing_extensions import Generator
import pandas as pd
import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/shatter_fixtures.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from typing import Generator
from typing_extensions import Generator
from uuid import uuid4
import os

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/western_fixtures.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import tempfile
from typing import Generator
from typing_extensions import Generator

from silvimetric import Storage, ShatterConfig, Log, Bounds, StorageConfig
from silvimetric import __version__ as svversion
Expand Down

0 comments on commit f3d654b

Please sign in to comment.