streamlit
69 строк · 1.9 Кб
1# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2024)
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15{% set package_data = load_setup_py_data() %}
16
17
18package:
19name: {{ package_data.get('name')|lower }}
20version: {{ package_data.get('version') }}
21
22source:
23path: ..
24
25build:
26number: {{ environ.get('CONDA_BUILD_NUMBER', 0)|int }}
27noarch: python
28script: python -m pip install . -vv
29entry_points:
30{% for ep in package_data.get('entry_points').get('console_scripts') %}
31- {{ ep }}
32{% endfor %}
33script_env:
34- GIT_HASH
35- SNOWPARK_CONDA_BUILD
36
37requirements:
38host:
39- pip
40- python {{ package_data.get('python_requires') }}
41run:
42{% for req in package_data.get('install_requires', []) %}
43# 2022.07.01 - temporarily set protobuf's lower bound to 3.11 to work
44# around a conda resolution issue
45{% if 'protobuf' in req %}
46- protobuf >=3.11, <4
47# Conda doesn't support the `platform_system` conditional that pip does.
48# We may need to figure out how to avoid installing watchdog on MacOS
49# by default in our conda distribution due to this.
50{% elif 'watchdog' in req %}
51- watchdog
52{% else %}
53- {{ req }}
54{% endif %}
55{% endfor %}
56
57test:
58imports:
59- streamlit
60commands:
61- pip check
62requires:
63- pip
64
65about:
66home: https://streamlit.io
67summary: A faster way to build and share data apps
68license: Apache-2.0
69license_file: LICENSE
70