Files
bpfire/lfs/python3-daemon
Adolf Belka d8c94dabb5 python3-daemon: Update to version 2.3.1 and to work with python-3.10.8
- Updated from version 2.3.0 to 2.3.1
- Update of rootfile
- Changelog
    Version 2.3.1
	Bugs Fixed:
		* Avoid operations on a closed stream file when detecting a socket.
		  Closes: Pagure #64. Thanks to Mark Richman for the report.
		* Correct use of names to allow `from daemon import *`.
		  Closes: Pagure #65. Thanks to July Tikhonov for the report.
	Changed:
		* Speed daemon start time by computing candidate file descriptors once.
		  Closes: Pagure #40. Thanks to Alex Pyrgiotis for the report.
		* Remove incorrect double-patch of objects in test cases.
		  Closes: Pagure #62. Thanks to Miro Hrončok for the report.
		* Deprecate helper function `is_socket`.
		  The function incorrectly causes `ValueError` when the file object is already
		  closed. Migrate to the new `is_socket_file` helper function instead.
	Removed:
		* Drop backward-compatible helpers that provided Python 2 support.
		  * declaration of source encoding ‘utf-8’
		  * absolute_import
		  * unicode_literals
		  * module-level metaclass `type`
		  * unification of str with unicode type
		  * renamed standard library exceptions and modules
		  * raise exception from context exception
		  All these are default behaviour in Python 3 and need no special
		  handling.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-11-10 15:13:51 +00:00

77 lines
3.2 KiB
Plaintext

###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = 2.3.1
THISAPP = python-daemon-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = d1ede5fde50f179b0bf3e3ed89bd988469bae1f57667ab601d44452706a84264f55fc9beb89226e5fb1bb6d92f88fc2a5c2497628de16990407a0e01cfbacd84
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
download :$(patsubst %,$(DIR_DL)/%,$(objects))
b2 : $(subst %,%_BLAKE2,$(objects))
###############################################################################
# Downloading, checking, b2sum
###############################################################################
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
@$(CHECK)
$(patsubst %,$(DIR_DL)/%,$(objects)) :
@$(LOAD)
$(subst %,%_BLAKE2,$(objects)) :
@$(B2SUM)
###############################################################################
# Installation Details
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/python3-daemon-2.3.0-remove-twine-requirement-from-setup.py.patch
cd $(DIR_APP) && python3 setup.py install --root=/
@rm -rf $(DIR_APP)
@$(POSTBUILD)