Skip to content

Commit 094203a

Browse files
committed
Document breaking change
1 parent 29785a2 commit 094203a

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

docs/HISTORY.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
Releases
22
--------
33

4+
1.1.0 Coming Soon
5+
+++++++++++++++++
6+
7+
+ **Breaking Change** - :ref:`create <api-create>` now creates an empty block by default.
8+
Pass ``add_default=True`` to include the default MapServer parameters.
9+
10+
1.0.1 31/05/2024
11+
++++++++++++++++
12+
13+
Patch release and CI (Continuous Integration) updates.
14+
15+
`Full changlog <https://github.com/geographika/mappyfile/compare/v1.0.1...v1.0.2>`__.
16+
17+
1.0.1 25/04/2024
18+
++++++++++++++++
19+
20+
Patch release.
21+
22+
+ `#206 <https://github.com/geographika/mappyfile/pull/206>`_ - Ensure findall works when properties are missing
23+
24+
`Full changlog <https://github.com/geographika/mappyfile/compare/v1.0.0...v1.0.1>`__.
25+
26+
427
1.0.0 28/09/2023
528
++++++++++++++++
629

docs/schemas.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,17 @@ If MapServer uses default values for an object, the `create` function can be use
4343
a new object using these defaults. For example to output a `MAP` object with default settings
4444
run the following code:
4545

46+
.. note::
47+
48+
From mappyfile 1.1+ by default an empty ``MAP END`` object is created.
49+
The value ``add_defaults=True`` has to be passed to ``create`` to add in
50+
the MapServer default settings.
51+
4652
.. code-block:: python
4753
4854
import mappyfile
4955
50-
m = mappyfile.create("map", version=8.0)
56+
m = mappyfile.create("map", version=8.0, add_defaults=True)
5157
print(m)
5258
mappyfile.dumps(m)
5359

run_local.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,11 @@ flake8 .
1515
mypy mappyfile tests docs/examples --check-untyped-defs
1616

1717
pytest --doctest-modules
18-
# pytest ./tests
18+
# pytest ./tests
19+
20+
21+
# docs
22+
23+
sphinx-build -b html "./docs" "./_build" -W
24+
python -m http.server --directory=./_build 57921
25+
# http://localhost:57921

0 commit comments

Comments
 (0)