mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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',
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user