commit: e84b914f311f1505b8fe473922c5e45aa97c17de Author: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com> AuthorDate: Thu Feb 6 13:02:00 2025 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Thu Feb 6 13:02:00 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e84b914f
dev-python/dateparser: drop 1.2.0 Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com> dev-python/dateparser/Manifest | 1 - dev-python/dateparser/dateparser-1.2.0.ebuild | 55 ----------------- .../files/dateparser-1.2.0-migrate-hijridate.patch | 71 ---------------------- 3 files changed, 127 deletions(-) diff --git a/dev-python/dateparser/Manifest b/dev-python/dateparser/Manifest index 1dd5921b2..1f05fece6 100644 --- a/dev-python/dateparser/Manifest +++ b/dev-python/dateparser/Manifest @@ -1,2 +1 @@ -DIST dateparser-1.2.0.tar.gz 307260 BLAKE2B b4611dfc4fccaf5f129e4d9aa3debe4a6d4242a44896305b909e6c34728ba153be92659b2f0c3a5da028d3863789d9c3a4236676087346b5f3f4aeb1f57b7a1e SHA512 74d5975f515dee096d83d10b72e5dc66ab197d50f24c129560ffb87eef4abd1422d8236555496d1ab1c0bfb832729e9c0d3ea2ca2c9c49da19963f0f2c1c1eb4 DIST dateparser-1.2.1.tar.gz 309924 BLAKE2B 09b7cf4148edea37bb80d1734b2f5a3ddac7965e6d46bc1775f2f0807d3421c80bd3927dd62135a80adc99451a85a2961b61335784d191cfdd1fdc51b3d81298 SHA512 85e1c5cabb8acebd63ec60c0913ac89b362b64edfbe5af06bcd5968ed7be6383d4035ec9f45afadc0d10fc95a3f538702285d75365c4f8e4522ac9643f4ed4da diff --git a/dev-python/dateparser/dateparser-1.2.0.ebuild b/dev-python/dateparser/dateparser-1.2.0.ebuild deleted file mode 100644 index 8697814c4..000000000 --- a/dev-python/dateparser/dateparser-1.2.0.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..13} ) -DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 optfeature pypi - -DESCRIPTION="Date parsing library designed to parse dates from HTML pages" -HOMEPAGE=" - https://pypi.org/project/dateparser/ - https://github.com/scrapinghub/dateparser -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - dev-python/python-dateutil[${PYTHON_USEDEP}] - dev-python/pytz[${PYTHON_USEDEP}] - dev-python/regex[${PYTHON_USEDEP}] - dev-python/tzlocal[${PYTHON_USEDEP}] -" -BDEPEND="test? ( - dev-libs/fastText[python,${PYTHON_USEDEP}] - dev-python/convertdate[${PYTHON_USEDEP}] - dev-python/hijridate[${PYTHON_USEDEP}] - dev-python/langdetect[${PYTHON_USEDEP}] - dev-python/parameterized[${PYTHON_USEDEP}] -)" - -PATCHES=( "${FILESDIR}/${P}-migrate-hijridate.patch" ) - -EPYTEST_IGNORE=( - # tests that require network - tests/test_dateparser_data_integrity.py -) - -EPYTEST_DESELECT=( - # tests that require network - tests/test_language_detect.py::CustomLangDetectParserTest::test_custom_language_detect_fast_text_{0,1} -) - -distutils_enable_tests pytest - -distutils_enable_sphinx docs \ - dev-python/sphinx-rtd-theme - -pkg_postinst() { - optfeature "calendars support" "dev-python/hijridate dev-python/convertdate" - optfeature "fasttext support" "dev-libs/fastText[python]" - optfeature "langdetect support" dev-python/langdetect -} diff --git a/dev-python/dateparser/files/dateparser-1.2.0-migrate-hijridate.patch b/dev-python/dateparser/files/dateparser-1.2.0-migrate-hijridate.patch deleted file mode 100644 index 3d488ca53..000000000 --- a/dev-python/dateparser/files/dateparser-1.2.0-migrate-hijridate.patch +++ /dev/null @@ -1,71 +0,0 @@ -https://github.com/scrapinghub/dateparser/pull/1211 -From: pastalian <pastalia...@gmail.com> -Date: Thu, 25 Jan 2024 21:14:28 +0900 -Subject: [PATCH] Migrate from hijri-converter to hijridate - ---- a/dateparser/calendars/hijri_parser.py -+++ b/dateparser/calendars/hijri_parser.py -@@ -1,4 +1,4 @@ --from hijri_converter import convert -+from hijridate import Gregorian, Hijri - - from dateparser.calendars import non_gregorian_parser - -@@ -6,19 +6,17 @@ - class hijri: - @classmethod - def to_gregorian(cls, year=None, month=None, day=None): -- g = convert.Hijri( -- year=year, month=month, day=day, validate=False -- ).to_gregorian() -+ g = Hijri(year=year, month=month, day=day, validate=False).to_gregorian() - return g.datetuple() - - @classmethod - def from_gregorian(cls, year=None, month=None, day=None): -- h = convert.Gregorian(year, month, day).to_hijri() -+ h = Gregorian(year, month, day).to_hijri() - return h.datetuple() - - @classmethod - def month_length(cls, year, month): -- h = convert.Hijri(year=year, month=month, day=1) -+ h = Hijri(year=year, month=month, day=1) - return h.month_length() - - ---- a/docs/introduction.rst -+++ b/docs/introduction.rst -@@ -223,13 +223,13 @@ Dependencies - - * dateutil_'s module ``relativedelta`` for its freshness parser. - * convertdate_ to convert *Jalali* dates to *Gregorian*. -- * hijri-converter_ to convert *Hijri* dates to *Gregorian*. -+ * hijridate_ to convert *Hijri* dates to *Gregorian*. - * tzlocal_ to reliably get local timezone. - * ruamel.yaml_ (optional) for operations on language files. - - .. _dateutil: https://pypi.python.org/pypi/python-dateutil - .. _convertdate: https://pypi.python.org/pypi/convertdate --.. _hijri-converter: https://pypi.python.org/pypi/hijri-converter -+.. _hijridate: https://pypi.python.org/pypi/hijridate - .. _tzlocal: https://pypi.python.org/pypi/tzlocal - .. _ruamel.yaml: https://pypi.python.org/pypi/ruamel.yaml - -@@ -261,4 +261,4 @@ To be able to use them you need to install the `calendar` extra by typing: - >>> HijriCalendar('17-01-1437 هـ 08:30 مساءً').get_date() - DateData(date_obj=datetime.datetime(2015, 10, 30, 20, 30), period='day', locale=None) - --.. note:: `HijriCalendar` only works with Python ≥ 3.6. -+.. note:: `HijriCalendar` only works with Python ≥ 3.7. ---- a/setup.py -+++ b/setup.py -@@ -41,7 +41,7 @@ - "console_scripts": ["dateparser-download = dateparser_cli.cli:entrance"], - }, - extras_require={ -- "calendars": ["hijri-converter", "convertdate"], -+ "calendars": ["hijridate", "convertdate"], - "fasttext": ["fasttext"], - "langdetect": ["langdetect"], - },