File: 0001-Prevent-examples-from-getting-installed-directly.patch

package info (click to toggle)
python-mercadopago 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,104 kB
  • sloc: python: 2,191; makefile: 4
file content (29 lines) | stat: -rw-r--r-- 796 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Fri, 29 Aug 2025 20:59:36 +0000
Subject: Prevent examples from getting installed directly.

---
 pyproject.toml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index 7b0252a..a947759 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -2,6 +2,9 @@
 requires = ["setuptools >= 61.0"]
 build-backend = "setuptools.build_meta"
 
+[tool.setuptools.packages.find]
+exclude = ["mercadopago.examples*"]
+
 [project]
 name = "mercadopago"
 version = "2.3.0"
@@ -38,4 +41,4 @@ testing = [
 
 [project.urls]
 Homepage = "https://mercadopago.com"
-Repository = "https://github.com/mercadopago/sdk-python"
\ No newline at end of file
+Repository = "https://github.com/mercadopago/sdk-python"