Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add streamlit-searchbox #28067

Merged
merged 3 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <yannik.tausch@quantco.com>
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",)),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can, please report this upstream.

include_package_data=True,
classifiers=[],
python_requires=">=3.9, !=3.9.7",
--
2.46.1

44 changes: 44 additions & 0 deletions recipes/streamlit-searchbox/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{% set name = "streamlit-searchbox" %}
{% set version = "0.1.18" %}

package:
name: {{ name|lower }}
version: {{ version }}

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
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
number: 0

requirements:
host:
- python >=3.10
- pip
- setuptools
run:
- python >=3.10
- streamlit >=1.10.0

test:
imports:
- streamlit_searchbox
commands:
- pip check
requires:
- pip

about:
home: https://github.com/m-wrzr/streamlit-searchbox
summary: Autocomplete Searchbox
license: MIT
license_file: LICENSE

extra:
recipe-maintainers:
- ytausch