Skip to content

Commit

Permalink
Merge pull request #28067 from ytausch/streamlit-searchbox
Browse files Browse the repository at this point in the history
add streamlit-searchbox
  • Loading branch information
ocefpaf authored Nov 1, 2024
2 parents 2244376 + 818f623 commit c23ff9c
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
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",)),
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

0 comments on commit c23ff9c

Please sign in to comment.