-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into kt/availability
- Loading branch information
Showing
10 changed files
with
362 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,19 @@ on: | |
branches: | ||
- main | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
env: | ||
DEFAULT_PYTHON: "3.12" | ||
DEFAULT_OS: ubuntu-latest | ||
|
||
jobs: | ||
pytest: | ||
strategy: | ||
matrix: | ||
python-version: ["3.11", "3.12"] | ||
os: [ubuntu-latest, windows-latest] | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -31,20 +34,16 @@ jobs: | |
python -m pip install '.[dev]' | ||
- name: Running package tests | ||
run: | | ||
python -m pytest -vvl | ||
python -m pytest -vvl --cov --cov-report=xml | ||
# - name: Coverage comment | ||
# id: coverage_comment | ||
# uses: py-cov-action/python-coverage-comment-action@v3 | ||
# - name: codecov | ||
# uses: codecov/[email protected] | ||
# if: ${{ matrix.os == env.DEFAULT_OS && matrix.python-version == env.DEFAULT_PYTHON }} | ||
# with: | ||
# GITHUB_TOKEN: ${{ github.token }} | ||
# | ||
# - name: Store Pull Request comment to be posted | ||
# uses: actions/upload-artifact@v4 | ||
# if: steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true' | ||
# with: | ||
# name: python-coverage-comment-action | ||
# path: python-coverage-comment-action.txt | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# name: r2x-test | ||
# fail_ci_if_error: false | ||
# verbose: true | ||
|
||
pre-commit: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.version] | ||
path = "src/r2x/__version__.py" | ||
|
||
[project] | ||
name = "r2x" | ||
version = "v1.0.0" | ||
dynamic = ["version"] | ||
authors = [ | ||
{ name = "Pedro Sanchez", email = "[email protected]" }, | ||
{ name = "Obika Kodi", email = "[email protected]" }, | ||
|
@@ -13,14 +16,20 @@ authors = [ | |
description = "ReEDS to X parser" | ||
requires-python = ">=3.11" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Topic :: Software Development :: Build Tools", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = [ | ||
"jsonschema~=4.23", | ||
"loguru~=0.7.2", | ||
"pandas~=2.2", | ||
"infrasys>=0.1.0", | ||
"plexosdb>=0.0.2", | ||
"polars~=1.1.0", | ||
"pyyaml~=6.0.1", | ||
"rich~=13.7.1", | ||
|
@@ -65,21 +74,6 @@ ignore_missing_imports=true | |
module = "polars" | ||
follow_imports = "skip" | ||
|
||
# Setuptools configuration | ||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
include = ["*"] | ||
|
||
# Setuptools configuration | ||
[tool.setuptools.dynamic] | ||
readme = { file = ["README.md"], content-type = "text/markdown" } | ||
|
||
[tool.setuptools.package-data] | ||
"*" = ["*.json", "*.csv", "*.xml", ".sql"] | ||
|
||
[tool.ruff] | ||
line-length = 110 | ||
target-version = "py311" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# This file containts the version # noqa: D100 | ||
__version__ = "v0.5.2" | ||
__version__ = "v1.0.0rc0" | ||
__data_model_version__ = "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,7 @@ class ModelError(Exception): | |
|
||
class MultipleFilesError(Exception): | ||
pass | ||
|
||
|
||
class ParserError(Exception): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.