3b6e814384
1.1.1 (2022-03-17) ------------------ Improvements: - Fixed issue with regex library by pinning dependencies to an earlier version. - Extended support for Russian language dates starting with lowercase. - Allowed to use_given_order for languages too. - Fixed link to settings section. - Defined UTF-8 encoding for Windows. - Fixed directories creation error in CLI utils. 1.1.0 (2021-10-04) ------------------ New features: * Support language detection based on ``langdetect``, ``fastText``, or a custom implementation * Add support for 'by <time>' * Sort default language list by internet usage Improvements: * Improved support of Chinese, Czech * Improvements in ``search_dates`` * Make order of previous locales deterministic * Fix parsing with trailing space * Consider ``RETURN_TIME_AS_PERIOD`` for timestamp times * Exclude failing regex version * Ongoing work multithreading support * Add demo URL QA: * Migrate pipelines from Travis CI to Github Actions * Use versioned CLDR data * Add a script to update table of supported languages and locales * Sort 'skip' keys in yaml files * Improve test coverage * Code cleanup 1.0.0 (2020-10-29) ------------------ Breaking changes: * Drop support for Python 2.7 and pypy * Now ``DateDataParser.get_date_data()`` returns a ``DateData`` object instead of a ``dict`` * From now wrong ``settings`` are not silenced and raise ``SettingValidationError`` * Now ``dateparser.parse()`` is deterministic and doesn't try previous locales. Also, ``DateDataParser.get_date_data()`` doesn't try the previous locales by default * Remove the ``'base-formats'`` parser * Extract the ``'no-spaces-time'`` parser from the ``'absolute-time'`` parser and make it an optional parser * Remove ``numeral_translation_data`` * Remove the undocumented ``SKIP_TOKENS_PARSER`` and ``FUZZY`` settings * Remove support for using strings in ``date_formats`` * The undocumented ``ExactLanguageSearch`` class has been moved to the private scope and some internal methods have changed * Changes in ``dateparser.utils``: ``normalize_unicode()`` doesn't accept ``bytes`` as input and ``convert_to_unicode`` has been deprecated New features: * Add Python 3.9 support * Detect hours separated with a period/dot * Add support for "decade" * Add support for the hijri calendar in Python ≥ 3.6 Improvements: * New logo! * Improve the README and docs * Fix the "calendars" extra * Fix leap years when ``PREFER_DATES_FROM`` is set * Fix ``STRICT_PARSING`` setting in ``no-spaces-time`` parser * Consider ``RETURN_AS_TIME_PERIOD`` setting for ``relative-time`` parser * Parse the 24hr time format with meridian info * Other small improvements
32 lines
1.2 KiB
Makefile
32 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2022/07/11 13:31:46 adam Exp $
|
|
|
|
DISTNAME= dateparser-1.1.1
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= time python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=d/dateparser/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/scrapinghub/dateparser
|
|
COMMENT= Date parsing library designed to parse dates from HTML pages
|
|
LICENSE= modified-bsd
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-dateutil-[0-9]*:../../time/py-dateutil
|
|
DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz
|
|
DEPENDS+= ${PYPKGPREFIX}-regex>2019.02.19:../../textproc/py-regex
|
|
DEPENDS+= ${PYPKGPREFIX}-tzlocal-[0-9]*:../../time/py-tzlocal
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-parameterized-[0-9]*:../../devel/py-parameterized
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
${MV} dateparser-download dateparser-download-${PYVERSSUFFIX} || ${TRUE}
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|