aafc5d762561458f5326830e799468f85fc0f70a
[feed/packages.git] / lang / python / python-setuptools / 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
11 PKG_VERSION:=68.0.0
12 PKG_RELEASE:=1
13
14 PYPI_NAME:=setuptools
15 PKG_HASH:=baf1fdb41c6da4cd2eae722e135500da913332ab3f2f5c7d33af9b492acb5235
16
17 PKG_LICENSE:=MIT
18 PKG_LICENSE_FILES:=LICENSE
19 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20 CPE_ID:=cpe:/a:python:setuptools
21
22 include ../pypi.mk
23 include $(INCLUDE_DIR)/package.mk
24 include ../python3-package.mk
25
26 define Package/python3-setuptools/Default
27 SECTION:=lang
28 CATEGORY:=Languages
29 SUBMENU:=Python
30 URL:=https://github.com/pypa/setuptools
31 endef
32
33 define Package/python3-pkg-resources
34 $(call Package/python3-setuptools/Default)
35 TITLE:=Package resource API
36 DEPENDS:=+python3-light +python3-email +python3-logging +python3-urllib
37 endef
38
39 define Package/python3-setuptools
40 $(call Package/python3-setuptools/Default)
41 TITLE:=Fully-featured library to package Python projects
42 DEPENDS:=+python3 +python3-pkg-resources
43 endef
44
45 define Package/python3-setuptools/description/Default
46 Setuptools is a fully-featured, actively-maintained, and stable library
47 designed to facilitate packaging Python projects.
48
49 It helps developers to easily share reusable code (in the form of a
50 library) and programs (e.g., CLI/GUI tools implemented in Python), that
51 can be installed with pip and uploaded to PyPI.
52 endef
53
54 define Package/python3-pkg-resources/description
55 $(call Package/python3-setuptools/description/Default)
56
57 This is the pkg_resources module of setuptools.
58 endef
59
60 define Package/python3-setuptools/description
61 $(call Package/python3-setuptools/description/Default)
62
63 This is the main setuptools module.
64 endef
65
66 define Py3Package/python3-pkg-resources/filespec
67 +|$(PYTHON3_PKG_DIR)/pkg_resources
68 endef
69
70 define Py3Package/python3-setuptools/filespec
71 +|$(PYTHON3_PKG_DIR)
72 -|$(PYTHON3_PKG_DIR)/pkg_resources
73 endef
74
75 $(eval $(call Py3Package,python3-pkg-resources))
76 $(eval $(call Py3Package,python3-setuptools))
77
78 $(eval $(call BuildPackage,python3-pkg-resources))
79 $(eval $(call BuildPackage,python3-setuptools))
80
81 $(eval $(call BuildPackage,python3-pkg-resources-src))
82 $(eval $(call BuildPackage,python3-setuptools-src))