Skip to content

Commit 06c645c

Browse files
mgornybbc2
authored andcommitted
Fix installing entry points
Not sure why or when but the string syntax for entry points does not seem to work correctly anymore (no scripts are installed). Use the explicit list-in-dict syntax instead.
1 parent 157282c commit 06c645c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1212
- Add `encoding` (`Optional[str]`) parameter to `get_key`, `set_key` and `unset_key`.
1313
(#379 by [@bbc2])
1414

15+
### Fixed
16+
17+
- Use dict to specify the `entry_points` parameter of `setuptools.setup` (#376 by
18+
[@mgorny]).
19+
1520
## [0.19.2] - 2021-11-11
1621

1722
### Fixed
@@ -296,6 +301,7 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
296301
[@gongqingkui]: https://github.com/gongqingkui
297302
[@greyli]: https://github.com/greyli
298303
[@jadutter]: https://github.com/jadutter
304+
[@mgorny]: https://github.com/mgorny
299305
[@qnighy]: https://github.com/qnighy
300306
[@snobu]: https://github.com/snobu
301307
[@techalchemy]: https://github.com/techalchemy

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ def read_files(files):
3636
extras_require={
3737
'cli': ['click>=5.0', ],
3838
},
39-
entry_points='''
40-
[console_scripts]
41-
dotenv=dotenv.cli:cli
42-
''',
39+
entry_points={
40+
"console_scripts": [
41+
"dotenv=dotenv.cli:cli",
42+
],
43+
},
4344
license='BSD-3-Clause',
4445
classifiers=[
4546
'Development Status :: 5 - Production/Stable',

0 commit comments

Comments
 (0)