Skip to content

Commit ec51dc1

Browse files
authored
prepare v1.9.0 and update docs (#161)
1 parent 3c86189 commit ec51dc1

File tree

8 files changed

+23
-15
lines changed

8 files changed

+23
-15
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
## Changelog
22

33

4+
## 1.9.0
5+
- focus on Python 3.8+, use pyproject.toml file and update setup (#150, #153, #160)
6+
- revamp tests and evaluation (#151)
7+
- simplify code parts (#152)
8+
- docs: convert readme to markdown (#147)
9+
410
## 1.8.1
511
- fix: more restrictive YYYYMM pattern to prevent ValueError with @b3n4kh (#145)
612
- maintenance: add pre-commit with checks with @nadasuhailAyesh12 (#142)

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,14 @@ page](https://htmldate.readthedocs.io/en/latest/evaluation.html).
9393
## Installation
9494

9595
Htmldate is tested on Linux, macOS and Windows systems, it is compatible
96-
with Python 3.6 upwards. It can notably be installed with `pip` (`pip3`
96+
with Python 3.8 upwards. It can notably be installed with `pip` (`pip3`
9797
where applicable) from the PyPI package repository:
9898

9999
- `pip install htmldate`
100100
- (optionally) `pip install htmldate[speed]`
101101

102+
The last version to support Python 3.6 and 3.7 is `htmldate==1.8.1`.
103+
102104
## Documentation
103105

104106
For more details on installation, Python & CLI usage, **please refer to

docs/corefunctions.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@ Useful internal functions
2626

2727
.. autofunction:: htmldate.extractors.extract_url_date
2828

29-
.. autofunction:: htmldate.extractors.extract_partial_url_date
30-
3129
.. autofunction:: htmldate.extractors.external_date_parser
3230

3331

3432
Helpers
3533
-------
3634

37-
.. autofunction:: htmldate.extractors.convert_date
35+
.. autofunction:: htmldate.validators.is_valid_date
3836

39-
.. autofunction:: htmldate.extractors.date_validator
37+
.. autofunction:: htmldate.validators.convert_date
4038

4139
.. autofunction:: htmldate.utils.load_html
4240

docs/index.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Installation
9696
Main package
9797
~~~~~~~~~~~~
9898

99-
This Python package is tested on Linux, macOS and Windows systems; it is compatible with Python 3.6 upwards. It is available on the package repository `PyPI <https://pypi.org/>`_ and can notably be installed with ``pip`` or ``pipenv``:
99+
This Python package is tested on Linux, macOS and Windows systems; it is compatible with Python 3.8 upwards. It is available on the package repository `PyPI <https://pypi.org/>`_ and can notably be installed with ``pip`` or ``pipenv``:
100100

101101
.. code-block:: bash
102102
@@ -105,6 +105,9 @@ This Python package is tested on Linux, macOS and Windows systems; it is compati
105105
$ pip install git+https://github.com/adbar/htmldate.git # latest available code (see build status above)
106106
107107
108+
The last version to support Python 3.6 and 3.7 is ``htmldate==1.8.1``.
109+
110+
108111
Optional
109112
~~~~~~~~
110113

docs/options.rst

+1-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Change the output to a format known to Python's ``datetime`` module, the default
5151
'2016-12-23T05:11:00-0500'
5252
5353
54-
.. autofunction:: htmldate.validators.output_format_validator
54+
.. autofunction:: htmldate.validators.is_valid_format
5555

5656

5757
Original date
@@ -89,8 +89,6 @@ Clearing caches
8989
# at a given point in time
9090
>>> reset_caches()
9191
92-
*New in version 1.3.0.*
93-
9492
9593
Tests
9694
-----

docs/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# version required
2-
sphinx>=7.2.6
2+
sphinx>=8.0.2
33
# without version specifier
44
htmldate

docs/used-by.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ Citations in papers
6464
Publications citing Htmldate
6565
----------------------------
6666

67+
- Ariyarathne, G., & Nwala, A. C. (2024). 3DLNews: A Three-decade Dataset of US Local News Articles. arXiv preprint arXiv:2408.04716.
6768
- Grabovoy, A., Bakhteev, O., & Chekhovich, Y. (2021). "The automatic approach for scientific papers dating," 2021 Ivannikov Ispras Open Conference (ISPRAS), pp. 107-113, IEEE, DOI: 10.1109/ISPRAS53967.2021.00020.
68-
Hanley, H. W., Kumar, D., & Durumeric, Z. (2023). Happenstance: Utilizing Semantic Search to Track Russian State Media Narratives about the Russo-Ukrainian War On Reddit. In Proceedings of the international AAAI conference on web and social media (Vol. 17, pp. 327-338).
69-
- Hanley, H. W., Kumar, D., & Durumeric, Z. (2023). A Golden Age: Conspiracy Theories' Relationship with Misinformation Outlets, News Media, and the Wider Internet. arXiv preprint arXiv:2301.10880.
69+
- Hanley, H. W., Kumar, D., & Durumeric, Z. (2023). Happenstance: Utilizing Semantic Search to Track Russian State Media Narratives about the Russo-Ukrainian War On Reddit. In Proceedings of the international AAAI conference on web and social media (Vol. 17, pp. 327-338).
70+
- Hanley, H. W., Kumar, D., & Durumeric, Z. (2023). A Golden Age: Conspiracy Theories' Relationship with Misinformation Outlets, News Media, and the Wider Internet. Proceedings of the ACM on Human-Computer Interaction, 7(CSCW2), 1-33.
7071
- Kupi, M. (2021). "Late to the Party? Agile Methods in British and German Government Institutions", Master’s thesis, Hertie School Berlin.
72+
- Olier, J. S., & Spadavecchia, C. (2024). Migration and emotions in the media: can socioeconomic indicators predict emotions in images associated with immigrants?. Journal of Computational Social Science, 1-32.
7173
- Smits, T., & Ros, R. (2021). "Distant reading 940,000 online circulations of 26 iconic photographs", New Media & Society, DOI: 10.1177/14614448211049.
7274
- Smits, T., & Ros, R. (2023). Space and Place in Online Visual Memory: The Tank Man in Hong Kong. The Visual Memory of Protest, Amsterdam University Press.
7375
- Stefanovitch, N. (2022). Team TMA at SemEval-2022 Task 8: Lightweight and Language-Agnostic News Similarity Classifier. In Proceedings of the 16th International Workshop on Semantic Evaluation (SemEval-2022) (pp. 1178-1183).
@@ -89,7 +91,6 @@ Software ecosystem
8991

9092

9193
.. image:: software-ecosystem.png
92-
:alt: Software ecosystem
94+
:alt: Software ecosystem
9395
:align: center
9496
:width: 65%
95-

htmldate/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
__author__ = "Adrien Barbaresi"
88
__license__ = "Apache-2.0"
99
__copyright__ = "Copyright 2017-2024, Adrien Barbaresi"
10-
__version__ = "1.8.1"
10+
__version__ = "1.9.0"
1111

1212

1313
import logging

0 commit comments

Comments
 (0)