Skip to content

Commit e192bb6

Browse files
committed
change setup.py to pyproject.toml config
1 parent ea6900b commit e192bb6

File tree

5 files changed

+42
-64
lines changed

5 files changed

+42
-64
lines changed

.github/workflows/pytest.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,22 @@ jobs:
2020
sudo apt update
2121
sudo apt install -y default-jre
2222
python -m pip install --upgrade pip
23-
23+
2424
- name: Build queryparser
2525
run: |
2626
wget http://www.antlr.org/download/antlr-4.13.1-complete.jar
2727
make
28-
pip install -r requirements.txt -I -e .
28+
pip install -I -e .[test]
2929
pip install pytest-cov
3030
pip install coveralls
31-
31+
3232
- name: Run Tests
3333
run: |
3434
pytest lib/ --cov=queryparser
3535
coveralls --service=github
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
39-
38+
4039
coveralls:
4140
name: Indicate completion to coveralls
4241
needs: build

pyproject.toml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "queryparser-python3"
7+
description = "Parses PostgreSQL/MySQL and translates ADQL to PostgreSQL/MySQL."
8+
readme = "README.md"
9+
version = "0.7.0"
10+
license = {text = "Apache-2.0"}
11+
authors = [
12+
{name = "Gal Matijevic", email = "[email protected]"},
13+
]
14+
maintainers = [
15+
{name = "Kirill Makan", email = "[email protected]"},
16+
]
17+
requires-python = ">=3.9"
18+
dependencies = [
19+
"antlr4-python3-runtime==4.13.1",
20+
]
21+
22+
[project.optional-dependencies]
23+
test = [
24+
"pytest~=8.2.0",
25+
"PyYAML~=6.0",
26+
]
27+
28+
[tool.setuptools]
29+
packages = [
30+
"queryparser",
31+
"queryparser.adql",
32+
"queryparser.common",
33+
"queryparser.mysql",
34+
"queryparser.postgresql",
35+
"queryparser.exceptions"
36+
]
37+
package-dir = {"" = "lib"}
38+
include-package-data = true

requirements.txt

-3
This file was deleted.

setup.py

-46
This file was deleted.

src/queryparser/__init__.py

-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
__title__ = 'queryparser'
21
__version__ = '0.7.0'
3-
__author__ = 'Gal Matijevic'
4-
__email__ = '[email protected]'
5-
__maintainer__ = 'Kirill Makan'
6-
__maintainer_email__ = '[email protected]'
7-
__license__ = 'Apache-2.0'
8-
__copyright__ = 'Copyright 2016-2024 Leibniz Institute for Astrophysics' +\
9-
'Potsdam (AIP)'
10-
11-
VERSION = __version__

0 commit comments

Comments
 (0)