2 # Copyright (C) 2023 Jeffery To
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=python-setuptools-scm
14 PYPI_NAME
:=setuptools-scm
15 PYPI_SOURCE_NAME
:=setuptools_scm
16 PKG_HASH
:=6c508345a771aad7d56ebff0e70628bf2b0ec7573762be9960214730de278f27
19 PKG_LICENSE_FILES
:=LICENSE
20 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
23 HOST_BUILD_DEPENDS
:= \
26 python-installer
/host \
28 python-packaging
/host \
30 python-typing-extensions
/host
33 include $(INCLUDE_DIR
)/package.mk
34 include $(INCLUDE_DIR
)/host-build.mk
35 include ..
/python3-package.mk
36 include ..
/python3-host-build.mk
38 define Package
/python3-setuptools-scm
42 TITLE
:=the blessed package to manage your versions by scm
tags
43 URL
:=https
://github.com
/pypa
/setuptools_scm
50 +python3-typing-extensions
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
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.
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
))