Skip to content

Commit

Permalink
0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
leliel12 committed Feb 21, 2022
1 parent dc0206e commit 8d7597c
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ setuptools-*.zip
.pytest_cache
.vscode/
result_images/
docs/source/_dynamic/README.rst
docs/source/_dynamic/*.rst
29 changes: 23 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
## Changelog of Scikit-Criteria
# Changelog of Scikit-Criteria

## 0.6
<!-- BODY -->

## Version 0.6

- Support for Python 3.10.
- All the objects of the project are now immutable by design, and can only
be mutated troughs the `object.copy()` method.
- Dominance analysis tools (`DecisionMatrix.dominance`).
- The method `DecisionMatrix.describe()` was deprecated and will be removed
in version *1.0*.
- New statistics functionalities `DecisionMatrix.stats` accessor.
- The accessors are now cached in the `DecisionMatrix`.

- Tutorial for dominance and satisfaction analysis.

- TOPSIS now support hyper-parameters to select different metrics.
- Generalize the idea of accessors in scikit-criteria througth a common
framework (`skcriteria.utils.accabc` module).
- New deprecation mechanism through the
- `skcriteria.utils.decorators.deprecated` decorator.

## 0.5
## Version 0.5

In this version scikit-criteria was rewritten from scratch. Among other things:

Expand All @@ -17,10 +34,10 @@ In this version scikit-criteria was rewritten from scratch. Among other things:

**Full Changelog**: https://github.com/quatrope/scikit-criteria/commits/0.5

## 0.2
## Version 0.2

First OO stable version.

## 0.1
## Version 0.1

Only functions.
Only functions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
include LICENSE
include README.md
include CHANGELOG.md

recursive-include skcriteria *.py

exclude tox.ini
exclude pyproject.toml
exclude CHANGELOG.md
exclude .header-template
exclude .readthedocs.yml

Expand Down
4 changes: 4 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Changelog
============

.. include:: _dynamic/CHANGELOG.rst
21 changes: 13 additions & 8 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,22 @@

import m2r

with open(SKCRITERIA_PATH / "README.md") as fp:
readme_md = fp.read().split("<!-- BODY -->")[-1]

DYNAMIC_RST = {
"README.md": "README.rst",
"CHANGELOG.md": "CHANGELOG.rst",
}

README_RST_PATH = CURRENT_PATH / "_dynamic" / "README.rst"
for md_name, rst_name in DYNAMIC_RST.items():
md_path = SKCRITERIA_PATH / md_name
with open(md_path) as fp:
readme_md = fp.read().split("<!-- BODY -->")[-1]

rst_path = CURRENT_PATH / "_dynamic" / rst_name

with open(README_RST_PATH, "w") as fp:
fp.write(".. FILE AUTO GENERATED !! \n")
fp.write(m2r.convert(readme_md))
print(f"{README_RST_PATH} regenerated!")
with open(rst_path, "w") as fp:
fp.write(".. FILE AUTO GENERATED !! \n")
fp.write(m2r.convert(readme_md))
print(f"{md_path} -> {rst_path} regenerated!")


# =============================================================================
Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Contents
:maxdepth: 2
:caption: Misc

changelog
bibliography


Expand Down
2 changes: 1 addition & 1 deletion skcriteria/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

__all__ = ["mkdm", "DecisionMatrix", "Objective"]

__version__ = ("0", "6dev0")
__version__ = ("0", "6")

NAME = "scikit-criteria"

Expand Down

0 comments on commit 8d7597c

Please sign in to comment.