Skip to content

Commit 2b12f17

Browse files
committed
Remove support for setuptools, use poetry only (#178)
That means we also don't need MANIFEST.in and check-manifest any more.
1 parent 56e47b8 commit 2b12f17

File tree

9 files changed

+10
-156
lines changed

9 files changed

+10
-156
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
- name: Run code quality tests with tox
2323
run: tox
2424
env:
25-
TOXENV: black,flake8,isort,mypy,docs,manifest
25+
TOXENV: black,flake8,isort,mypy,docs

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ jobs:
1919

2020
- name: Build wheel and source tarball
2121
run: |
22-
pip install wheel
23-
python setup.py sdist bdist_wheel
24-
22+
pip install poetry
23+
poetry build
2524
- name: Publish a Python distribution to PyPI
2625
uses: pypa/gh-action-pypi-publish@release/v1
2726
with:

MANIFEST.in

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

poetry.lock

Lines changed: 1 addition & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ packages = [
3131
{ include = '.readthedocs.yaml', format = "sdist" },
3232
{ include = 'poetry.lock', format = "sdist" },
3333
{ include = 'tox.ini', format = "sdist" },
34-
{ include = 'setup.cfg', format = "sdist" },
3534
{ include = 'CODEOWNERS', format = "sdist" },
36-
{ include = 'MANIFEST.in', format = "sdist" },
3735
{ include = 'SECURITY.md', format = "sdist" }
3836
]
3937

@@ -66,7 +64,6 @@ black = "22.8.0"
6664
flake8 = "^5.0"
6765
isort = "^5.10"
6866
mypy = "0.971"
69-
check-manifest = ">=0.48,<1"
7067
bump2version = ">=1.0,<2"
7168

7269
[tool.poetry.group.doc]
@@ -150,5 +147,5 @@ timeout = "100"
150147
filterwarnings = "ignore::pytest.PytestConfigWarning"
151148

152149
[build-system]
153-
requires = ["poetry_core>=1.2,<2", "setuptools>=65,<70"]
150+
requires = ["poetry_core>=1.2,<2"]
154151
build-backend = "poetry.core.masonry.api"

setup.cfg

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

setup.py

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

tests/benchmarks/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Benchmarks for graphql
22
3-
Benchmarks are disabled (only executed as tests) by default in setup.cfg.
3+
Benchmarks are disabled (only executed as tests) by default in pyproject.toml.
44
You can enable them with --benchmark-enable if your want to execute them.
55
66
E.g. in order to execute all the benchmarks with tox using Python 3.9::

tox.ini

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py3{7,8,9,10}, black, flake8, isort, mypy, docs, manifest
2+
envlist = py3{7,8,9,10}, black, flake8, isort, mypy, docs
33
isolated_build = true
44

55
[gh-actions]
@@ -13,19 +13,19 @@ python =
1313
basepython = python3.9
1414
deps = black==22.8.0
1515
commands =
16-
black src tests setup.py -t py39 --check
16+
black src tests -t py39 --check
1717

1818
[testenv:flake8]
1919
basepython = python3.9
2020
deps = flake8>=5,<6
2121
commands =
22-
flake8 src tests setup.py
22+
flake8 src tests
2323

2424
[testenv:isort]
2525
basepython = python3.9
2626
deps = isort>=5.10,<6
2727
commands =
28-
isort src tests setup.py --check-only
28+
isort src tests --check-only
2929

3030
[testenv:mypy]
3131
basepython = python3.9
@@ -43,12 +43,6 @@ deps =
4343
commands =
4444
sphinx-build -b html -nEW docs docs/_build/html
4545

46-
[testenv:manifest]
47-
basepython = python3.9
48-
deps = check-manifest>=0.48,<1
49-
commands =
50-
check-manifest -v
51-
5246
[testenv]
5347
deps =
5448
pytest>=7.1,<8

0 commit comments

Comments
 (0)