From ce852f70f0a3dee2ae6bf4ae8c109ede56ed5e8e Mon Sep 17 00:00:00 2001 From: Arkadii Yakovets <2201626+arkid15r@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:15:24 -0700 Subject: [PATCH] Update `holidays` package metadata (#2063) --- pyproject.toml | 27 ++++++++++++++++----------- tests/test_package.py | 9 ++++++--- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index be5daac88..3706253df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,38 +1,43 @@ [project] name = "holidays" -description = "Generate and work with holidays in Python" -license = { file = "LICENSE" } +description = "World Holidays Framework" +license = { "text" = "MIT" } readme = "README.rst" requires-python = ">=3.9" dynamic = ["version"] -authors = [{ email = "dr.prodigy.github@gmail.com", name = "Maurizio Montel" }] +authors = [{ name = "Vacanza Team" }] dependencies = ["python-dateutil"] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", + "Intended Audience :: Education", + "Intended Audience :: End Users/Desktop", + "Intended Audience :: Financial and Insurance Industry", + "Intended Audience :: Information Technology", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", - "Programming Language :: Python :: Implementation :: PyPy", + "Topic :: File Formats :: JSON", + "Topic :: Office/Business :: Financial :: Accounting", + "Topic :: Office/Business :: Financial :: Investment", "Topic :: Office/Business :: Scheduling", "Topic :: Software Development :: Libraries :: Python Modules", - "Topic :: Software Development :: Localization", ] -keywords = ["holidays", "calendar", "l10n"] +keywords = ["holidays", "calendar", "l10n", "worldwide", "vacation"] maintainers = [ - { email = "ark@cho.red", name = "Arkadii Yakovets" }, - { email = "jhellico@gmail.com", name = "Serhii Murza" }, + { name = "Arkadii Yakovets" }, + { name = "Panpakorn Siripanich" }, + { name = "Serhii Murza" }, ] [project.urls] -Repository = "https://github.com/vacanza/holidays/" Documentation = "https://holidays.readthedocs.io/en/latest/" -Changelog = "https://github.com/vacanza/holidays/releases" -Downloads = "https://pypi.org/project/holidays/" +Repository = "https://github.com/vacanza/holidays/" +Changelog = "https://github.com/vacanza/holidays/releases/" [tool.bandit] exclude_dirs = ["docs", "tests"] diff --git a/tests/test_package.py b/tests/test_package.py index 46ca64367..009f03f95 100644 --- a/tests/test_package.py +++ b/tests/test_package.py @@ -23,22 +23,25 @@ def test_metadata(self): for attr_name, attr_value in { "name": "holidays", - "summary": "Generate and work with holidays in Python", + "summary": "World Holidays Framework", "version": holidays.__version__, }.items(): self.assertIn(attr_name, ph_metadata) self.assertEqual(ph_metadata[attr_name], attr_value, attr_name) for attr_name in ( - "author-email", "classifier", "description", "keywords", "license", "license-file", - "maintainer-email", + "maintainer", "project-url", "requires-python", ): self.assertIn(attr_name, ph_metadata) self.assertTrue(ph_metadata[attr_name], attr_name) + + if attr_name == "maintainer": + for maintainer in ("Arkadii Yakovets", "Panpakorn Siripanich", "Serhii Murza"): + self.assertIn(maintainer, ph_metadata["maintainer"])