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

Release v0.5.0 #48

Merged
merged 146 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
29f34d1
Adhere to graph language
p-snft Feb 17, 2022
06ed799
Fix doc of create_nx_graph
p-snft Mar 24, 2022
80019b6
Fix doc of FlowsWithNodes
p-snft Mar 24, 2022
9a93642
Break long lines
p-snft Mar 24, 2022
2a8037f
Fix doc of Entity superclass
p-snft Apr 6, 2022
34d89db
Replace asserts in production code
p-snft Aug 22, 2022
f9b0fb8
Fix typo
p-snft Aug 22, 2022
d21b619
Delete statement w/o effect
p-snft Aug 22, 2022
4edcfe6
Delete outdated inline "todo"
p-snft Aug 22, 2022
306f944
Remove import aliases
p-snft Aug 22, 2022
367476b
Merge branch 'dev' into fix/clean_graph_language
p-snft Aug 22, 2022
f7a2860
Merge branch 'dev' into fix/clean_graph_language
p-snft Aug 22, 2022
d44f1e2
Fix missing rename
p-snft Aug 22, 2022
0f259a7
Remove import aliases
p-snft Aug 22, 2022
455f7c4
Avoid using term Entity for Nodes
p-snft Aug 23, 2022
062c771
Fix extlinks configuration
p-snft Sep 2, 2022
3c0126a
Fix link to blinker docs
p-snft Sep 2, 2022
8d2814f
Fix small doc format errors
p-snft Sep 2, 2022
c5afca6
Fix format of imports
p-snft Sep 2, 2022
10fce67
Update link for issue/PR
p-snft Sep 2, 2022
9197041
Merge pull request #20 from oemof/fix/docs
p-snft Sep 2, 2022
9aaebcf
Merge branch 'dev' into fix/clean_graph_language
p-snft Sep 3, 2022
e831047
Fix order of imports
p-snft Sep 3, 2022
a7b4530
Remove temporarily_modifies_registry decorator
p-snft Sep 3, 2022
586a445
Remove automatic registration of Entities
p-snft Sep 3, 2022
107c2fc
Adhere to PEP8
p-snft Sep 3, 2022
d28e6f5
Remove outdated "core" from module names
p-snft Sep 5, 2022
6da3240
Fail CI pipeline on doc problems
p-snft Sep 5, 2022
5409645
Create v0.5 alpha release
p-snft Sep 27, 2022
cdde986
Merge pull request #14 from oemof/fix/clean_graph_language
p-snft May 12, 2023
3383b27
Remove/fix broken links
p-snft Jun 28, 2023
d30199c
Remove doc of removed functionality
p-snft Jun 28, 2023
3edf0d0
Fix unit tests are not run
p-snft Jun 30, 2023
6c1f30f
Update Python version for GitHub runner
p-snft Jun 30, 2023
e8b1a33
Replace nose specific setup by setup_method
p-snft Jun 30, 2023
6705b33
Replace nose.eq_ by vanilla assert
p-snft Jun 30, 2023
a1c2e62
Replace nose functions by pytest ones
p-snft Jun 30, 2023
c84453e
Replace deprecated --strict by --strict-markers
p-snft Jun 30, 2023
81fc780
Ignore .vscode
p-snft Jun 30, 2023
24bebf3
Adhere to Black
p-snft Jun 30, 2023
63718a9
Merge pull request #24 from oemof/fix/unit_tests
p-snft Jun 30, 2023
8a2dbe5
Re-add coveralls icon
p-snft Jun 30, 2023
09866c7
Split network.network into submodules
p-snft Jul 1, 2023
de3510e
Avoid redefining built-in 'input'
p-snft Jul 1, 2023
db9cf58
Move flow bookkeeping to Node
p-snft Jul 1, 2023
3dd9691
Add code quality to CHANGELOG
p-snft Sep 19, 2023
9879bb6
Simplify strings using format strings
p-snft Sep 19, 2023
966ea76
Fix format strings
p-snft Sep 19, 2023
a40b949
Merge remote-tracking branch 'origin/v0.5' into dev
p-snft Sep 27, 2023
3a095ee
Merge branch 'dev' into revision/network_submodule
p-snft Sep 27, 2023
4ae2d62
Expose Edge in API
p-snft Sep 27, 2023
012074c
Sort imports alphabetically
p-snft Sep 27, 2023
35c147a
Delete .cookiecutterrc
p-snft Sep 27, 2023
df2ad3d
Bump version number
p-snft Sep 27, 2023
34f8146
Harmonize test scheme with solph
p-snft Sep 27, 2023
131fe5b
Merge branch 'dev' into revision/network_submodule
p-snft Sep 27, 2023
8a2204b
Merge pull request #25 from oemof/revision/network_submodule
p-snft Sep 27, 2023
d9dddb6
Group Grouping tests
p-snft Sep 27, 2023
bb0640d
Remove unused Fixture
p-snft Sep 27, 2023
6cc9c39
Fix link to codacy in readme
p-snft Sep 27, 2023
0f08a0b
Merge branch 'dev' into revision/tests
p-snft Sep 27, 2023
9200961
Adhere to Black
p-snft Sep 27, 2023
6885fd4
Refactor error message for wrong Node in-/outputs
p-snft Sep 27, 2023
86f3b61
Add pep8speaks config
p-snft Sep 27, 2023
d9e9812
Merge branch 'dev' into revision/tests
p-snft Sep 27, 2023
681ef72
Adhere to Black
p-snft Sep 27, 2023
9945fbd
Add all .*.yml to Manifest
p-snft Sep 27, 2023
3311d3f
Merge branch 'dev' into revision/tests
p-snft Sep 27, 2023
f5fb86c
Split ES grouping tests
p-snft Sep 27, 2023
3b03c28
Adhere to Black
p-snft Sep 27, 2023
0c49337
Adhere to Black
p-snft Sep 27, 2023
743cfa3
Adhere to Black
p-snft Sep 27, 2023
f5bba34
Merge branch 'dev' into revision/tests
p-snft Sep 27, 2023
cd040ca
Add simple test for adding Nodes and Flows
p-snft Sep 27, 2023
d5533fa
Merge pull request #26 from oemof/revision/tests
p-snft Sep 28, 2023
1bb685d
Provide API to add Flows between existing Nodes
p-snft Sep 28, 2023
6ca49bb
Adhere to Black
p-snft Sep 28, 2023
d7e3013
Adhere to Black
p-snft Sep 28, 2023
c691376
Use ideomatic typecheck
p-snft Sep 28, 2023
fdfac06
Test that no flows are removed when adding new
p-snft Sep 29, 2023
2c298a7
Adjust up documentation of Node and Entity
p-snft Sep 29, 2023
3e25c73
Merge branch 'dev' into features/add_flows
p-snft Sep 29, 2023
1effd37
Move Node functionality from Entity to Node
p-snft Sep 29, 2023
8a15815
Adhere to Black
p-snft Sep 29, 2023
0e0237b
Deprecate child classes of Node
p-snft Sep 29, 2023
2e2a562
Adhere to Black
p-snft Sep 29, 2023
b445e88
Revert changes in Node
p-snft Oct 6, 2023
95ce2a0
Revert addition of now unused function
p-snft Oct 6, 2023
48105fd
Document attributes inputs/outputs of Node
p-snft Oct 10, 2023
a50ad84
Fix inconsistency in docstring
p-snft Oct 10, 2023
c81809d
Merge pull request #28 from oemof/features/add_flows
p-snft Oct 10, 2023
dc5e751
Merge pull request #31 from oemof/revision/deprecate_node_child_classes
p-snft Oct 10, 2023
307beb4
Bump version number
p-snft Oct 10, 2023
d2e4bc2
Expose Node in public API
p-snft Oct 11, 2023
ef892bb
Bump version number
p-snft Oct 11, 2023
11df64e
Expose Entity in API
p-snft Oct 11, 2023
36e327c
Bump version number
p-snft Oct 11, 2023
e9f3105
Fix deprecation warnings
p-snft Oct 11, 2023
78927aa
Bump version number
p-snft Oct 11, 2023
5d1e281
Simplify Entity.label
p-snft Oct 19, 2023
e4bf11b
Introduce Entity.custom_properties
p-snft Oct 19, 2023
82190e7
Adhere to PEP8
p-snft Oct 19, 2023
7e105e2
Allow Entity.label to be int(0)
p-snft Oct 19, 2023
03600df
Add test for integer labels and Node comparission
p-snft Oct 19, 2023
a7426f1
Adhere to Black
p-snft Oct 19, 2023
a1d53e1
Force Entity.custom_properties to be a keyword argument
p-snft Oct 19, 2023
66a36f6
Document Entity.custom_properties
p-snft Oct 19, 2023
7aa6b3a
Add Entity.custom_properties to changelog
p-snft Oct 19, 2023
aa66673
Merge pull request #32 from oemof/revision/custom_properties
p-snft Oct 20, 2023
9e6afd6
Merge remote-tracking branch 'origin/dev' into revision/graph_language
p-snft Oct 20, 2023
f0218e8
Make energy_system.nodes a dict
p-snft Oct 27, 2023
bb2d9d6
Adhere to Black
p-snft Oct 27, 2023
feeb651
Adapt create_nx_graph to last changes
p-snft Oct 28, 2023
3ab6b9b
Improve backwards compatibility
p-snft Nov 9, 2023
41229ed
Adhere to Black
p-snft Nov 9, 2023
4f5973f
Merge pull request #30 from oemof/revision/graph_language
p-snft Dec 14, 2023
4e82677
Remove __slots__ and corresponding test
p-snft Dec 14, 2023
84f45a4
Adhere to Black
p-snft Dec 14, 2023
55fce7d
Remove setter EnergySystem.nodes
p-snft Dec 14, 2023
056b0df
Merge pull request #35 from oemof/feature/node_dict
p-snft Dec 14, 2023
86c7641
Add test for initialisation of Entity
p-snft Dec 14, 2023
0b77f0a
Merge pull request #39 from oemof/revision/stop-using-slots
p-snft Dec 14, 2023
1fe963e
Test Node input check
p-snft Dec 14, 2023
e449b52
Make kwargs explicit
p-snft Dec 14, 2023
09e3044
Fix import order
p-snft Dec 14, 2023
51397ff
Add test for EnergySystem init with nodes
p-snft Dec 14, 2023
12b665a
Workaround hashing issue with unset label
p-snft Dec 19, 2023
384d164
Adhere to Black
p-snft Dec 19, 2023
c364657
Merge pull request #40 from oemof/revision/explicit_kwargs
p-snft Dec 19, 2023
b0cf996
Require label of Node to be given
p-snft Dec 19, 2023
4b1266d
Adhere to Black
p-snft Dec 19, 2023
00c5e42
Disuse Bus in tests
p-snft Dec 19, 2023
30f0367
Merge branch 'dev' into fix/encourage-constant-labels
p-snft Dec 19, 2023
94b99e6
Document except block in Entity.label
p-snft Dec 19, 2023
ee63186
Merge pull request #43 from oemof/fix/encourage-constant-labels
p-snft Dec 19, 2023
7b4d44d
Move to setup-python@v5
p-snft Dec 22, 2023
e246c86
Merge pull request #44 from oemof/revision/github_workflows
p-snft Dec 22, 2023
5e58e31
Add warning for experimental node access API
p-snft Jan 11, 2024
67fe5a4
List oemof.tools as a dependency
p-snft Jan 11, 2024
ee184d5
Adhere to Black
p-snft Jan 11, 2024
4ad9e30
Adhere to Black
p-snft Jan 11, 2024
af3b0a9
Refactor for improved readability
p-snft Jan 11, 2024
b550134
Fix warnings
p-snft Jan 11, 2024
21d727f
Merge pull request #46 from oemof/feature/node_dict_warning
p-snft Jan 11, 2024
e5e1a7d
Release v0.5.0
p-snft Jan 12, 2024
01b0657
Merge pull request #47 from oemof/dev
p-snft Jan 12, 2024
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
69 changes: 0 additions & 69 deletions .cookiecutterrc

This file was deleted.

8 changes: 3 additions & 5 deletions .github/workflows/tox_pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ on:
- master
- dev
pull_request:
branches:
- master
- dev

workflow_dispatch:
schedule:
- cron: "0 5 * * 6" # 5:00 UTC every Saturday
Expand All @@ -18,14 +16,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v1
- name: Install xmllint
run: sudo apt install coinor-cbc
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ htmlcov
.idea
*.iml
*.komodoproject
.vscode

# Complexity
output/*.html
Expand Down
11 changes: 11 additions & 0 deletions .pep8speaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# File : .pep8speaks.yml

scanner:
diff_only: True
linter: pycodestyle # Other option is flake8

pycodestyle: # Same as scanner.linter value.
max-line-length: 79 # Default in PEP 8
ignore: # Errors and warnings to ignore
- W503 # line break before binary operator
- E203
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ Changelog
* Improved testing
* Explicitly defined API


0.5.0
-----

* Improved code quality
* Add Entity.custom_properties
* Simplify node access (experimental: energy_system.node[label])
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ To set up `oemof.network` for local development:

Now you can make your changes locally.

4. When you're done making changes run all the checks and docs builder with `tox <https://tox.readthedocs.io/en/latest/install.html>`_ one command::
4. When you're done making changes run all the checks and docs builder with `tox <https://tox.wiki/en/latest/installation.html>`_ one command::

tox

Expand Down
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include .editorconfig

include AUTHORS.rst
include CHANGELOG.rst
include CITATION.cff
include CONTRIBUTING.rst
include LICENSE
include README.rst
Expand All @@ -18,6 +19,7 @@ recursive-include docs *.rst
recursive-include tests *.py


include tox.ini .travis.yml .appveyor.yml .readthedocs.yml
include tox.ini
include *.yml

global-exclude *.py[cod] __pycache__/* *.so *.dylib *.swp
6 changes: 1 addition & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,12 @@ Overview
:target: https://readthedocs.org/projects/oemof-network
:alt: Documentation Status

.. |travis| image:: https://api.travis-ci.org/oemof/oemof-network.svg?branch=master
:alt: Travis-CI Build Status
:target: https://travis-ci.org/oemof/oemof-network

.. |coveralls| image:: https://coveralls.io/repos/oemof/oemof-network/badge.svg?branch=dev&service=github
:alt: Coverage Status
:target: https://coveralls.io/r/oemof/oemof-network?branch=dev

.. |codacy| image:: https://api.codacy.com/project/badge/Grade/39b648d0de3340da912c3dc48688a7b5
:target: https://www.codacy.com/gh/oemof/oemof-network?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=oemof/oemof.network&amp;utm_campaign=Badge_Grade
:target: https://app.codacy.com/gh/oemof/oemof-network
:alt: Codacy Code Quality Status

.. |codeclimate| image:: https://codeclimate.com/github/oemof/oemof-network/badges/gpa.svg
Expand Down
2 changes: 1 addition & 1 deletion ci/templates/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ deps =
isort
skip_install = true
commands =
python setup.py check --strict --metadata --restructuredtext
python setup.py check --strict-markers --metadata --restructuredtext
check-manifest {toxinidir}
flake8 src tests setup.py
isort --verbose --check-only --diff --recursive src tests setup.py
Expand Down
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
source_suffix = ".rst"
master_doc = "index"
project = "oemof.network"
year = "2020"
author = "Stephan Günther"
year = "2023"
author = "oemof developer group"
copyright = "{0}, {1}".format(year, author)
version = release = "0.4.0"
version = release = "0.5.0"

pygments_style = "trac"
templates_path = ["."]
extlinks = {
"issue": ("https://github.com/oemof/oemof.network/issues/%s", "#"),
"pr": ("https://github.com/oemof/oemof.network/pull/%s", "PR #"),
"issue": ("https://github.com/oemof/oemof-network/issues/%s", "#%s"),
"pr": ("https://github.com/oemof/oemof-network/pull/%s", "PR #%s"),
}
# on_rtd is whether we are on readthedocs.org
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ python_files =

addopts =
-ra
--strict
--strict-markers
--ignore=docs/conf.py
--ignore=setup.py
--ignore=ci
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def read(*names, **kwargs):

setup(
name="oemof.network",
version="0.4.0",
version="0.5.0",
license="MIT",
description="The network/graph submodules of oemof.",
long_description=long_description,
Expand Down Expand Up @@ -77,7 +77,7 @@ def read(*names, **kwargs):
# eg: 'keyword1', 'keyword2', 'keyword3',
],
python_requires=">=3.7",
install_requires=["pandas", "blinker", "dill", "networkx"],
install_requires=["pandas", "blinker", "dill", "networkx", "oemof.tools"],
extras_require={
"dev": ["pytest"],
# eg:
Expand Down
20 changes: 12 additions & 8 deletions src/oemof/network/__init__.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
__version__ = "0.4.0"
__version__ = "0.5.0"

from . import energy_system
from . import graph
from . import groupings
from . import network
from .network import (
Bus,
Component,
Sink,
Source,
Transformer,
)
from .network import Bus
from .network import Component
from .network import Edge
from .network import Entity
from .network import Node
from .network import Sink
from .network import Source
from .network import Transformer

__all__ = [
"Bus",
"Component",
"Edge",
"Entity",
"energy_system",
"graph",
"groupings",
"network",
"Node",
"Sink",
"Source",
"Transformer",
Expand Down
Loading
Loading