Skip to content

Commit add666f

Browse files
committed
Improve building a source distribution with poetry
1 parent 5e4d388 commit add666f

File tree

4 files changed

+64
-12
lines changed

4 files changed

+64
-12
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cache:
1818
- "$HOME/.cache/pip"
1919
- "$TRAVIS_BUILD_DIR/.tox"
2020
install:
21-
- pip install "poetry>=1,<2"
21+
- pip install "poetry>=1.1,<2"
2222
- poetry install
2323
script:
2424
- tox -e $TOXENV

poetry.lock

+47-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+15-4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ packages = [
2626
{ include = "graphql", from = "src" },
2727
{ include = "tests", format = "sdist" },
2828
{ include = "docs", format = "sdist" },
29+
{ include = '.bumpversion.cfg', format = "sdist" },
30+
{ include = '.coveragerc', format = "sdist" },
31+
{ include = '.editorconfig', format = "sdist" },
32+
{ include = '.flake8', format = "sdist" },
33+
{ include = '.mypy.ini', format = "sdist" },
34+
{ include = 'codecov.yml', format = "sdist" },
35+
{ include = 'poetry.lock', format = "sdist" },
36+
{ include = 'tox.ini', format = "sdist" },
37+
{ include = 'setup.cfg', format = "sdist" },
38+
{ include = 'CODEOWNERS', format = "sdist" },
39+
{ include = 'MANIFEST.in', format = "sdist" }
2940
]
3041

3142
[tool.poetry.dependencies]
@@ -35,7 +46,7 @@ python = "^3.6"
3546
pytest = "^6.2"
3647
pytest-asyncio = ">=0.14,<1"
3748
pytest-benchmark = "^3.2"
38-
pytest-cov = "^2.11"
49+
pytest-cov = "^2.10"
3950
pytest-describe = "^1.0"
4051
pytest-timeout = "^1.4"
4152
black = "20.8b1"
@@ -44,13 +55,13 @@ mypy = "0.800"
4455
codecov = "^2"
4556
sphinx = "^3.4"
4657
sphinx_rtd_theme = ">=0.5,<1"
47-
check-manifest = "0.40"
58+
check-manifest = ">=0.46,<1"
4859
bump2version = ">=1.0,<2"
4960
tox = "^3.19"
5061

5162
[tool.black]
5263
target-version = ['py36', 'py37', 'py38']
5364

5465
[build-system]
55-
requires = ["poetry>=1,<2"]
56-
build-backend = "poetry.masonry.api"
66+
requires = ["poetry_core>=1,<2"]
67+
build-backend = "poetry.core.masonry.api"

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ commands =
3030

3131
[testenv:manifest]
3232
basepython = python3.8
33-
deps = check-manifest==0.40
33+
deps = check-manifest>=0.46,<1
3434
commands =
3535
check-manifest -v
3636

0 commit comments

Comments
 (0)