From 445c552feae6989caf6944e0577feb0a396494ec Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Dec 2025 14:39:15 +0000 Subject: [PATCH 1/6] Initial plan From f13fdcbd1e3a9c590d4250e316335d46c61e47e2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Dec 2025 14:43:02 +0000 Subject: [PATCH 2/6] Convert setup.cfg configuration to pyproject.toml Co-authored-by: martinpopel <724617+martinpopel@users.noreply.github.com> --- pyproject.toml | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 374b58cb..1e9cdfb9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,36 @@ [build-system] -requires = [ - "setuptools>=42", - "wheel" -] +requires = ["setuptools>=42", "wheel"] build-backend = "setuptools.build_meta" + +[project] +name = "udapi" +version = "0.5.1" +description = "Python framework for processing Universal Dependencies data" +readme = "README.md" +requires-python = ">=3.9" +license = {text = "GNU General Public License v2 or later (GPLv2+)"} +authors = [ + {name = "Martin Popel", email = "popel@ufal.mff.cuni.cz"} +] +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", + "Operating System :: OS Independent", +] +dependencies = [ + "colorama", + "termcolor", +] + +[project.urls] +Homepage = "https://github.com/udapi/udapi-python" + +[project.optional-dependencies] +test = ["pytest"] + +[project.scripts] +udapy = "udapi.cli:main" + +[tool.setuptools] +packages = {find = {}} +include-package-data = true From bd37f674b88d5ca4f8bf3025d3415a8bca64496d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Dec 2025 14:43:56 +0000 Subject: [PATCH 3/6] Remove setup.cfg and setup.py files Co-authored-by: martinpopel <724617+martinpopel@users.noreply.github.com> --- setup.cfg | 29 ----------------------------- setup.py | 4 ---- 2 files changed, 33 deletions(-) delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 2cdfaaa9..00000000 --- a/setup.cfg +++ /dev/null @@ -1,29 +0,0 @@ -[metadata] -name = udapi -version = 0.5.1 -author = Martin Popel -author_email = popel@ufal.mff.cuni.cz -description = Python framework for processing Universal Dependencies data -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/udapi/udapi-python -classifiers = - Programming Language :: Python :: 3 - License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+) - Operating System :: OS Independent - -[options] -packages = find: -python_requires = >=3.9 -include_package_data = True -install_requires = - colorama - termcolor - -[options.entry_points] -console_scripts = - udapy = udapi:cli.main - -[options.extras_require] -test = - pytest diff --git a/setup.py b/setup.py deleted file mode 100644 index 7f1a1763..00000000 --- a/setup.py +++ /dev/null @@ -1,4 +0,0 @@ -from setuptools import setup - -if __name__ == "__main__": - setup() From 072cab45027851909738c71f2c7628674d00dde9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Dec 2025 15:14:35 +0000 Subject: [PATCH 4/6] Follow PEP 639, update Python 3.6 to 3.9 in README, bump version to 0.5.2 Co-authored-by: martinpopel <724617+martinpopel@users.noreply.github.com> --- README.md | 2 +- pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0b41297f..9551b720 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Python framework for processing Universal Dependencies data [![Documentation Status](https://readthedocs.org/projects/udapi/badge/)](http://udapi.readthedocs.io) ## Requirements -- You need Python 3.6 or higher. +- You need Python 3.9 or higher. - If the [ufal.udpipe](https://pypi.python.org/pypi/ufal.udpipe/) parser is needed, make sure you have a C++11 compiler (e.g. [g++ 4.7 or newer](.travis.yml#L9)) and install UDPipe with `pip3 install --user --upgrade ufal.udpipe`. diff --git a/pyproject.toml b/pyproject.toml index 1e9cdfb9..8c535d6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta" [project] name = "udapi" -version = "0.5.1" +version = "0.5.2" description = "Python framework for processing Universal Dependencies data" readme = "README.md" requires-python = ">=3.9" -license = {text = "GNU General Public License v2 or later (GPLv2+)"} +license = {file = "LICENSE"} authors = [ {name = "Martin Popel", email = "popel@ufal.mff.cuni.cz"} ] From e618e6cce9c208c5281fbc0eba58a35e1a3c0e53 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Dec 2025 15:17:22 +0000 Subject: [PATCH 5/6] Fix license classifier to match GPL v3 in LICENSE file Co-authored-by: martinpopel <724617+martinpopel@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8c535d6a..6017401a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ authors = [ ] classifiers = [ "Programming Language :: Python :: 3", - "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", ] dependencies = [ From 8822413d65d1afa4f598953da17d0e52101983d7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Dec 2025 15:30:44 +0000 Subject: [PATCH 6/6] Use SPDX license identifier and add ufal.udpipe to optional dependencies Co-authored-by: martinpopel <724617+martinpopel@users.noreply.github.com> --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6017401a..18d5c717 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,13 +8,12 @@ version = "0.5.2" description = "Python framework for processing Universal Dependencies data" readme = "README.md" requires-python = ">=3.9" -license = {file = "LICENSE"} +license = "GPL-3.0-or-later" authors = [ {name = "Martin Popel", email = "popel@ufal.mff.cuni.cz"} ] classifiers = [ "Programming Language :: Python :: 3", - "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", ] dependencies = [ @@ -27,6 +26,7 @@ Homepage = "https://github.com/udapi/udapi-python" [project.optional-dependencies] test = ["pytest"] +udpipe = ["ufal.udpipe"] [project.scripts] udapy = "udapi.cli:main"