Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
5a8808c7d0
|
|||
|
b345487052
|
|||
|
5e717f562a
|
|||
|
4b3bec365f
|
|||
|
50a513b8ac
|
@@ -1,9 +1,9 @@
|
|||||||
# Copyright 2020 Gentoo Authors
|
# Copyright 2020 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=8
|
||||||
PYTHON_COMPAT=( python3_{10..11} )
|
PYTHON_COMPAT=( python3_{11..13} )
|
||||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
|
||||||
SCM=""
|
SCM=""
|
||||||
if [ "${PV#9999}" != "${PV}" ] ; then
|
if [ "${PV#9999}" != "${PV}" ] ; then
|
||||||
@@ -31,19 +31,21 @@ LICENSE="GPL-3"
|
|||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="+lxml systemd"
|
IUSE="+lxml systemd"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="dev-python/beautifulsoup4[${PYTHON_USEDEP}]
|
||||||
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
|
|
||||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||||
lxml? ( dev-python/lxml[${PYTHON_USEDEP}] )
|
lxml? ( dev-python/lxml[${PYTHON_USEDEP}] )
|
||||||
dev-python/netaddr[${PYTHON_USEDEP}]
|
dev-python/netaddr[${PYTHON_USEDEP}]
|
||||||
dev-python/peewee[${PYTHON_USEDEP}]
|
dev-python/peewee[${PYTHON_USEDEP}]
|
||||||
>=dev-python/pymilter-1.5[${PYTHON_USEDEP}]"
|
>=dev-python/pymilter-1.0.5[${PYTHON_USEDEP}]"
|
||||||
|
|
||||||
python_install_all() {
|
python_install_all() {
|
||||||
distutils-r1_python_install_all
|
|
||||||
use systemd && systemd_dounit pyquarantine/misc/systemd/${PN}.service
|
use systemd && systemd_dounit pyquarantine/misc/systemd/${PN}.service
|
||||||
newinitd pyquarantine/misc/openrc/${PN}.initd ${PN}
|
newinitd pyquarantine/misc/openrc/${PN}.initd ${PN}
|
||||||
newconfd pyquarantine/misc/openrc/${PN}.confd ${PN}
|
newconfd pyquarantine/misc/openrc/${PN}.confd ${PN}
|
||||||
|
insinto /etc/pyquarantine
|
||||||
|
doins pyquarantine/misc/pyquarantine.conf.default
|
||||||
|
doins -r pyquarantine/misc/templates
|
||||||
|
distutils-r1_python_install_all
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
|
|||||||
@@ -14,4 +14,4 @@ select version in $(find . -maxdepth 1 -type f -name "pyquarantine-*.*.*.tar.gz"
|
|||||||
[ -n "${version}" ] && break
|
[ -n "${version}" ] && break
|
||||||
echo -e "\ninvalid choice\n\n${msg}"
|
echo -e "\ninvalid choice\n\n${msg}"
|
||||||
done
|
done
|
||||||
${TWINE} upload "${version}"{.tar.gz,-*.whl}
|
${TWINE} upload -u __token__ "${version}"{.tar.gz,-*.whl}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ __all__ = [
|
|||||||
"lists",
|
"lists",
|
||||||
"QuarantineMilter"]
|
"QuarantineMilter"]
|
||||||
|
|
||||||
__version__ = "2.1.0"
|
__version__ = "2.1.1"
|
||||||
|
|
||||||
from pyquarantine import _runtime_patches
|
from pyquarantine import _runtime_patches
|
||||||
|
|
||||||
|
|||||||
16
setup.py
16
setup.py
@@ -32,22 +32,6 @@ setup(name = "pyquarantine",
|
|||||||
"pyquarantine=pyquarantine.cli:main",
|
"pyquarantine=pyquarantine.cli:main",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
data_files = [
|
|
||||||
(
|
|
||||||
"/etc/pyquarantine",
|
|
||||||
[
|
|
||||||
"pyquarantine/misc/pyquarantine.conf.default"
|
|
||||||
]
|
|
||||||
), (
|
|
||||||
"/etc/pyquarantine/templates",
|
|
||||||
[
|
|
||||||
"pyquarantine/misc/templates/disclaimer_html.template",
|
|
||||||
"pyquarantine/misc/templates/disclaimer_text.template",
|
|
||||||
"pyquarantine/misc/templates/notification.template",
|
|
||||||
"pyquarantine/misc/templates/removed.png"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
],
|
|
||||||
install_requires = ["pymilter >= 1.5", "jsonschema", "netaddr", "beautifulsoup4[lxml]", "peewee"],
|
install_requires = ["pymilter >= 1.5", "jsonschema", "netaddr", "beautifulsoup4[lxml]", "peewee"],
|
||||||
python_requires = ">=3.10"
|
python_requires = ">=3.10"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user