Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Code from p2l repo #4

Merged
merged 2 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev_requirements/requirements-tests.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# specific requirements for the tox tests env
pytest
pytest-asyncio
14 changes: 10 additions & 4 deletions dev_requirements/requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
#
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile requirements-tests.in
# pip-compile '.\dev_requirements\requirements-tests.in'
#
colorama==0.4.6
# via pytest
iniconfig==2.0.0
# via pytest
packaging==23.0
# via pytest
pluggy==1.0.0
# via pytest
pytest==7.4.2
# via -r dev_requirements/requirements-tests.in
# via
# -r .\dev_requirements\requirements-tests.in
# pytest-asyncio
pytest-asyncio==0.21.1
# via -r .\dev_requirements\requirements-tests.in
2 changes: 2 additions & 0 deletions dev_requirements/requirements-type_check.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# specific requirements for the tox type_check environment
mypy
types-pytz
types-python-dateutil
14 changes: 9 additions & 5 deletions dev_requirements/requirements-type_check.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile requirements-type_check.in
# pip-compile '.\dev_requirements\requirements-type_check.in'
#
mypy==1.5.1
# via -r dev_requirements/requirements-type_check.in
# via -r .\dev_requirements\requirements-type_check.in
mypy-extensions==1.0.0
# via mypy
typing-extensions==4.5.0
types-python-dateutil==2.8.19.14
# via -r .\dev_requirements\requirements-type_check.in
types-pytz==2023.3.1.1
# via -r .\dev_requirements\requirements-type_check.in
typing-extensions==4.8.0
# via mypy
17 changes: 16 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
]
dependencies = [] # add all the dependencies from requirements.in here, too
dependencies = [
"bomf",
"pvframework",
"ibims",
"python-dateutil",
"pydantic[email]",
"more_itertools",
"pytz",
"schwifty",
] # add all the dependencies from requirements.in here, too
dynamic = ["readme", "version"]

[project.urls]
Expand Down Expand Up @@ -56,3 +65,9 @@ exclude = ["/unittests"]
[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]

[tool.pytest.ini_options]
# When the mode is auto, all discovered async tests are considered asyncio-driven
# even if they have no @pytest.mark.asyncio marker.
# https://github.com/pytest-dev/pytest-asyncio#auto-mode
asyncio_mode = "auto"
8 changes: 8 additions & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bomf
pvframework
ibims
python-dateutil
pydantic[email]
more_itertools
pytz
schwifty
Comment on lines +1 to +8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diesmal aber pyproject.toml, amiright?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ja, ist mir auch grade aufgefallen ^^

79 changes: 78 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,82 @@
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile requirements.in
# pip-compile '.\requirements.in'
#
annotated-types==0.5.0
# via pydantic
attrs==23.1.0
# via bomf
bidict==0.22.1
# via
# bomf
# pvframework
bo4e==0.5.6
# via
# bomf
# ibims
bomf==0.8.0
# via
# -r .\requirements.in
# ibims
dnspython==2.4.2
# via email-validator
email-validator==2.0.0.post2
# via pydantic
frozendict==2.3.8
# via
# bomf
# pvframework
ibims==0.0.8
# via -r .\requirements.in
idna==3.4
# via email-validator
injector==0.21.0
# via bomf
iso3166==2.1.1
# via
# bo4e
# schwifty
more-itertools==10.1.0
# via -r .\requirements.in
networkx==3.1
# via
# bomf
# pvframework
pvframework==0.0.2
# via
# -r .\requirements.in
# bomf
pycountry==22.3.5
# via schwifty
pydantic[email]==2.3.0
# via
# -r .\requirements.in
# bo4e
# bomf
pydantic-core==2.6.3
# via pydantic
pyhumps==3.8.0
# via bo4e
python-dateutil==2.8.2
# via -r .\requirements.in
python-generics==0.0.2
# via bomf
pytz==2023.3.post1
# via -r .\requirements.in
schwifty==2023.6.0
# via -r .\requirements.in
six==1.16.0
# via python-dateutil
typeguard==4.1.5
# via
# bomf
# pvframework
typing-extensions==4.8.0
# via
# pydantic
# pydantic-core
# typeguard

# The following packages are considered to be unsafe in a requirements file:
# setuptools
13 changes: 6 additions & 7 deletions src/pvtool/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"""
src contains all your business logic
This package provides `ValidationManager`s to validate data sets from `ibims`. Currently, only customer, resource and
network data sets are supported.
The `ValidationManager`s are provided through `injector.Module`s.
"""


def return_foo() -> str:
"""
returns foo (this is just to have some business logic and a non null coverage ;)
"""
return "foo"
from .customer_loader import ValidationManagerProviderCustomer
from .network_loader import ValidationManagerProviderNetwork
from .resource_loader import ValidationManagerProviderResource
Loading
Loading