dev-python/python-dotenv: Fix installing entry points

Closes: https://bugs.gentoo.org/833389
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-02-15 10:37:11 +01:00
parent 62c09f5146
commit ff1653aa82
2 changed files with 27 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
diff --git a/setup.py b/setup.py
index a8122d3..c7bfe82 100644
--- a/setup.py
+++ b/setup.py
@@ -36,10 +36,12 @@ setup(
extras_require={
'cli': ['click>=5.0', ],
},
- entry_points='''
- [console_scripts]
- dotenv=dotenv.cli:cli
- ''',
+ entry_points={
+ "console_scripts": [
+ "dotenv=dotenv.cli:cli",
+ "python-dotenv=dotenv.cli:cli",
+ ],
+ },
license='BSD-3-Clause',
classifiers=[
'Development Status :: 5 - Production/Stable',

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -25,7 +25,11 @@ DEPEND="
DOCS=( CHANGELOG.md README.md )
PATCHES=(
"${FILESDIR}"/${PN}-0.18.0-second-entrypoint.patch # bug 798648
# rename the entry point (note: old name is needed in tests)
# https://bugs.gentoo.org/798648
# also fix syntax since it doesn't seem to work anymore
# https://bugs.gentoo.org/833389
"${FILESDIR}"/python-dotenv-0.19.2-entry-points.patch
)
distutils_enable_tests --install pytest