Skip to content

Commit

Permalink
Merge branch 'dev' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ddceruti authored Jul 12, 2024
2 parents e8a7d3a + 9c4ea83 commit f8e8e38
Show file tree
Hide file tree
Showing 30 changed files with 269 additions and 703 deletions.
24 changes: 0 additions & 24 deletions .bumpversion.cfg

This file was deleted.

71 changes: 0 additions & 71 deletions .cookiecutterrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS, Debian, Ubuntu, Windows10]
- Python version [e.g. 3.8]
- Python version [e.g. 3.11]

**Additional context**
Add any other context about the problem here.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11

- name: Install Python dependencies
run: pip install black flake8

- name: Run linters
uses: samuelmeuli/lint-action@v1
uses: wearerequired/lint-action@v2
with:
github_token: ${{ secrets.github_token }}
# Enable linters
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,23 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.9]
python-version: [3.11]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- 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
run: |
python -m pip install --upgrade pip setuptools setuptools_scm twine wheel
python -m pip install --upgrade pip
python -m pip install -e .[build]
- name: Create packages
run: python setup.py sdist bdist_wheel
run: python -m build .
- name: Run twine check
run: twine check dist/*
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: tox-gh-actions-dist
path: dist
15 changes: 7 additions & 8 deletions .github/workflows/tox_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,24 @@ jobs:
- name: Git clone
uses: actions/checkout@v2

- name: Set up Python ${{ env.default_python || '3.9' }}
uses: actions/setup-python@v2
- name: Set up Python ${{ env.default_python || '3.11' }}
uses: actions/setup-python@v5
with:
python-version: "${{ env.default_python || '3.9' }}"
python-version: "${{ env.default_python || '3.11' }}"

- name: Pip cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('tox.ini', 'setup.py') }}
key: ${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('tox.ini', 'pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.toxenv }}-
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools wheel
python -m pip install -U tox
python -m pip install pip --upgrade
python -m pip install tox
- name: Run ${{ matrix.toxenv }}
run: python -m tox -e ${{ matrix.toxenv }}
12 changes: 5 additions & 7 deletions .github/workflows/tox_pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,22 @@ on:
- cron: "0 5 * * 6" # 5:00 UTC every Saturday

jobs:
build:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v1
- name: Install xmllint
run: sudo apt install coinor-cbc
- uses: actions/checkout@v4
- 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
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions coverage coveralls
python -m pip install tox tox-gh-actions coverage coveralls
- name: Test with tox
run: tox

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ docs/_build
.build
.ve
.env
.venv/
.cache
.pytest
.benchmarks
.bootstrap
.appveyor.token
*.bak
venv/

# Mypy Cache
.mypy_cache/
4 changes: 4 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.8"
sphinx:
configuration: docs/conf.py
formats: all
Expand Down
23 changes: 13 additions & 10 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ Authors

(alphabetic order)

* Birgit Schachler
* Caroline Möller
* Guido Plessmann
* Hendrik Huyskens
* Jann Launer
* Patrik Schönfeldt
* Pyosch
* Steffen Wehkamp
* Stephen Bosch
* Uwe Krien
* Amedeo Ceruti
* Birgit Schachler
* Caroline Möller
* Florian Maurer
* Francesco Witte
* Guido Plessmann
* Hendrik Huyskens
* Jann Launer
* Patrik Schönfeldt
* Pyosch
* Steffen Wehkamp
* Stephen Bosch
* Uwe Krien
18 changes: 15 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
Changelog
=========

v0.1.10 (?-?-?)
v0.2.1 (yyyy-mm-dd)
+++++++++++++++++++++++++

New features
############
*

Bug fixes
#########
*

Other changes
#############



v0.2.0 (2024-06-27)
+++++++++++++++++++++++++

Bug fixes
#########
* Raise error for non supported shlp_type
in non-commercial buildings

Other changes
#############
* Adhere to packaging standards
* Raise errors in sigmoid parameter queries


v0.1.9 (2023-03-18)
Expand Down
22 changes: 0 additions & 22 deletions MANIFEST.in

This file was deleted.

6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Overview
- | |version| |wheel| |supported-versions| |supported-implementations| |commits-since| |packaging|


.. |tox-pytest| image:: https://github.com/oemof/demandlib/workflows/tox%20pytests/badge.svg?branch=dev
.. |tox-pytest| image:: https://github.com/oemof/demandlib/workflows/tox%20pytests/badge.svg
:target: https://github.com/oemof/demandlib/actions?query=workflow%3A%22tox+checks%22

.. |tox-checks| image:: https://github.com/oemof/demandlib/workflows/tox%20checks/badge.svg?branch=dev
Expand Down Expand Up @@ -48,9 +48,9 @@ Overview
:alt: Supported implementations
:target: https://pypi.org/project/demandlib

.. |commits-since| image:: https://img.shields.io/github/commits-since/oemof/demandlib/v0.1.8.svg
.. |commits-since| image:: https://img.shields.io/github/commits-since/oemof/demandlib/latest/dev
:alt: Commits since latest release
:target: https://github.com/oemof/demandlib/compare/v0.1.9...dev
:target: https://github.com/oemof/demandlib/compare/master...dev



Expand Down
Loading

0 comments on commit f8e8e38

Please sign in to comment.