Skip to content

Commit

Permalink
v0.8.0 — Type annotations; drop pre-Python 3.6
Browse files Browse the repository at this point in the history
- Drop support for Python 2.7, 3.4, and 3.5
- Support Python 3.9
- `ensure_ascii` parameter added to `PropertiesFile.dump()` and `PropertiesFile.dumps()`
- **Bugfix**: When parsing XML input, empty `<entry>` tags now produce an empty string as a value, not `None`
- Added type annotations
- `Properties` and `PropertiesFile` no longer raise `TypeError` when given a non-string key or value, as type correctness is now expected to be enforced through static type checking
- The `PropertiesElement` classes returned by `parse()` are no longer subclasses of `namedtuple`, but they can still be iterated over to retrieve their fields like a tuple
  • Loading branch information
jwodder committed Nov 28, 2020
1 parent d0f4e99 commit 0f71117
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
v0.8.0 (in development)
-----------------------
v0.8.0 (2020-11-28)
-------------------
- Drop support for Python 2.7, 3.4, and 3.5
- Support Python 3.9
- `ensure_ascii` parameter added to `PropertiesFile.dump()` and
Expand Down
14 changes: 12 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Changelog
=========

v0.8.0 (in development)
-----------------------
v0.8.0 (2020-11-28)
-------------------
- Drop support for Python 2.7, 3.4, and 3.5
- Support Python 3.9
- ``ensure_ascii`` parameter added to `PropertiesFile.dump()` and
Expand All @@ -19,6 +19,7 @@ v0.8.0 (in development)
subclasses of `~collections.namedtuple`, but they can still be iterated over
to retrieve their fields like a tuple


v0.7.0 (2020-03-09)
-------------------
- `parse()` now accepts strings as input
Expand All @@ -28,6 +29,7 @@ v0.7.0 (2020-03-09)
- Gave `PropertiesFile` a settable `~PropertiesFile.header_comment` property
- Handle unescaping surrogate pairs on narrow Python builds


v0.6.0 (2020-02-28)
-------------------
- Include changelog in the Read the Docs site
Expand All @@ -44,18 +46,21 @@ v0.6.0 (2020-02-28)
- Added a custom encoding error handler ``'javapropertiesreplace'`` that
encodes invalid characters as ``\uXXXX`` escape sequences


v0.5.2 (2019-04-08)
-------------------
- Added an example of each format to the format descriptions in the docs
- Fix building in non-UTF-8 environments


v0.5.1 (2018-10-25)
-------------------
- **Bugfix**: `java_timestamp()` now properly handles naïve
`~datetime.datetime` objects with ``fold=1``
- Include installation instructions, examples, and GitHub links in the Read the
Docs site


v0.5.0 (2018-09-18)
-------------------
- **Breaking**: Invalid ``\uXXXX`` escape sequences now cause an
Expand All @@ -66,24 +71,28 @@ v0.5.0 (2018-09-18)
- Drop support for Python 2.6 and 3.3
- Fixed a `DeprecationWarning` in Python 3.7


v0.4.0 (2017-04-22)
-------------------
- Split off the command-line programs into a separate package, |clipkg|_

.. |clipkg| replace:: ``javaproperties-cli``
.. _clipkg: https://github.com/jwodder/javaproperties-cli


v0.3.0 (2017-04-13)
-------------------
- Added the `PropertiesFile` class for preserving comments in files [#1]
- The ``ordereddict`` package is now required under Python 2.6


v0.2.1 (2017-03-20)
-------------------
- **Bugfix** to :program:`javaproperties` command: Don't die horribly on
missing non-ASCII keys
- PyPy now supported


v0.2.0 (2016-11-14)
-------------------
- Added a :program:`javaproperties` command for basic command-line manipulating
Expand All @@ -95,6 +104,7 @@ v0.2.0 (2016-11-14)
- `to_comment()` now converts CR LF and CR line endings inside comments to LF
- Some minor documentation improvements


v0.1.0 (2016-10-02)
-------------------
Initial release
2 changes: 1 addition & 1 deletion src/javaproperties/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
to_comment
from .xmlprops import dump_xml, dumps_xml, load_xml, loads_xml

__version__ = '0.8.0.dev1'
__version__ = '0.8.0'
__author__ = 'John Thorvald Wodder II'
__author_email__ = '[email protected]'
__license__ = 'MIT'
Expand Down

0 comments on commit 0f71117

Please sign in to comment.