b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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-hatch-vcs |
| 11 | PKG_VERSION:=0.4.0 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=hatch-vcs |
| 15 | PYPI_SOURCE_NAME:=hatch_vcs |
| 16 | PKG_HASH:=093810748fe01db0d451fabcf2c1ac2688caefd232d4ede967090b1c1b07d9f7 |
| 17 | |
| 18 | PKG_LICENSE:=MIT |
| 19 | PKG_LICENSE_FILES:=LICENSE.txt |
| 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-hatchling/host \ |
| 28 | python-setuptools-scm/host |
| 29 | |
| 30 | include ../pypi.mk |
| 31 | include $(INCLUDE_DIR)/package.mk |
| 32 | include $(INCLUDE_DIR)/host-build.mk |
| 33 | include ../python3-package.mk |
| 34 | include ../python3-host-build.mk |
| 35 | |
| 36 | define Package/python3-hatch-vcs |
| 37 | SECTION:=lang |
| 38 | CATEGORY:=Languages |
| 39 | SUBMENU:=Python |
| 40 | TITLE:=Hatch plugin for versioning with your preferred VCS |
| 41 | URL:=https://github.com/ofek/hatch-vcs |
| 42 | DEPENDS:=+python3-light +python3-hatchling +python3-setuptools-scm |
| 43 | BUILDONLY:=1 |
| 44 | endef |
| 45 | |
| 46 | define Package/python3-hatch-vcs/description |
| 47 | This provides a plugin for Hatch that uses your preferred version |
| 48 | control system (like Git) to determine project versions. |
| 49 | endef |
| 50 | |
| 51 | $(eval $(call Py3Package,python3-hatch-vcs)) |
| 52 | $(eval $(call BuildPackage,python3-hatch-vcs)) |
| 53 | $(eval $(call BuildPackage,python3-hatch-vcs-src)) |
| 54 | $(eval $(call HostBuild)) |