Skip to content

Commit

Permalink
don't use old streamlit versions, remove tests from package
Browse files Browse the repository at this point in the history
  • Loading branch information
ytausch committed Oct 31, 2024
1 parent fddf3ac commit 2c6bb3a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From 80f2995dc85335719602ec3ec3d7b6b32c5445a0 Mon Sep 17 00:00:00 2001
From: Yannik Tausch <[email protected]>
Date: Thu, 31 Oct 2024 18:45:50 +0100
Subject: [PATCH] remove tests from distribution

---
MANIFEST.in | 1 +
setup.py | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/MANIFEST.in b/MANIFEST.in
index 5dd2aa4..ef437b0 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1 +1,2 @@
recursive-include streamlit_searchbox/frontend/build *
+recursive-exclude tests *
diff --git a/setup.py b/setup.py
index 7480aee..8ebf3c3 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ setuptools.setup(
+ "and provides a list of suggestions based on a provided function",
long_description_content_type="text/plain",
url="https://github.com/m-wrzr/streamlit-searchbox",
- packages=setuptools.find_packages(),
+ packages=setuptools.find_packages(exclude=("tests",)),
include_package_data=True,
classifiers=[],
python_requires=">=3.9, !=3.9.7",
--
2.46.1

4 changes: 3 additions & 1 deletion recipes/streamlit-searchbox/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ package:
source:
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/streamlit_searchbox-{{ version }}.tar.gz
sha256: fb94290a46cfab4b7be41fb5703b20b4f2ef52d94cadc6e6068ffa9caa4eeed5
patches:
- 0001-remove-tests-from-distribution.patch

build:
noarch: python
Expand All @@ -21,7 +23,7 @@ requirements:
- setuptools
run:
- python >=3.10
- streamlit >=1.0
- streamlit >=1.10.0

test:
imports:
Expand Down

0 comments on commit 2c6bb3a

Please sign in to comment.