streamlit

Форк
0
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

18
package:
19
  name: {{ package_data.get('name')|lower }}
20
  version: {{ package_data.get('version') }}
21

22
source:
23
  path: ..
24

25
build:
26
  number: {{ environ.get('CONDA_BUILD_NUMBER', 0)|int }}
27
  noarch: python
28
  script: python -m pip install . -vv
29
  entry_points:
30
    {% for ep in package_data.get('entry_points').get('console_scripts') %}
31
      - {{ ep }}
32
    {% endfor %}
33
  script_env:
34
   - GIT_HASH
35
   - SNOWPARK_CONDA_BUILD
36

37
requirements:
38
  host:
39
    - pip
40
    - python {{ package_data.get('python_requires') }}
41
  run:
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

57
test:
58
  imports:
59
    - streamlit
60
  commands:
61
    - pip check
62
  requires:
63
    - pip
64

65
about:
66
  home: https://streamlit.io
67
  summary: A faster way to build and share data apps
68
  license: Apache-2.0
69
  license_file: LICENSE
70

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.