Skip to content

Commit 87665aa

Browse files
committed
Do not preserve tests in the package
1 parent ecc5e93 commit 87665aa

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,7 @@ include-package-data = true
5959

6060
[tool.setuptools.dynamic]
6161
version = {attr = "rest_registration._version.__version__"}
62+
63+
[tool.setuptools.packages.find]
64+
include = ["rest_registration*"]
65+
namespaces = false

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ plugins =
5757
django_settings_module = tests.default_settings
5858

5959
[tool:pytest]
60+
pythonpath = .
6061
DJANGO_SETTINGS_MODULE = tests.default_settings
6162
django_find_project = false
6263
addopts = --doctest-modules

setup.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env python
2-
from setuptools import find_packages, setup
2+
from setuptools import setup
33

4-
# see setup.cfg for package configuration
5-
setup(
6-
packages=find_packages(exclude=['tests.*', 'tests']),
7-
)
4+
# see pyproject.toml for package configuration
5+
setup()

0 commit comments

Comments
 (0)