From dd1c76cae3641270618cdf93c34765dfb20d73c1 Mon Sep 17 00:00:00 2001 From: bebleo <15948170+bebleo@users.noreply.github.com> Date: Fri, 7 Jul 2023 19:11:37 -0400 Subject: [PATCH] Fix tests being installed as a package --- docs/CHANGELOG.md | 5 +++-- setup.cfg | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index bb4e4f1..89b658e 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,8 +4,9 @@ Release date: TBD -- remove redundant `smtpdfix.typing`. +- Removes redundant `smtpdfix.typing` module. - Drop support for PyPy 3.7 from testing. +- Fixes an issue where `tests` would be installed as a package by pip. [Issue #328](https://github.com/bebleo/smtpdfix/issues/328) reported by [thedamnedrhino](https://github.com/thedamnedrhino). ## Version 0.5.0 @@ -18,7 +19,7 @@ Previously `smtpdfix` would load a `.env` file automatically using `python-doten Previous versions used port 8025 by default, as of version 0.5.0 a random port is used instead. - As of version 0.5.0 Smtpdfix no longer uses `python-dotenv` to load a `.env` file by default. [Issue #274](https://github.com/bebleo/smtpdfix/274) reported by [Emmanuel Belair (@e-belair)](https://github.com/e-belair) -- A random unused port is used instead of the default 8025 port. [Issue #820](https://github.com/bebleo/smtpdfix/issues/280) reported by [Éloi Rivard](https://github.com/azmeuk) +- A random unused port is used instead of the default 8025 port. [Issue #280](https://github.com/bebleo/smtpdfix/issues/280) [Éloi Rivard](https://github.com/azmeuk) - Replaced the deprecated key `license_file` with `license_files` as per warning during build. ## Version 0.4.2 diff --git a/setup.cfg b/setup.cfg index 436b227..d39837a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -56,6 +56,12 @@ typing = [options.package_data] smtpdfix = py.typed +[options.packages.find] +exclude = + docs* + requirements* + tests* + [tool:pytest] testpaths = tests