diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..86112e5 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,47 @@ +name: publish + +on: + push: + tags: + - "*.*.*" + +permissions: + contents: read + +jobs: + build_and_publish_pypi: + if: github.repository_owner == 'statnett' + permissions: + id-token: write + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Install Python + uses: actions/setup-python@v2 + with: + python-version: 3.12 + - name: install poetry + run: | + python -m pip install --upgrade pip wheel pipx + python -m pipx install poetry + - name: Install dependencies + run: | + poetry install + poetry self add "poetry-dynamic-versioning[plugin]" + - name: Run tests and linting + run: | + poetry run pytest + poetry run ruff check + poetry run ruff format + - name: Build package + run: | + poetry build + - name: Publish package distributions to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ +# - name: Publish package distributions to PyPI +# uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..63f0f45 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: tests + +on: [push, pull_request] +jobs: + tests: + strategy: + matrix: + os: [ubuntu-latest] + python: ['3.10', '3.11', '3.12'] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: install poetry + run: | + python -m pip install --upgrade pip wheel pipx + python -m pipx install poetry + - name: install dependencies + run: poetry install + - name: run tests + run: poetry run pytest + - name: run linter + run: | + poetry run ruff check + poetry run ruff format diff --git a/poetry.lock b/poetry.lock index 38a5a36..157f5bc 100644 --- a/poetry.lock +++ b/poetry.lock @@ -11,11 +11,6 @@ files = [ {file = "annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "black" version = "24.4.2" @@ -62,11 +57,6 @@ d = ["aiohttp (>=3.7.4)", "aiohttp (>=3.7.4,!=3.9.0)"] jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"] uvloop = ["uvloop (>=0.15.2)"] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "cfgv" version = "3.4.0" @@ -78,11 +68,6 @@ files = [ {file = "cfgv-3.4.0.tar.gz", hash = "sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "click" version = "8.1.7" @@ -97,11 +82,6 @@ files = [ [package.dependencies] colorama = {version = "*", markers = "platform_system == \"Windows\""} -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "colorama" version = "0.4.6" @@ -113,11 +93,6 @@ files = [ {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "coverage" version = "7.5.3" @@ -185,11 +160,6 @@ tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.1 [package.extras] toml = ["tomli"] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "distlib" version = "0.3.8" @@ -201,11 +171,6 @@ files = [ {file = "distlib-0.3.8.tar.gz", hash = "sha256:1530ea13e350031b6312d8580ddb6b27a104275a31106523b8f123787f494f64"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "exceptiongroup" version = "1.2.1" @@ -220,11 +185,6 @@ files = [ [package.extras] test = ["pytest (>=6)"] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "filelock" version = "3.15.1" @@ -241,11 +201,6 @@ docs = ["furo (>=2023.9.10)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1 testing = ["covdefaults (>=2.3)", "coverage (>=7.3.2)", "diff-cover (>=8.0.1)", "pytest (>=7.4.3)", "pytest-asyncio (>=0.21)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)", "pytest-timeout (>=2.2)"] typing = ["typing-extensions (>=4.8)"] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "identify" version = "2.5.36" @@ -260,11 +215,6 @@ files = [ [package.extras] license = ["ukkonen"] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "iniconfig" version = "2.0.0" @@ -276,11 +226,6 @@ files = [ {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "mypy-extensions" version = "1.0.0" @@ -292,27 +237,17 @@ files = [ {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "nodeenv" version = "1.9.1" description = "Node.js virtual environment builder" optional = false -python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*" +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" files = [ {file = "nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9"}, {file = "nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "packaging" version = "24.1" @@ -324,11 +259,6 @@ files = [ {file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "pathspec" version = "0.12.1" @@ -340,11 +270,6 @@ files = [ {file = "pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "pendulum" version = "3.0.0" @@ -439,13 +364,10 @@ files = [ [package.dependencies] python-dateutil = ">=2.6" -time-machine = {version = ">=2.6.0", markers = "implementation_name != \"pypy\""} tzdata = ">=2020.1" -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" +[package.extras] +test = ["time-machine (>=2.6.0)"] [[package]] name = "platformdirs" @@ -463,11 +385,6 @@ docs = ["furo (>=2023.9.10)", "proselint (>=0.13)", "sphinx (>=7.2.6)", "sphinx- test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4.3)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)"] type = ["mypy (>=1.8)"] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "pluggy" version = "1.5.0" @@ -483,11 +400,6 @@ files = [ dev = ["pre-commit", "tox"] testing = ["pytest", "pytest-benchmark"] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "pre-commit" version = "3.7.1" @@ -506,11 +418,6 @@ nodeenv = ">=0.11.1" pyyaml = ">=5.1" virtualenv = ">=20.10.0" -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "pydantic" version = "2.7.4" @@ -530,11 +437,6 @@ typing-extensions = ">=4.6.1" [package.extras] email = ["email-validator (>=2.0.0)"] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "pydantic-core" version = "2.18.4" @@ -626,11 +528,6 @@ files = [ [package.dependencies] typing-extensions = ">=4.6.0,<4.7.0 || >4.7.0" -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "pytest" version = "8.2.2" @@ -653,11 +550,6 @@ tomli = {version = ">=1", markers = "python_version < \"3.11\""} [package.extras] dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "pytest-cov" version = "5.0.0" @@ -676,11 +568,6 @@ pytest = ">=4.6" [package.extras] testing = ["fields", "hunter", "process-tests", "pytest-xdist", "virtualenv"] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "pytest-integration" version = "0.2.3" @@ -692,11 +579,6 @@ files = [ {file = "pytest_integration-0.2.3.tar.gz", hash = "sha256:b00988a5de8a6826af82d4c7a3485b43fbf32c11235e9f4a8b7225eef5fbcf65"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "python-dateutil" version = "2.9.0.post0" @@ -711,11 +593,6 @@ files = [ [package.dependencies] six = ">=1.5" -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "pyyaml" version = "6.0.1" @@ -776,11 +653,6 @@ files = [ {file = "PyYAML-6.0.1.tar.gz", hash = "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "ruff" version = "0.4.8" @@ -807,11 +679,6 @@ files = [ {file = "ruff-0.4.8.tar.gz", hash = "sha256:16d717b1d57b2e2fd68bd0bf80fb43931b79d05a7131aa477d66fc40fbd86268"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "six" version = "1.16.0" @@ -823,84 +690,6 @@ files = [ {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - -[[package]] -name = "time-machine" -version = "2.14.1" -description = "Travel through time in your tests." -optional = false -python-versions = ">=3.8" -files = [ - {file = "time-machine-2.14.1.tar.gz", hash = "sha256:57dc7efc1dde4331902d1bdefd34e8ee890a5c28533157e3b14a429c86b39533"}, - {file = "time_machine-2.14.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:528d588d1e8ba83e45319a74acab4be0569eb141113fdf50368045d0a7d79cee"}, - {file = "time_machine-2.14.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:06e913d570d7ee3e199e3316f10f10c8046287049141b0a101197712b4eac106"}, - {file = "time_machine-2.14.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ddbbba954e9a409e7d66d60df2b6b8daeb897f8338f909a92d9d20e431ec70d1"}, - {file = "time_machine-2.14.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:72a153b085b4aee652d6b3bf9019ca897f1597ba9869b640b06f28736b267182"}, - {file = "time_machine-2.14.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3b94274abe24b6a90d8a5c042167a9a7af2d3438b42ac8eb5ede50fbc73c08db"}, - {file = "time_machine-2.14.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:364353858708628655bf9fa4c2825febd679c729d9e1dd424ff86845828bac05"}, - {file = "time_machine-2.14.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:b951b6f4b8a752ab8c441df422e21954a721a0a5276aa3814ce8cf7205aeb6da"}, - {file = "time_machine-2.14.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:be215eb63d74a3d580f7924bb4209c783fabcfb3253073f4dcb3424d57d0f518"}, - {file = "time_machine-2.14.1-cp310-cp310-win32.whl", hash = "sha256:0e120f95c17bf8e0c097fd8863a8eb24054f9b17d9b17c465694be50f8348a3a"}, - {file = "time_machine-2.14.1-cp310-cp310-win_amd64.whl", hash = "sha256:fb467d6c9e9ab615c8cf22d751d34296dacf801be323a57adeb4ff345cf72473"}, - {file = "time_machine-2.14.1-cp310-cp310-win_arm64.whl", hash = "sha256:19db257117739b2dda1d57e149bb715a593313899b3902a7e6d752c5f1d22542"}, - {file = "time_machine-2.14.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:442d42f1b0ef006f03a5a34905829a1d3ac569a5bcda64d29706e6dc60832f94"}, - {file = "time_machine-2.14.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0312b47f220e46f1bbfaded7fc1469882d9c2a27c6daf44e119aea7006b595cc"}, - {file = "time_machine-2.14.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0a39dba3033d9c28347d2db16bcb16041bbf4e9032e2b70023686b6f95deac9d"}, - {file = "time_machine-2.14.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e030d2051bb515251d7f6edd9bbcf79b2b47811e2c402aba9c126af713843d26"}, - {file = "time_machine-2.14.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:993ab140eb5678d1ee7f1197f08e4499dc8ea883ad6b8858737de70d509ec5b5"}, - {file = "time_machine-2.14.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:90725f936ad8b123149bc82a46394dd7057e63157ee11ba878164053fa5bd8ad"}, - {file = "time_machine-2.14.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:59a02c3d3b3b29e2dc3a708e775c5d6b951b0024c4013fed883f0d2205305c9e"}, - {file = "time_machine-2.14.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:4f00f67d532da82538c4dfbbddc587e70c82664f168c11e1c2915d0c85ec2fc8"}, - {file = "time_machine-2.14.1-cp311-cp311-win32.whl", hash = "sha256:27f735cba4c6352ad7bc53ce2d86b715379261a634e690b79fac329081e26fb6"}, - {file = "time_machine-2.14.1-cp311-cp311-win_amd64.whl", hash = "sha256:ee68597bd3fa5ab94633c8a9d3ebd4032091559610e078381818a732910002bc"}, - {file = "time_machine-2.14.1-cp311-cp311-win_arm64.whl", hash = "sha256:6ced9de5eff1fb37efb12984ab7b63f31f0aeadeedec4be6d0404ec4fa91f2e7"}, - {file = "time_machine-2.14.1-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:30a4a18357fa6cf089eeefcb37e9549b42523aebb5933894770a8919e6c398e1"}, - {file = "time_machine-2.14.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:d45bd60bea85869615b117667f10a821e3b0d3603c47bfd105b45d1f67156fc8"}, - {file = "time_machine-2.14.1-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:39de6d37a14ff8882d4f1cbd50c53268b54e1cf4ef9be2bfe590d10a51ccd314"}, - {file = "time_machine-2.14.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7fd7d188b4f9d358c6bd477daf93b460d9b244a4c296ddd065945f2b6193c2bd"}, - {file = "time_machine-2.14.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:99e6f013e67c4f74a9d8f57e34173b2047f2ad48f764e44c38f3ee5344a38c01"}, - {file = "time_machine-2.14.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a927d87501da8b053a27e80f5d0e1e58fbde4b50d70df2d3853ed67e89a731cf"}, - {file = "time_machine-2.14.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:c77a616561dd4c7c442e9eee8cbb915750496e9a5a7fca6bcb11a9860226d2d0"}, - {file = "time_machine-2.14.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:e7fa70a6bdca40cc4a8386fd85bc1bae0a23ab11e49604ef853ab3ce92be127f"}, - {file = "time_machine-2.14.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:d63ef00d389fa6d2c76c863af580b3e4a8f0ccc6a9aea8e64590588e37f13c00"}, - {file = "time_machine-2.14.1-cp312-cp312-win32.whl", hash = "sha256:6706eb06487354a5e219cacea709fb3ec44dec3842c6218237d5069fa5f1ad64"}, - {file = "time_machine-2.14.1-cp312-cp312-win_amd64.whl", hash = "sha256:36aa4f17adcd73a6064bf4991a29126cac93521f0690805edb91db837c4e1453"}, - {file = "time_machine-2.14.1-cp312-cp312-win_arm64.whl", hash = "sha256:edea570f3835a036e8860bb8d6eb8d08473c59313db86e36e3b207f796fd7b14"}, - {file = "time_machine-2.14.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:87e80408e6b6670e9ce33f94b1cc6b72b1a9b646f5e19f586908129871f74b40"}, - {file = "time_machine-2.14.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:c69c0cb498c86ef843cd15964714e76465cc25d64464da57d5d1318f499de099"}, - {file = "time_machine-2.14.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dc48d3934109b0bdbbdc5e9ce577213f7148a92fed378420ee13453503fe4db9"}, - {file = "time_machine-2.14.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7161cea2ff3244cc6075e365fab89000df70ead63a3da9d473983d580558d2de"}, - {file = "time_machine-2.14.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:39fceeb131e6c07b386de042ce1016be771576e9516124b78e75cbab94ae5041"}, - {file = "time_machine-2.14.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:fe508a6c43fb72fa4f66b50b14684cf58d3db95fed617177ec197a7a90427bae"}, - {file = "time_machine-2.14.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:5f3d5c21884aee10e13b00ef45fab893a43db9d59ec27271573528bd359b0ef5"}, - {file = "time_machine-2.14.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:a75e24e59f58059bbbc50e7f97aa6d126bbc2f603a8a5cd1e884beffcf130d8f"}, - {file = "time_machine-2.14.1-cp38-cp38-win32.whl", hash = "sha256:b0f8ba70fbb71d7fbc6d6adb90bed72a83db15b3318c7af0060467539b2f1b63"}, - {file = "time_machine-2.14.1-cp38-cp38-win_amd64.whl", hash = "sha256:15cf3623a4ba2bb4fce4529295570acd5f6c6b44bcbfd1b8d0756ce56c38fe82"}, - {file = "time_machine-2.14.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:bb3a2518c52aa944989b541e5297b833388eb3fe72d91eb875b21fe771597b04"}, - {file = "time_machine-2.14.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:416d94eab7723c7d8a37fe6b3b1882046fdbf3c31b9abec3cac87cf35dbb8230"}, - {file = "time_machine-2.14.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:adfbfa796dd96383400b44681eacc5ab06d3cbfad39c30878e5ead0bfdca808a"}, - {file = "time_machine-2.14.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:31e6e9bff89b7c6e4cbc169ba1d00d6c107b3abc43173b2799352b6995cf7cb2"}, - {file = "time_machine-2.14.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:107caed387438d689180b692e8d84aa1ebe8918790df83dc5e2146e60e5e0859"}, - {file = "time_machine-2.14.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:cab4abf4d1490a7da35db5a321ff8a4d4a2195f4832a792c75b626ffc4a5584c"}, - {file = "time_machine-2.14.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:fd8645b820f7895fdafbc4412d1ce376956e36ad4fd05a43269aa06c3132afc3"}, - {file = "time_machine-2.14.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:dd26039a9ffea2d5ee1309f2ec9b656d4925371c65563822d52e4037a4186eca"}, - {file = "time_machine-2.14.1-cp39-cp39-win32.whl", hash = "sha256:5e19b19d20bfbff8c97949e06e150998cf9d0a676e1641fb90597e59a9d7d5e2"}, - {file = "time_machine-2.14.1-cp39-cp39-win_amd64.whl", hash = "sha256:f5d371a5218318121a6b44c21438258b6408b8bfe7ccccb754cf8eb880505576"}, - {file = "time_machine-2.14.1-cp39-cp39-win_arm64.whl", hash = "sha256:2c774f4b603a36ca2611327c57aa8ce0d5042298da008238ee5234b31ce7b22c"}, -] - -[package.dependencies] -python-dateutil = "*" - -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "tomli" version = "2.0.1" @@ -912,11 +701,6 @@ files = [ {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "typing-extensions" version = "4.12.2" @@ -928,11 +712,6 @@ files = [ {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "tzdata" version = "2024.1" @@ -944,11 +723,6 @@ files = [ {file = "tzdata-2024.1.tar.gz", hash = "sha256:2674120f8d891909751c38abcdfd386ac0a5a1127954fbc332af6b5ceae07efd"}, ] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [[package]] name = "virtualenv" version = "20.26.2" @@ -969,12 +743,7 @@ platformdirs = ">=3.9.1,<5" docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.2,!=7.3)", "sphinx-argparse (>=0.4)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=23.6)"] test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.4)", "pytest-env (>=0.8.2)", "pytest-freezer (>=0.4.8)", "pytest-mock (>=3.11.1)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=68)", "time-machine (>=2.10)"] -[package.source] -type = "legacy" -url = "https://artifactory.statnett.no/artifactory/api/pypi/pypi_statnett_ia_virtual/simple" -reference = "artifactory" - [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "50403fe154c5a31f6fba66683e35eb8e0ee72dd43274019d86988e820ba25a91" +content-hash = "db0b5c1882ec2cb9be123c637f0b2071c9c9a0d263a4f082a690c153fd8ecea3" diff --git a/pyproject.toml b/pyproject.toml index 677b758..233b729 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,15 @@ version = "0.0.0" description = "Custom Pydantic types and validators" authors = ["Statnett Datascience "] repository = "https://gitlab.statnett.no//grammarie.git" +keywords = ["pydantic", "types", "validation", "coercion", "annotated"] +classifiers = [ + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: 3", + "Intended Audience :: Developers", + "Topic :: Software Development :: Libraries :: Python Modules", + "License :: OSI Approved :: MIT License", +] +readme = "README.md" [tool.poetry.dependencies] python = "^3.10"