Skip to content

Commit

Permalink
Merged dev-4-2-1 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vyrjana committed Mar 14, 2024
1 parent 10581fe commit 9535322
Show file tree
Hide file tree
Showing 12 changed files with 89 additions and 27 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand All @@ -29,7 +29,7 @@ jobs:
python -m pip install flake8
python -m pip install jinja2
python -m pip install -e .
python -m pip install kvxopt
python -m pip install cvxopt
- name: Lint with flake8
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 4.2.1 (2024/03/14)

- Maintenance release that updates the version requirements for dependencies.
- Support for Python 3.8 has been dropped due to minimum requirements set by one or more dependencies.
- Support for Python 3.11 and 3.12 has been added.


# 4.2.0 (2023/04/03)

- Added support for choosing between multiple approaches to suggesting the regularization parameter (lambda) in DRT methods utilizing Tikhonov regularization.
Expand Down
28 changes: 28 additions & 0 deletions LICENSES/LICENSE-Jinja.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Copyright 2007 Pallets

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5 changes: 5 additions & 0 deletions LICENSES/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
- License: MIT
- _pyimpspec_ copied code to implement linear Kramers-Kronig tests using matrix solvers.

# Jinja
- https://github.com/pallets/jinja/
- License: BSD 3-clause
- Dependency via _pyimpspec_.

# lmfit
- https://github.com/lmfit/lmfit-py
- License: BSD 3-clause
Expand Down
8 changes: 4 additions & 4 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build~=0.10
build~=1.1
flake8~=6.0
setuptools~=67.2
sphinx~=5.3
sphinx-rtd-theme~=1.2
setuptools~=69.2
sphinx~=7.2
sphinx-rtd-theme~=2.0
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dearpygui==1.8.0
pyimpspec~=4.1
requests~=2.28
dearpygui~=1.11
pyimpspec>=4.1.1, == 4.*
requests~=2.31
23 changes: 12 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,29 @@
}

dependencies = [
"dearpygui==1.8.0", # Used to implement the GUI.
"pyimpspec~=4.1", # Used for parsing, fitting, and analyzing impedance spectra.
"requests~=2.28", # Used to check package status on PyPI.
"dearpygui~=1.11", # Used to implement the GUI.
"pyimpspec>=4.1.1, == 4.*", # Used for parsing, fitting, and analyzing impedance spectra.
"requests~=2.31", # Used to check package status on PyPI.
]

dev_dependencies = [
"build~=0.10",
"build~=1.1",
"flake8~=6.0",
"setuptools~=67.2",
"sphinx~=5.3",
"sphinx-rtd-theme~=1.2",
"setuptools~=69.2",
"sphinx~=7.2",
"sphinx-rtd-theme~=2.0",
]

optional_dependencies = {
"cvxopt": "cvxopt~=1.3", # Used in the DRT calculations (TR-RBF method)
"kvxopt": "kvxopt~=1.3", # Fork of cvxopt that may provide wheels for additional platforms
"cvxpy": "cvxpy~=1.3", # Used in the DRT calculations (TR-RBF method)
"cvxpy": "cvxpy~=1.4", # Used in the DRT calculations (TR-RBF method)
"dev": dev_dependencies,
}

# The version number defined below is propagated to /src/deareis/version.py
# when running this script.
version = "4.2.0"
version = "4.2.1"

if __name__ == "__main__":
with open("requirements.txt", "w") as fp:
Expand Down Expand Up @@ -70,16 +70,17 @@
entry_points=entry_points,
install_requires=dependencies,
extras_require=optional_dependencies,
python_requires=">=3.8",
python_requires=">=3.9",
classifiers=[
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
Expand Down
2 changes: 1 addition & 1 deletion src/deareis/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# The licenses of DearEIS' dependencies and/or sources of portions of code are included in
# the LICENSES folder.

PACKAGE_VERSION: str = "4.2.0"
PACKAGE_VERSION: str = "4.2.1"
File renamed without changes.
21 changes: 21 additions & 0 deletions tests/run_gui_tests.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
:: DearEIS is licensed under the GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.html).
:: Copyright 2023 DearEIS developers
::
:: This program is free software: you can redistribute it and/or modify
:: it under the terms of the GNU General Public License as published by
:: the Free Software Foundation, either version 3 of the License, or
:: (at your option) any later version.
::
:: This program is distributed in the hope that it will be useful,
:: but WITHOUT ANY WARRANTY; without even the implied warranty of
:: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
:: GNU General Public License for more details.
::
:: You should have received a copy of the GNU General Public License
:: along with this program. If not, see <https://www.gnu.org/licenses/>.
::
:: The licenses of DearEIS' dependencies and/or sources of portions of code are included in
:: the LICENSES folder.

py -c "from deareis.program import main; from test_gui import setup_tests; setup_tests(); main()"

2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.2.0
4.2.1

0 comments on commit 9535322

Please sign in to comment.