Skip to content

Commit 242dbe6

Browse files
authored
Convert setup.cfg and setup.py to pyproject.toml (#135)
* Remove setup.cfg and setup.py files. Use pyproject.toml only. * Use SPDX license identifier (`license = "GPL-3.0-or-later"`) to follow PEP 639 * add ufal.udpipe explicitly to optional dependencies * bump version to 0.5.2
1 parent b4a72dc commit 242dbe6

File tree

4 files changed

+35
-38
lines changed

4 files changed

+35
-38
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Python framework for processing Universal Dependencies data
66
[![Documentation Status](https://readthedocs.org/projects/udapi/badge/)](http://udapi.readthedocs.io)
77

88
## Requirements
9-
- You need Python 3.6 or higher.
9+
- You need Python 3.9 or higher.
1010
- If the [ufal.udpipe](https://pypi.python.org/pypi/ufal.udpipe/) parser is needed,
1111
make sure you have a C++11 compiler (e.g. [g++ 4.7 or newer](.travis.yml#L9))
1212
and install UDPipe with `pip3 install --user --upgrade ufal.udpipe`.

pyproject.toml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
11
[build-system]
2-
requires = [
3-
"setuptools>=42",
4-
"wheel"
5-
]
2+
requires = ["setuptools>=42", "wheel"]
63
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "udapi"
7+
version = "0.5.2"
8+
description = "Python framework for processing Universal Dependencies data"
9+
readme = "README.md"
10+
requires-python = ">=3.9"
11+
license = "GPL-3.0-or-later"
12+
authors = [
13+
{name = "Martin Popel", email = "popel@ufal.mff.cuni.cz"}
14+
]
15+
classifiers = [
16+
"Programming Language :: Python :: 3",
17+
"Operating System :: OS Independent",
18+
]
19+
dependencies = [
20+
"colorama",
21+
"termcolor",
22+
]
23+
24+
[project.urls]
25+
Homepage = "https://github.com/udapi/udapi-python"
26+
27+
[project.optional-dependencies]
28+
test = ["pytest"]
29+
udpipe = ["ufal.udpipe"]
30+
31+
[project.scripts]
32+
udapy = "udapi.cli:main"
33+
34+
[tool.setuptools]
35+
packages = {find = {}}
36+
include-package-data = true

setup.cfg

Lines changed: 0 additions & 29 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)