You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,19 @@
1
1
# Change Log
2
2
3
+
## 0.2
4
+
5
+
- Undate and UndateInterval now include an optional label for named dates or time periods
6
+
- Support partially known dates with missing digits (e.g. 1991-1?-10)
7
+
- Rich comparison checks for Undate
8
+
- improved equality check; now supports comparing Undate object with day precision to datetime.date
9
+
- implementations and tests for comparison, sorting and contains (`>`, `<`, `>=`, `<=`, and `in`)
10
+
- static method to initialize an Undate object from a datetime.date (used for comparisons)
11
+
- Example Jupyter notebook comparing Undate duration calculation against
12
+
dates and durations in the [Shakespeare and Company Project](https://shakespeareandco.princeton.edu/)[events dataset](https://doi.org/10.34770/nz90-ym25)
13
+
- Preliminary support for parsing Extended Date Time Format (EDTF) level 0 and some of level 1 and transforming into Undate objects
14
+
- Dropped support for python 3.8; added python 3.12
15
+
- Python type improvements and preliminary type checking with mypy
16
+
3
17
## 0.1
4
18
5
19
Pre-alpha version with preliminary `Undate` and `UndateInterval` classes
**undate** is a python library for working with uncertain or partially known dates.
4
7
@@ -59,12 +62,9 @@ This repository uses [git-flow](https://github.com/nvie/gitflow) branching conve
59
62
-**main** will always contain the most recent release
60
63
-**develop** branch is the latest version of work in progress
61
64
62
-
Pull requests should be made against the **develop** branch.
65
+
Pull requests for new features should be made against the **develop** branch.
63
66
64
-
It is recommended to install git flow (on OSX, use brew or ports, e.g.: `brew install git-flow`;
65
-
on Ubuntu/Debian, `apt-get install git-flow`) and then initialize it in this repository
66
-
via `git flow init` and accept the defaults. Then you can use `git flow feature start`
67
-
to create feature development branches.
67
+
It is recommended to install git flow (on OSX, use brew or ports, e.g.: `brew install git-flow`; on Ubuntu/Debian, `apt-get install git-flow`) and then initialize it in this repository via `git flow init` and accept the defaults. Then you can use `git flow feature start` to create feature development branches.
68
68
69
69
Alternately, you can check out the develop branch (`git checkout develop`)
70
70
and create your branches manually based on develop (`git checkout -b feature/xxx-name`).
@@ -96,6 +96,18 @@ To run all the tests in a single test file, use pytest and specify the path to t
96
96
97
97
To test cases by name, use pytest: `pytest -k test_str`
98
98
99
+
### Check python types
100
+
101
+
Python typing is currently only enforced by a CI check action using `mypy`.
102
+
To run mypy locally, first install mypy and the necessary typing libraries:
0 commit comments