diff --git a/ecologits/__init__.py b/ecologits/__init__.py index 7fbe3d0..c955464 100644 --- a/ecologits/__init__.py +++ b/ecologits/__init__.py @@ -1,4 +1,8 @@ from .ecologits import EcoLogits -__all__ = ["EcoLogits"] + __version__ = "0.2.0" +__all__ = [ + "__version__", + "EcoLogits" +] diff --git a/poetry.lock b/poetry.lock index 44d2776..bb4f110 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,10 +1,9 @@ -# This file is automatically @generated by Poetry 1.4.0 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. [[package]] name = "aiohttp" version = "3.9.5" description = "Async http client/server framework (asyncio)" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -101,7 +100,6 @@ speedups = ["Brotli", "aiodns", "brotlicffi"] name = "aiosignal" version = "1.3.1" description = "aiosignal: a list of registered asynchronous callbacks" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -116,7 +114,6 @@ frozenlist = ">=1.1.0" name = "annotated-types" version = "0.7.0" description = "Reusable constraint types to use with typing.Annotated" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -128,7 +125,6 @@ files = [ name = "anthropic" version = "0.29.2" description = "The official Python library for the anthropic API" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -154,7 +150,6 @@ vertex = ["google-auth (>=2,<3)"] name = "anyio" version = "4.4.0" description = "High level compatibility layer for multiple asynchronous event loop implementations" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -177,7 +172,6 @@ trio = ["trio (>=0.23)"] name = "async-timeout" version = "4.0.3" description = "Timeout context manager for asyncio programs" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -189,7 +183,6 @@ files = [ name = "attrs" version = "23.2.0" description = "Classes Without Boilerplate" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -209,7 +202,6 @@ tests-no-zope = ["attrs[tests-mypy]", "cloudpickle", "hypothesis", "pympler", "p name = "babel" version = "2.15.0" description = "Internationalization utilities" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -224,7 +216,6 @@ dev = ["freezegun (>=1.0,<2.0)", "pytest (>=6.0)", "pytest-cov"] name = "backports-strenum" version = "1.3.1" description = "Base class for creating enumerated constants that are also subclasses of str" -category = "dev" optional = false python-versions = ">=3.8.6,<3.11" files = [ @@ -236,7 +227,6 @@ files = [ name = "boto3" version = "1.34.144" description = "The AWS SDK for Python" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -256,7 +246,6 @@ crt = ["botocore[crt] (>=1.21.0,<2.0a0)"] name = "botocore" version = "1.34.144" description = "Low-level, data-driven core of boto 3." -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -279,7 +268,6 @@ crt = ["awscrt (==0.20.11)"] name = "cachetools" version = "5.4.0" description = "Extensible memoizing collections and decorators" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -291,7 +279,6 @@ files = [ name = "cairocffi" version = "1.7.1" description = "cffi-based cairo bindings for Python" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -311,7 +298,6 @@ xcb = ["xcffib (>=1.4.0)"] name = "cairosvg" version = "2.7.1" description = "A Simple SVG Converter based on Cairo" -category = "dev" optional = false python-versions = ">=3.5" files = [ @@ -334,7 +320,6 @@ test = ["flake8", "isort", "pytest"] name = "certifi" version = "2024.7.4" description = "Python package for providing Mozilla's CA Bundle." -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -346,7 +331,6 @@ files = [ name = "cffi" version = "1.16.0" description = "Foreign Function Interface for Python calling C code." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -411,7 +395,6 @@ pycparser = "*" name = "cfgv" version = "3.4.0" description = "Validate configuration and produce human readable error messages." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -423,7 +406,6 @@ files = [ name = "charset-normalizer" version = "3.3.2" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." -category = "main" optional = false python-versions = ">=3.7.0" files = [ @@ -523,7 +505,6 @@ files = [ name = "click" version = "8.1.7" description = "Composable command line interface toolkit" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -538,7 +519,6 @@ colorama = {version = "*", markers = "platform_system == \"Windows\""} name = "cohere" version = "5.5.8" description = "" -category = "main" optional = true python-versions = "<4.0,>=3.8" files = [ @@ -562,7 +542,6 @@ typing_extensions = ">=4.0.0" name = "colorama" version = "0.4.6" description = "Cross-platform colored terminal text." -category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" files = [ @@ -574,7 +553,6 @@ files = [ name = "cssselect2" version = "0.7.0" description = "CSS selectors for Python ElementTree" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -594,7 +572,6 @@ test = ["flake8", "isort", "pytest"] name = "defusedxml" version = "0.7.1" description = "XML bomb protection for Python stdlib modules" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -606,7 +583,6 @@ files = [ name = "distlib" version = "0.3.8" description = "Distribution utilities" -category = "dev" optional = false python-versions = "*" files = [ @@ -618,7 +594,6 @@ files = [ name = "distro" version = "1.9.0" description = "Distro - an OS platform information API" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -630,7 +605,6 @@ files = [ name = "exceptiongroup" version = "1.2.2" description = "Backport of PEP 654 (exception groups)" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -645,7 +619,6 @@ test = ["pytest (>=6)"] name = "fastavro" version = "1.9.5" description = "Fast read/write of AVRO files" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -692,7 +665,6 @@ zstandard = ["zstandard"] name = "filelock" version = "3.15.4" description = "A platform independent file lock." -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -709,7 +681,6 @@ typing = ["typing-extensions (>=4.8)"] name = "frozenlist" version = "1.4.1" description = "A list-like structure which implements collections.abc.MutableSequence" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -796,7 +767,6 @@ files = [ name = "fsspec" version = "2024.6.1" description = "File-system specification" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -836,7 +806,6 @@ tqdm = ["tqdm"] name = "ghp-import" version = "2.1.0" description = "Copy your docs directly to the gh-pages branch." -category = "dev" optional = false python-versions = "*" files = [ @@ -854,7 +823,6 @@ dev = ["flake8", "markdown", "twine", "wheel"] name = "google-ai-generativelanguage" version = "0.6.6" description = "Google Ai Generativelanguage API client library" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -863,7 +831,7 @@ files = [ ] [package.dependencies] -google-api-core = {version = ">=1.34.1,<2.0.0 || >=2.11.0,<3.0.0dev", extras = ["grpc"]} +google-api-core = {version = ">=1.34.1,<2.0.dev0 || >=2.11.dev0,<3.0.0dev", extras = ["grpc"]} google-auth = ">=2.14.1,<2.24.0 || >2.24.0,<2.25.0 || >2.25.0,<3.0.0dev" proto-plus = ">=1.22.3,<2.0.0dev" protobuf = ">=3.19.5,<3.20.0 || >3.20.0,<3.20.1 || >3.20.1,<4.21.0 || >4.21.0,<4.21.1 || >4.21.1,<4.21.2 || >4.21.2,<4.21.3 || >4.21.3,<4.21.4 || >4.21.4,<4.21.5 || >4.21.5,<5.0.0dev" @@ -872,7 +840,6 @@ protobuf = ">=3.19.5,<3.20.0 || >3.20.0,<3.20.1 || >3.20.1,<4.21.0 || >4.21.0,<4 name = "google-api-core" version = "2.19.1" description = "Google API client core library" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -884,12 +851,12 @@ files = [ google-auth = ">=2.14.1,<3.0.dev0" googleapis-common-protos = ">=1.56.2,<2.0.dev0" grpcio = [ - {version = ">=1.33.2,<2.0dev", optional = true, markers = "extra == \"grpc\""}, {version = ">=1.49.1,<2.0dev", optional = true, markers = "python_version >= \"3.11\" and extra == \"grpc\""}, + {version = ">=1.33.2,<2.0dev", optional = true, markers = "python_version < \"3.11\" and extra == \"grpc\""}, ] grpcio-status = [ - {version = ">=1.33.2,<2.0.dev0", optional = true, markers = "extra == \"grpc\""}, {version = ">=1.49.1,<2.0.dev0", optional = true, markers = "python_version >= \"3.11\" and extra == \"grpc\""}, + {version = ">=1.33.2,<2.0.dev0", optional = true, markers = "python_version < \"3.11\" and extra == \"grpc\""}, ] proto-plus = ">=1.22.3,<2.0.0dev" protobuf = ">=3.19.5,<3.20.0 || >3.20.0,<3.20.1 || >3.20.1,<4.21.0 || >4.21.0,<4.21.1 || >4.21.1,<4.21.2 || >4.21.2,<4.21.3 || >4.21.3,<4.21.4 || >4.21.4,<4.21.5 || >4.21.5,<6.0.0.dev0" @@ -904,7 +871,6 @@ grpcio-gcp = ["grpcio-gcp (>=0.2.2,<1.0.dev0)"] name = "google-api-python-client" version = "2.137.0" description = "Google API Client Library for Python" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -913,7 +879,7 @@ files = [ ] [package.dependencies] -google-api-core = ">=1.31.5,<2.0.0 || >2.3.0,<3.0.0.dev0" +google-api-core = ">=1.31.5,<2.0.dev0 || >2.3.0,<3.0.0.dev0" google-auth = ">=1.32.0,<2.24.0 || >2.24.0,<2.25.0 || >2.25.0,<3.0.0.dev0" google-auth-httplib2 = ">=0.2.0,<1.0.0" httplib2 = ">=0.19.0,<1.dev0" @@ -923,7 +889,6 @@ uritemplate = ">=3.0.1,<5" name = "google-auth" version = "2.32.0" description = "Google Authentication Library" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -947,7 +912,6 @@ requests = ["requests (>=2.20.0,<3.0.0.dev0)"] name = "google-auth-httplib2" version = "0.2.0" description = "Google Authentication Library: httplib2 transport" -category = "main" optional = true python-versions = "*" files = [ @@ -963,7 +927,6 @@ httplib2 = ">=0.19.0" name = "google-generativeai" version = "0.7.2" description = "Google Generative AI High level API client library and tools." -category = "main" optional = true python-versions = ">=3.9" files = [ @@ -987,7 +950,6 @@ dev = ["Pillow", "absl-py", "black", "ipython", "nose2", "pandas", "pytype", "py name = "googleapis-common-protos" version = "1.63.2" description = "Common protobufs used in Google APIs" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -1005,7 +967,6 @@ grpc = ["grpcio (>=1.44.0,<2.0.0.dev0)"] name = "griffe" version = "0.48.0" description = "Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1021,7 +982,6 @@ colorama = ">=0.4" name = "grpcio" version = "1.64.1" description = "HTTP/2-based RPC framework" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1080,7 +1040,6 @@ protobuf = ["grpcio-tools (>=1.64.1)"] name = "grpcio-status" version = "1.62.2" description = "Status proto mapping for gRPC" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -1097,7 +1056,6 @@ protobuf = ">=4.21.6" name = "h11" version = "0.14.0" description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -1109,7 +1067,6 @@ files = [ name = "httpcore" version = "1.0.5" description = "A minimal low-level HTTP client." -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1124,14 +1081,13 @@ h11 = ">=0.13,<0.15" [package.extras] asyncio = ["anyio (>=4.0,<5.0)"] http2 = ["h2 (>=3,<5)"] -socks = ["socksio (>=1.0.0,<2.0.0)"] +socks = ["socksio (==1.*)"] trio = ["trio (>=0.22.0,<0.26.0)"] [[package]] name = "httplib2" version = "0.22.0" description = "A comprehensive HTTP client library." -category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -1146,7 +1102,6 @@ pyparsing = {version = ">=2.4.2,<3.0.0 || >3.0.0,<3.0.1 || >3.0.1,<3.0.2 || >3.0 name = "httpx" version = "0.25.2" description = "The next generation HTTP client." -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1157,21 +1112,20 @@ files = [ [package.dependencies] anyio = "*" certifi = "*" -httpcore = ">=1.0.0,<2.0.0" +httpcore = "==1.*" idna = "*" sniffio = "*" [package.extras] brotli = ["brotli", "brotlicffi"] -cli = ["click (>=8.0.0,<9.0.0)", "pygments (>=2.0.0,<3.0.0)", "rich (>=10,<14)"] +cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"] http2 = ["h2 (>=3,<5)"] -socks = ["socksio (>=1.0.0,<2.0.0)"] +socks = ["socksio (==1.*)"] [[package]] name = "httpx-sse" version = "0.4.0" description = "Consume Server-Sent Event (SSE) messages with HTTPX." -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1183,7 +1137,6 @@ files = [ name = "huggingface-hub" version = "0.22.2" description = "Client library to download and publish models, datasets and other repos on the huggingface.co hub" -category = "main" optional = true python-versions = ">=3.8.0" files = [ @@ -1218,7 +1171,6 @@ typing = ["types-PyYAML", "types-requests", "types-simplejson", "types-toml", "t name = "identify" version = "2.6.0" description = "File identification library for Python" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1233,7 +1185,6 @@ license = ["ukkonen"] name = "idna" version = "3.7" description = "Internationalized Domain Names in Applications (IDNA)" -category = "main" optional = false python-versions = ">=3.5" files = [ @@ -1245,7 +1196,6 @@ files = [ name = "importlib-metadata" version = "8.0.0" description = "Read metadata from Python packages" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -1265,7 +1215,6 @@ test = ["flufl.flake8", "importlib-resources (>=1.3)", "jaraco.test (>=5.4)", "p name = "importlib-resources" version = "6.4.0" description = "Read resources from Python packages" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1284,7 +1233,6 @@ testing = ["jaraco.test (>=5.4)", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "p name = "iniconfig" version = "2.0.0" description = "brain-dead simple config-ini parsing" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1296,7 +1244,6 @@ files = [ name = "jinja2" version = "3.1.4" description = "A very fast and expressive template engine." -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1314,7 +1261,6 @@ i18n = ["Babel (>=2.7)"] name = "jiter" version = "0.5.0" description = "Fast iterable JSON parser." -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1385,7 +1331,6 @@ files = [ name = "jmespath" version = "1.0.1" description = "JSON Matching Expressions" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -1397,7 +1342,6 @@ files = [ name = "jsonschema" version = "4.23.0" description = "An implementation of JSON Schema validation for Python" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1419,7 +1363,6 @@ format-nongpl = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339- name = "jsonschema-specifications" version = "2023.12.1" description = "The JSON Schema meta-schemas and vocabularies, exposed as a Registry" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1434,7 +1377,6 @@ referencing = ">=0.31.0" name = "litellm" version = "1.41.23" description = "Library to easily interface with LLM API providers" -category = "main" optional = true python-versions = "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,>=3.8" files = [ @@ -1463,7 +1405,6 @@ proxy = ["PyJWT (>=2.8.0,<3.0.0)", "apscheduler (>=3.10.4,<4.0.0)", "backoff", " name = "markdown" version = "3.6" description = "Python implementation of John Gruber's Markdown." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1482,7 +1423,6 @@ testing = ["coverage", "pyyaml"] name = "markupsafe" version = "2.1.5" description = "Safely add untrusted strings to HTML/XML markup." -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1552,7 +1492,6 @@ files = [ name = "mergedeep" version = "1.3.4" description = "A deep merge function for 🐍." -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1564,7 +1503,6 @@ files = [ name = "mike" version = "2.1.2" description = "Manage multiple versions of your MkDocs-powered documentation" -category = "dev" optional = false python-versions = "*" files = [ @@ -1590,7 +1528,6 @@ test = ["coverage", "flake8 (>=3.0)", "flake8-quotes", "shtab"] name = "minijinja" version = "1.0.16" description = "An experimental Python binding of the Rust MiniJinja template engine." -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1608,7 +1545,6 @@ files = [ name = "mistralai" version = "0.1.8" description = "" -category = "main" optional = true python-versions = "<4.0,>=3.9" files = [ @@ -1625,7 +1561,6 @@ pydantic = ">=2.5.2,<3.0.0" name = "mkdocs" version = "1.6.0" description = "Project documentation with Markdown." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1657,7 +1592,6 @@ min-versions = ["babel (==2.9.0)", "click (==7.0)", "colorama (==0.4)", "ghp-imp name = "mkdocs-autorefs" version = "1.0.1" description = "Automatically link across pages in MkDocs." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1674,7 +1608,6 @@ mkdocs = ">=1.1" name = "mkdocs-gen-files" version = "0.5.0" description = "MkDocs plugin to programmatically generate documentation pages during the build" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1689,7 +1622,6 @@ mkdocs = ">=1.0.3" name = "mkdocs-get-deps" version = "0.2.0" description = "MkDocs extension that lists all dependencies according to a mkdocs.yml file" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1707,7 +1639,6 @@ pyyaml = ">=5.1" name = "mkdocs-literate-nav" version = "0.6.1" description = "MkDocs plugin to specify the navigation in Markdown instead of YAML" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1722,7 +1653,6 @@ mkdocs = ">=1.0.3" name = "mkdocs-material" version = "9.5.29" description = "Documentation that simply works" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1754,7 +1684,6 @@ recommended = ["mkdocs-minify-plugin (>=0.7,<1.0)", "mkdocs-redirects (>=1.2,<2. name = "mkdocs-material-extensions" version = "1.3.1" description = "Extension pack for Python Markdown and MkDocs Material." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1766,7 +1695,6 @@ files = [ name = "mkdocstrings" version = "0.25.1" description = "Automatic documentation from sources, for MkDocs." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1796,7 +1724,6 @@ python-legacy = ["mkdocstrings-python-legacy (>=0.2.1)"] name = "mkdocstrings-python" version = "1.10.5" description = "A Python handler for mkdocstrings." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1812,7 +1739,6 @@ mkdocstrings = ">=0.25" name = "multidict" version = "6.0.5" description = "multidict implementation" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1912,7 +1838,6 @@ files = [ name = "nodeenv" version = "1.9.1" description = "Node.js virtual environment builder" -category = "dev" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" files = [ @@ -1924,7 +1849,6 @@ files = [ name = "numpy" version = "2.0.0" description = "Fundamental package for array computing in Python" -category = "dev" optional = false python-versions = ">=3.9" files = [ @@ -1979,7 +1903,6 @@ files = [ name = "openai" version = "1.35.14" description = "The official Python library for the openai API" -category = "main" optional = true python-versions = ">=3.7.1" files = [ @@ -2003,7 +1926,6 @@ datalib = ["numpy (>=1)", "pandas (>=1.2.3)", "pandas-stubs (>=1.1.0.11)"] name = "orjson" version = "3.10.6" description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2064,7 +1986,6 @@ files = [ name = "packaging" version = "24.1" description = "Core utilities for Python packages" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -2076,7 +1997,6 @@ files = [ name = "paginate" version = "0.5.6" description = "Divides large result sets into pages for easier browsing" -category = "dev" optional = false python-versions = "*" files = [ @@ -2087,7 +2007,6 @@ files = [ name = "parameterized" version = "0.9.0" description = "Parameterized testing with any Python test framework" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2102,7 +2021,6 @@ dev = ["jinja2"] name = "pathspec" version = "0.12.1" description = "Utility library for gitignore style pattern matching of file paths." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2114,7 +2032,6 @@ files = [ name = "pillow" version = "10.4.0" description = "Python Imaging Library (Fork)" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2212,7 +2129,6 @@ xmp = ["defusedxml"] name = "platformdirs" version = "4.2.2" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2229,7 +2145,6 @@ type = ["mypy (>=1.8)"] name = "pluggy" version = "1.5.0" description = "plugin and hook calling mechanisms for python" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2245,7 +2160,6 @@ testing = ["pytest", "pytest-benchmark"] name = "pre-commit" version = "2.21.0" description = "A framework for managing and maintaining multi-language pre-commit hooks." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -2264,7 +2178,6 @@ virtualenv = ">=20.10.0" name = "proto-plus" version = "1.24.0" description = "Beautiful, Pythonic protocol buffers." -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2282,7 +2195,6 @@ testing = ["google-api-core (>=1.31.5)"] name = "protobuf" version = "4.25.3" description = "" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2303,7 +2215,6 @@ files = [ name = "pyasn1" version = "0.6.0" description = "Pure-Python implementation of ASN.1 types and DER/BER/CER codecs (X.208)" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2315,7 +2226,6 @@ files = [ name = "pyasn1-modules" version = "0.4.0" description = "A collection of ASN.1-based protocols modules" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2330,7 +2240,6 @@ pyasn1 = ">=0.4.6,<0.7.0" name = "pycparser" version = "2.22" description = "C parser in Python" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2342,7 +2251,6 @@ files = [ name = "pydantic" version = "2.8.2" description = "Data validation using Python type hints" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -2365,7 +2273,6 @@ email = ["email-validator (>=2.0.0)"] name = "pydantic-core" version = "2.20.1" description = "Core functionality for Pydantic validation and serialization" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -2467,7 +2374,6 @@ typing-extensions = ">=4.6.0,<4.7.0 || >4.7.0" name = "pygments" version = "2.18.0" description = "Pygments is a syntax highlighting package written in Python." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2482,7 +2388,6 @@ windows-terminal = ["colorama (>=0.4.6)"] name = "pymdown-extensions" version = "10.8.1" description = "Extension pack for Python Markdown." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2501,7 +2406,6 @@ extra = ["pygments (>=2.12)"] name = "pyparsing" version = "3.1.2" description = "pyparsing module - Classes and methods to define and execute parsing grammars" -category = "main" optional = false python-versions = ">=3.6.8" files = [ @@ -2516,7 +2420,6 @@ diagrams = ["jinja2", "railroad-diagrams"] name = "pytest" version = "7.4.4" description = "pytest: simple powerful testing with Python" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -2539,7 +2442,6 @@ testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "no name = "pytest-asyncio" version = "0.23.7" description = "Pytest support for asyncio" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2558,7 +2460,6 @@ testing = ["coverage (>=6.2)", "hypothesis (>=5.7.1)"] name = "pytest-dotenv" version = "0.5.2" description = "A py.test plugin that parses environment files before running tests" -category = "dev" optional = false python-versions = "*" files = [ @@ -2574,7 +2475,6 @@ python-dotenv = ">=0.9.1" name = "pytest-recording" version = "0.13.2" description = "A pytest plugin that allows you recording of network interactions via VCR.py" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -2594,7 +2494,6 @@ tests = ["pytest-httpbin", "pytest-mock", "requests", "werkzeug (==3.0.3)"] name = "python-dateutil" version = "2.9.0.post0" description = "Extensions to the standard Python datetime module" -category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" files = [ @@ -2609,7 +2508,6 @@ six = ">=1.5" name = "python-dotenv" version = "1.0.1" description = "Read key-value pairs from a .env file and set them as environment variables" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -2624,7 +2522,6 @@ cli = ["click (>=5.0)"] name = "pyyaml" version = "6.0.1" description = "YAML parser and emitter for Python" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -2685,7 +2582,6 @@ files = [ name = "pyyaml-env-tag" version = "0.1" description = "A custom YAML tag for referencing environment variables in YAML files. " -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -2700,7 +2596,6 @@ pyyaml = "*" name = "referencing" version = "0.35.1" description = "JSON Referencing + Python" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2716,7 +2611,6 @@ rpds-py = ">=0.7.0" name = "regex" version = "2024.5.15" description = "Alternative regular expression module, to replace re." -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -2805,7 +2699,6 @@ files = [ name = "requests" version = "2.32.3" description = "Python HTTP for Humans." -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -2827,7 +2720,6 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] name = "rpds-py" version = "0.19.0" description = "Python bindings to Rust's persistent data structures (rpds)" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2936,7 +2828,6 @@ files = [ name = "rsa" version = "4.9" description = "Pure-Python RSA implementation" -category = "main" optional = true python-versions = ">=3.6,<4" files = [ @@ -2951,7 +2842,6 @@ pyasn1 = ">=0.1.3" name = "s3transfer" version = "0.10.2" description = "An Amazon S3 Transfer Manager" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2969,7 +2859,6 @@ crt = ["botocore[crt] (>=1.33.2,<2.0a.0)"] name = "six" version = "1.16.0" description = "Python 2 and 3 compatibility utilities" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" files = [ @@ -2981,7 +2870,6 @@ files = [ name = "sniffio" version = "1.3.1" description = "Sniff out which async library your code is running under" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2993,7 +2881,6 @@ files = [ name = "tiktoken" version = "0.7.0" description = "tiktoken is a fast BPE tokeniser for use with OpenAI's models" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -3046,7 +2933,6 @@ blobfile = ["blobfile (>=2)"] name = "tinycss2" version = "1.3.0" description = "A tiny CSS parser" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -3065,7 +2951,6 @@ test = ["pytest", "ruff"] name = "tokenizers" version = "0.19.1" description = "" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -3179,11 +3064,21 @@ dev = ["tokenizers[testing]"] docs = ["setuptools-rust", "sphinx", "sphinx-rtd-theme"] testing = ["black (==22.3)", "datasets", "numpy", "pytest", "requests", "ruff"] +[[package]] +name = "toml" +version = "0.10.2" +description = "Python Library for Tom's Obvious, Minimal Language" +optional = false +python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" +files = [ + {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, + {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, +] + [[package]] name = "tomli" version = "2.0.1" description = "A lil' TOML parser" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -3195,7 +3090,6 @@ files = [ name = "tqdm" version = "4.66.4" description = "Fast, Extensible Progress Meter" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -3216,7 +3110,6 @@ telegram = ["requests"] name = "types-requests" version = "2.31.0.6" description = "Typing stubs for requests" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -3231,7 +3124,6 @@ types-urllib3 = "*" name = "types-urllib3" version = "1.26.25.14" description = "Typing stubs for urllib3" -category = "main" optional = true python-versions = "*" files = [ @@ -3243,7 +3135,6 @@ files = [ name = "typing-extensions" version = "4.12.2" description = "Backported and Experimental Type Hints for Python 3.8+" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -3255,7 +3146,6 @@ files = [ name = "uritemplate" version = "4.1.1" description = "Implementation of RFC 6570 URI Templates" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -3267,7 +3157,6 @@ files = [ name = "urllib3" version = "1.26.19" description = "HTTP library with thread-safe connection pooling, file post, and more." -category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7" files = [ @@ -3284,7 +3173,6 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] name = "vcrpy" version = "6.0.1" description = "Automatically mock your HTTP interactions to simplify and speed up testing" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -3304,7 +3192,6 @@ tests = ["Werkzeug (==2.0.3)", "aiohttp", "boto3", "httplib2", "httpx", "pytest" name = "verspec" version = "0.1.0" description = "Flexible version handling" -category = "dev" optional = false python-versions = "*" files = [ @@ -3319,7 +3206,6 @@ test = ["coverage", "flake8 (>=3.7)", "mypy", "pretend", "pytest"] name = "virtualenv" version = "20.26.3" description = "Virtual Python Environment builder" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -3340,7 +3226,6 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess name = "watchdog" version = "4.0.1" description = "Filesystem events monitoring" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -3385,7 +3270,6 @@ watchmedo = ["PyYAML (>=3.10)"] name = "webencodings" version = "0.5.1" description = "Character encoding aliases for legacy web content" -category = "dev" optional = false python-versions = "*" files = [ @@ -3397,7 +3281,6 @@ files = [ name = "wrapt" version = "1.16.0" description = "Module for decorators, wrappers and monkey patching." -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -3477,7 +3360,6 @@ files = [ name = "yarl" version = "1.9.4" description = "Yet another URL library" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -3581,7 +3463,6 @@ multidict = ">=4.0" name = "zipp" version = "3.19.2" description = "Backport of pathlib-compatible object wrapper for zip files" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -3605,4 +3486,4 @@ openai = ["openai"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<4" -content-hash = "fac1619fde0ad36d5cafc9595b28183d2fe09a67afa29fc79d33d6d72553bdc2" +content-hash = "eb6d394c6bc07218ce38b483f55872e4678376d25161b293b7790389d73625a7" diff --git a/pyproject.toml b/pyproject.toml index 86e01e6..5fcabfc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,6 +71,7 @@ pytest-recording = "^0.13.1" pytest-dotenv = "^0.5.2" pytest-asyncio = "^0.23.6" numpy = "^2.0.0" +toml = "^0.10.2" [tool.poetry.group.docs] diff --git a/tests/test_version.py b/tests/test_version.py new file mode 100644 index 0000000..077e699 --- /dev/null +++ b/tests/test_version.py @@ -0,0 +1,18 @@ +from pathlib import Path +from typing import Optional + +import toml + +from ecologits import __version__ + + +def test_version_alignment(): + poetry_version = get_poetry_version() + assert __version__ == poetry_version + + +def get_poetry_version() -> Optional[str]: + path = Path(__file__).resolve().parents[1] / 'pyproject.toml' + with open(str(path), "r") as fd: + pyproject = toml.loads(fd.read()) + return pyproject['tool']['poetry']['version']