Merge pull request #20731 from pprindeville/isc-dhcp-update-4.4.3-P1
[feed/packages.git] / lang / python / python-setuptools-scm / Makefile
1 #
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-setuptools-scm
11 PKG_VERSION:=7.1.0
12 PKG_RELEASE:=1
13
14 PYPI_NAME:=setuptools-scm
15 PYPI_SOURCE_NAME:=setuptools_scm
16 PKG_HASH:=6c508345a771aad7d56ebff0e70628bf2b0ec7573762be9960214730de278f27
17
18 PKG_LICENSE:=MIT
19 PKG_LICENSE_FILES:=LICENSE
20 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
21
22 PKG_HOST_ONLY:=1
23 HOST_BUILD_DEPENDS:= \
24 python3/host \
25 python-build/host \
26 python-installer/host \
27 python-wheel/host \
28 python-packaging/host \
29 python-tomli/host \
30 python-typing-extensions/host
31
32 include ../pypi.mk
33 include $(INCLUDE_DIR)/package.mk
34 include $(INCLUDE_DIR)/host-build.mk
35 include ../python3-package.mk
36 include ../python3-host-build.mk
37
38 define Package/python3-setuptools-scm
39 SECTION:=lang
40 CATEGORY:=Languages
41 SUBMENU:=Python
42 TITLE:=the blessed package to manage your versions by scm tags
43 URL:=https://github.com/pypa/setuptools_scm
44 DEPENDS:= \
45 +python3-light \
46 +python3-logging \
47 +python3-packaging \
48 +python3-setuptools \
49 +python3-tomli \
50 +python3-typing-extensions
51 BUILDONLY:=1
52 endef
53
54 define Package/python3-setuptools-scm/description
55 setuptools_scm extracts Python package versions from git or hg metadata
56 instead of declaring them as the version argument or in a SCM managed
57 file.
58
59 Additionally setuptools_scm provides setuptools with a list of files
60 that are managed by the SCM (i.e. it automatically adds all of the
61 SCM-managed files to the sdist). Unwanted files must be excluded by
62 discarding them via MANIFEST.in.
63 endef
64
65 $(eval $(call Py3Package,python3-setuptools-scm))
66 $(eval $(call BuildPackage,python3-setuptools-scm))
67 $(eval $(call BuildPackage,python3-setuptools-scm-src))
68 $(eval $(call HostBuild))