From 63b96f11456e987a9c54267e9d8020acc5d4cc9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Eustace?= <sebastien@eustace.io>
Date: Thu, 20 May 2021 11:30:29 +0200
Subject: [PATCH] Include tests as standard includes and not packages

Co-Authored-By: Kye W. Shi <3887189+kwshi@users.noreply.github.com>
---
 pyproject.toml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 8834d205..d086070e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -10,11 +10,10 @@ readme = "README.md"
 homepage = "https://github.com/sdispater/tomlkit"
 repository = "https://github.com/sdispater/tomlkit"
 
-packages = [
-    {include = "tomlkit"},
-    {include = "tests", format = "sdist"}
+include = [
+  { path = "tomlkit/py.typed" },
+  { path = "tests", format = "sdist" }
 ]
-include = ["tomlkit/py.typed"]
 
 [tool.poetry.dependencies]
 python = "~2.7 || ^3.5"