diff options
| author | kimbo <kimballleavitt@gmail.com> | 2020-05-07 08:27:00 -0600 |
|---|---|---|
| committer | kimbo <kimballleavitt@gmail.com> | 2020-05-07 08:27:00 -0600 |
| commit | 181bcbb13d4697aa261bcccbf56500a9fecab9f0 (patch) | |
| tree | 0b30abc1683e005b249482fd2487588758d5b260 /pyproject.toml | |
| parent | 65e4a81a6ea5dffaa11b17ff427af2c623ff2e5e (diff) | |
| download | dnspython-181bcbb13d4697aa261bcccbf56500a9fecab9f0.tar.gz | |
make dnspython installable with pip
I tried installing dnspython from the master branch and it did not work.
The error I got was
"poetry.masonry.utils.module.ModuleOrPackageNotFound: No file/folder
found for package dnspython".
Turns out there have been some changes made to pip involving the build
system (see https://www.python.org/dev/peps/pep-0517).
Basically pip is using poetry to install your package.
Poetry has some requirements about how you structure your project (see
https://python-poetry.org/docs/basic-usage/#project-setup and
https://python-poetry.org/docs/pyproject/#packages).
This change allows you to install dnspython without running into that
particular issue.
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml index cd0d7bc..1111725 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,9 @@ version = "2.0.0" description = "DNS toolkit" authors = ["Bob Halley <halley@dnspython.org>"] license = "ISC" +packages = [ + {include = "dns"} +] [tool.poetry.dependencies] python = "^3.5" |
