-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from FZJ-IEK3-VSA/fix_depreciation
Fix depreciation
- Loading branch information
Showing
20 changed files
with
173 additions
and
68 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
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# This workflow will install Python dependencies and run tests and lint with a single version of Python | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
# Based on David Neuroth pylpg | ||
|
||
name: Test on Push and Pull | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
PythonAndOsTest: | ||
name: Test for Python ${{matrix.python-version}} on ${{matrix.os}} | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest","ubuntu-20.04", "macos-latest","macos-13","macos-12", "windows-latest","windows-2019"] | ||
python-version: [ "3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{matrix.python-version}} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest | ||
pip install pytest-cov | ||
pip install codecov | ||
pip install -r requirements.txt | ||
pip install --no-cache-dir -e . | ||
- name: Test with pytest | ||
working-directory: ./test/ | ||
run: | | ||
pytest | ||
codecov | ||
NumpyTest: | ||
name: Test for numpy ${{matrix.python-numpy-version.numpy}} and python ${{matrix.python-numpy-version.python}} | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest","ubuntu-20.04", "macos-latest","macos-13","macos-12", "windows-latest","windows-2019"] | ||
python-numpy-version: [ {python : 3.9,numpy : 1.25}, {python : 3.9,numpy : 1.26},{python : 3.9,numpy : 2.0}] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{matrix.python-numpy-version.python}} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install numpy==${{matrix.python-numpy-version.numpy}} --upgrade pip | ||
pip install pytest | ||
pip install pytest-cov | ||
pip install codecov | ||
pip install -r requirements.txt | ||
pip install --no-cache-dir -e . | ||
- name: Test with pytest | ||
working-directory: ./test/ | ||
run: | | ||
pytest | ||
codecov |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
scikit-learn>=0.0 | ||
pandas>=0.18.1,<3.0 | ||
numpy>=1.11.0,<2.0 | ||
pandas>=2.0.3 | ||
numpy>=1.20.0 | ||
pyomo>=6.4.3 | ||
networkx | ||
tqdm | ||
|
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 |
---|---|---|
|
@@ -2,9 +2,10 @@ | |
|
||
# Testing | ||
pytest | ||
sphinx | ||
pytest-cov | ||
|
||
# Documentation | ||
sphinx | ||
sphinx-autobuild | ||
sphinx_book_theme | ||
|
||
|
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 |
---|---|---|
|
@@ -8,14 +8,15 @@ | |
|
||
setuptools.setup( | ||
name="tsam", | ||
version="2.3.2", | ||
version="2.3.3", | ||
author="Leander Kotzur, Maximilian Hoffmann", | ||
author_email="[email protected], [email protected]", | ||
description="Time series aggregation module (tsam) to create typical periods", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/FZJ-IEK3-VSA/tsam", | ||
include_package_data=True, | ||
python_requires='>=3.9', | ||
packages=setuptools.find_packages(), | ||
install_requires=required_packages, | ||
setup_requires=["setuptools-git"], | ||
|
@@ -28,11 +29,7 @@ | |
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Topic :: Scientific/Engineering :: Mathematics", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
], | ||
|
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
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
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,11 +0,0 @@ | ||
import sys | ||
|
||
if not sys.warnoptions: | ||
import warnings | ||
|
||
warnings.filterwarnings( | ||
action="ignore", | ||
category=FutureWarning, | ||
append=True, | ||
message=r".*The previous implementation of stack is deprecated and will be removed in a future version of pandas.*", | ||
) | ||
Oops, something went wrong.