37 lines
863 B
YAML
37 lines
863 B
YAML
{% set version_match = load_file_regex(load_file="pyzebra/__init__.py", regex_pattern='__version__ = "(.+?)"') %}
|
|
{% set version = version_match[1] %}
|
|
{% set pyproject = load_file_data('pyproject.toml') %}
|
|
|
|
package:
|
|
name: {{ pyproject['project']['name'] }}
|
|
version: {{ version }}
|
|
|
|
source:
|
|
path: ..
|
|
|
|
build:
|
|
script: python -m pip install .
|
|
noarch: python
|
|
entry_points:
|
|
- pyzebra = pyzebra.app.cli:main
|
|
|
|
requirements:
|
|
host:
|
|
- python >=3.8
|
|
- hatchling
|
|
run:
|
|
- python >=3.8
|
|
{% for dep in pyproject['project']['dependencies'] %}
|
|
- {{ dep }}
|
|
{% endfor %}
|
|
|
|
|
|
about:
|
|
home: {{ pyproject['project']['urls']['Homepage'] }}
|
|
summary: {{ pyproject['project']['description'] }}
|
|
license: {{ pyproject['project']['license'] }}
|
|
license_file:
|
|
{% for lf in pyproject['project']['license-files'] %}
|
|
- {{ lf }}
|
|
{% endfor %}
|