Skip to content

Commit 6a1845e

Browse files
authored
Merge pull request #619 from IN-CORE/release-1.20.0
Release 1.20.0
2 parents 63a3886 + 7a1974e commit 6a1845e

File tree

289 files changed

+15782
-8825
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+15782
-8825
lines changed

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 180
3+
extend-ignore = E203
4+
exclude = __init__.py

.github/workflows/conda.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
shell: bash -l {0}
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222

2323
- name: get release info
2424
id: release_info
@@ -40,7 +40,7 @@ jobs:
4040
fi
4141
4242
- name: Cache conda
43-
uses: actions/cache@v2
43+
uses: actions/cache@v4
4444
env:
4545
# Increase this value to reset cache if environment.yml has not changed
4646
CACHE_NUMBER: 0

.github/workflows/doc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131
# checkout source code
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v4
3333

3434
# calculate some variables that are used later
3535
- name: version information
@@ -84,4 +84,4 @@ jobs:
8484
username: ${{ secrets.HUB_USERNAME }}
8585
password: ${{ secrets.HUB_PASSWORD }}
8686
tags: "${{ env.TAGS }}"
87-
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1
87+
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1

.github/workflows/pypi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717

1818
- name: get release info
1919
id: release_info
@@ -50,7 +50,7 @@ jobs:
5050
pip install -r requirements.txt
5151
5252
- name: Cache pip
53-
uses: actions/cache@v2
53+
uses: actions/cache@v4
5454
with:
5555
# This path is specific to Ubuntu
5656
path: ~/.cache/pip
@@ -66,7 +66,7 @@ jobs:
6666
6767
- name: Publish distribution to PyPI
6868
if: github.event_name == 'release'
69-
uses: pypa/gh-action-pypi-publish@master
69+
uses: pypa/gh-action-pypi-publish@release/v1
7070
with:
7171
password: ${{ env.TOKEN }}
7272
repository_url: ${{ env.REPO_URL }}

.github/workflows/pytests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
name: Python ${{ matrix.vars.python-version }} Test
2020
steps:
2121
- name: Checkout source code
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
2323

2424
- name: Cache conda
25-
uses: actions/cache@v2
25+
uses: actions/cache@v4
2626
env:
2727
# Increase this value to reset cache if environment.yml has not changed
2828
CACHE_NUMBER: 0

.github/workflows/requirements.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323

2424
# check all requirements
2525
- name: requirements check

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: 23.11.0
4+
hooks:
5+
- id: black
6+
- repo: https://github.com/PyCQA/flake8
7+
rev: 6.1.0
8+
hooks:
9+
- id: flake8
10+
exclude: 'pyincore/analyses/(joplincge|saltlakecge|seasidecge|galvestoncge)/.*|docs/*'

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
9+
## [1.20.0] - 2024-10-24
10+
11+
### Fixed
12+
- Fixed Sphinx autodoc skipping class methods with custom decorators. [#518](https://github.com/IN-CORE/pyincore/issues/518)
13+
- Pyomo version fixed to fix indp solver failure [#585](https://github.com/IN-CORE/pyincore/issues/585)
14+
- Uploaded raster files doesn't respect the order [#614](https://github.com/IN-CORE/pyincore/issues/614)
15+
- Fixed the pypi publish of the package [#621](https://github.com/IN-CORE/pyincore/issues/621)
16+
17+
### Changed
18+
- Support Interdependent recovery of residential buildings and households [#606](https://github.com/IN-CORE/pyincore/pull/606)
19+
- Remove unused insecure IN-CORE client [#581](https://github.com/IN-CORE/pyincore/issues/581)
20+
- Update GH actions to use the latest version [#623](https://github.com/IN-CORE/pyincore/issues/623)
21+
22+
### Added
23+
- Apply Black formatter [#589](https://github.com/IN-CORE/pyincore/issues/589)
24+
- Equity Metric Analysis [#608](https://github.com/IN-CORE/pyincore/issues/608)
25+
- Internal client connecting to the IN-CORE services [#609](https://github.com/IN-CORE/pyincore/issues/609)
26+
- MlEnabledCgeJoplin analysis with documentation [#588](https://github.com/IN-CORE/pyincore/issues/588)
27+
28+
829
## [1.19.0] - 2024-06-12
930

1031
### Changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ Please use pip for installing pyincore at your discretion.
4747
**Prerequisite**
4848

4949
* GDAL C library must be installed to install pyincore. (for Ubuntu, **gdal-bin** and **libgdal-dev**)
50-
* ipopt executable must be installed to run some analyses such as seaside CGE, joplin CGE, etc.
50+
* ipopt executable must be installed to run some analyses such as seaside CGE, joplin CGE, etc.
51+
* For developers, pre-install must be installed. If not, run `brew install pre-commit` or `pip install pre-commit`.
5152

5253
To install **pyincore** package, run
5354

docs/source/conf.py

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@
2020
import os
2121
import sys
2222

23-
sys.path.insert(0, os.path.abspath('.'))
24-
sys.path.insert(0, os.path.abspath('../..'))
25-
sys.path.insert(0, os.path.abspath('../../pyincore'))
26-
sys.path.insert(0, os.path.abspath('../../pyincore/analyses'))
27-
sys.path.insert(0, os.path.abspath('../../tests'))
28-
sys.path.insert(0, os.path.abspath('../../docs'))
23+
sys.path.insert(0, os.path.abspath("."))
24+
sys.path.insert(0, os.path.abspath("../.."))
25+
sys.path.insert(0, os.path.abspath("../../pyincore"))
26+
sys.path.insert(0, os.path.abspath("../../pyincore/analyses"))
27+
sys.path.insert(0, os.path.abspath("../../tests"))
28+
sys.path.insert(0, os.path.abspath("../../docs"))
2929

3030
# -- Project information -----------------------------------------------------
3131

32-
project = 'pyIncore'
33-
author = ''
32+
project = "pyIncore"
33+
author = ""
3434

3535
# The short X.Y version
36-
version = '1.19'
36+
version = "1.20"
3737
# The full version, including alpha/beta/rc tags
38-
release = '1.19.0'
38+
release = "1.20.0"
3939

4040
# -- General configuration ---------------------------------------------------
4141

@@ -46,25 +46,26 @@
4646
# Add any Sphinx extension module names here, as strings. They can be
4747
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4848
# ones.
49-
extensions = ['sphinx.ext.autodoc',
50-
'sphinx.ext.intersphinx',
51-
# 'sphinx.ext.viewcode',
52-
'sphinx_rtd_theme',
53-
'sphinx.ext.ifconfig',
54-
'sphinx.ext.napoleon',
55-
'sphinx.ext.todo'
56-
]
49+
extensions = [
50+
"sphinx.ext.autodoc",
51+
"sphinx.ext.intersphinx",
52+
# 'sphinx.ext.viewcode',
53+
"sphinx_rtd_theme",
54+
"sphinx.ext.ifconfig",
55+
"sphinx.ext.napoleon",
56+
"sphinx.ext.todo",
57+
]
5758
# Add any paths that contain templates here, relative to this directory.
58-
templates_path = ['_templates']
59+
templates_path = ["_templates"]
5960

6061
# The suffix(es) of source filenames.
6162
# You can specify multiple suffix as a list of string:
6263
#
6364
# source_suffix = '.rst'
64-
source_suffix = ['.rst', '.md']
65+
source_suffix = [".rst", ".md"]
6566

6667
# The master toctree document.
67-
master_doc = 'index'
68+
master_doc = "index"
6869

6970
# The language for content autogenerated by Sphinx. Refer to documentation.rst
7071
# for a list of supported languages.
@@ -79,7 +80,7 @@
7980
exclude_patterns = []
8081

8182
# The name of the Pygments (syntax highlighting) style to use.
82-
pygments_style = 'sphinx'
83+
pygments_style = "sphinx"
8384

8485
# -- Custom configuration ---------------------------------------------------
8586

@@ -89,7 +90,7 @@
8990
# See also:
9091
# http://www.sphinx-doc.org/en/stable/ext/autodoc.html#confval-autodoc_mock_importshttps://github.com/sphinx-doc/sphinx/issues/4182
9192

92-
autodoc_mock_imports = ['pytest', 'rasterstats']
93+
autodoc_mock_imports = ["pytest", "rasterstats"]
9394

9495
# This value selects what content will be inserted into the main body of an autoclass directive.
9596
# The possible values are:
@@ -99,7 +100,7 @@
99100
# “both”: Both the class ’ and the init method’s docstring are concatenated and inserted.
100101
# “init”: Only the init method’s docstring is inserted.
101102

102-
autoclass_content = 'both'
103+
autoclass_content = "both"
103104

104105
# -- Options for HTML output -------------------------------------------------
105106

@@ -116,19 +117,19 @@
116117
#
117118
# html_theme_options = {}
118119
html_theme_options = {
119-
'canonical_url': '',
120-
'analytics_id': '',
121-
'logo_only': False,
122-
'display_version': True,
123-
'prev_next_buttons_location': 'bottom',
124-
'style_external_links': False,
125-
'vcs_pageview_mode': '',
120+
"canonical_url": "",
121+
"analytics_id": "",
122+
"logo_only": False,
123+
"display_version": True,
124+
"prev_next_buttons_location": "bottom",
125+
"style_external_links": False,
126+
"vcs_pageview_mode": "",
126127
# Toc options
127-
'collapse_navigation': True,
128-
'sticky_navigation': True,
129-
'navigation_depth': 4,
130-
'includehidden': True,
131-
'titles_only': False
128+
"collapse_navigation": True,
129+
"sticky_navigation": True,
130+
"navigation_depth": 4,
131+
"includehidden": True,
132+
"titles_only": False,
132133
}
133134

134135
# Add any paths that contain custom static files (such as style sheets) here,
@@ -150,7 +151,7 @@
150151
# -- Options for HTMLHelp output ---------------------------------------------
151152

152153
# Output file base name for HTML help builder.
153-
htmlhelp_basename = 'pyincoredoc'
154+
htmlhelp_basename = "pyincoredoc"
154155

155156

156157
# -- Options for LaTeX output ------------------------------------------------
@@ -159,15 +160,12 @@
159160
# The paper size ('letterpaper' or 'a4paper').
160161
#
161162
# 'papersize': 'letterpaper',
162-
163163
# The font size ('10pt', '11pt' or '12pt').
164164
#
165165
# 'pointsize': '10pt',
166-
167166
# Additional stuff for the LaTeX preamble.
168167
#
169168
# 'preamble': '',
170-
171169
# Latex figure (float) alignment
172170
#
173171
# 'figure_align': 'htbp',
@@ -177,19 +175,15 @@
177175
# (source start file, target name, title,
178176
# author, documentclass [howto, manual, or own class]).
179177
latex_documents = [
180-
(master_doc, 'pyincore.tex', 'pyincore Documentation',
181-
'ISDA NCSA', 'manual'),
178+
(master_doc, "pyincore.tex", "pyincore Documentation", "ISDA NCSA", "manual"),
182179
]
183180

184181

185182
# -- Options for manual page output ------------------------------------------
186183

187184
# One entry per manual page. List of tuples
188185
# (source start file, name, description, authors, manual section).
189-
man_pages = [
190-
(master_doc, 'pyincore', 'pyincore Documentation',
191-
[author], 1)
192-
]
186+
man_pages = [(master_doc, "pyincore", "pyincore Documentation", [author], 1)]
193187

194188
# If true, show URL addresses after external links.
195189
# man_show_urls = False
@@ -201,9 +195,15 @@
201195
# (source start file, target name, title, author,
202196
# dir menu entry, description, category)
203197
texinfo_documents = [
204-
(master_doc, 'pyincore', 'pyincore Documentation',
205-
author, 'pyincore', 'One line description of project.',
206-
'Miscellaneous'),
198+
(
199+
master_doc,
200+
"pyincore",
201+
"pyincore Documentation",
202+
author,
203+
"pyincore",
204+
"One line description of project.",
205+
"Miscellaneous",
206+
),
207207
]
208208

209209
# Documents to append as an appendix to all manuals.

0 commit comments

Comments
 (0)