blob: 87188fd743af0ea491e92a84d749ee5e7d640427 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2023 Jeffery To
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-flit-scm
11PKG_VERSION:=1.7.0
12PKG_RELEASE:=2
13
14PYPI_NAME:=flit-scm
15PYPI_SOURCE_NAME:=flit_scm
16PKG_HASH:=961bd6fb24f31bba75333c234145fff88e6de0a90fc0f7e5e7c79deca69f6bb2
17
18PKG_LICENSE:=MIT
19PKG_LICENSE_FILES:=LICENSE
20PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
21
22PKG_HOST_ONLY:=1
23HOST_BUILD_DEPENDS:= \
24 python3/host \
25 python-build/host \
26 python-installer/host \
27 python-flit-core/host \
28 python-setuptools-scm/host
29
30include ../pypi.mk
31include $(INCLUDE_DIR)/package.mk
32include $(INCLUDE_DIR)/host-build.mk
33include ../python3-package.mk
34include ../python3-host-build.mk
35
36define Package/python3-flit-scm
37 SECTION:=lang
38 CATEGORY:=Languages
39 SUBMENU:=Python
40 TITLE:=A PEP 518 build backend that uses setuptools_scm and flit
41 URL:=https://gitlab.com/WillDaSilva/flit_scm
42 DEPENDS:=+python3-light +python3-flit-core +python3-setuptools-scm
43 BUILDONLY:=1
44endef
45
46define Package/python3-flit-scm/description
47A PEP 518 build backend that uses setuptools_scm to generate a version
48file from your version control system, then flit_core to build the
49package.
50endef
51
52$(eval $(call Py3Package,python3-flit-scm))
53$(eval $(call BuildPackage,python3-flit-scm))
54$(eval $(call BuildPackage,python3-flit-scm-src))
55$(eval $(call HostBuild))