Skip to content

Commit

Permalink
Fix installing entry points
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mgorny authored and bbc2 committed Mar 12, 2022
1 parent 157282c commit 06c645c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Add `encoding` (`Optional[str]`) parameter to `get_key`, `set_key` and `unset_key`.
(#379 by [@bbc2])

### Fixed

- Use dict to specify the `entry_points` parameter of `setuptools.setup` (#376 by
[@mgorny]).

## [0.19.2] - 2021-11-11

### Fixed
Expand Down Expand Up @@ -296,6 +301,7 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
[@gongqingkui]: https://github.com/gongqingkui
[@greyli]: https://github.com/greyli
[@jadutter]: https://github.com/jadutter
[@mgorny]: https://github.com/mgorny
[@qnighy]: https://github.com/qnighy
[@snobu]: https://github.com/snobu
[@techalchemy]: https://github.com/techalchemy
Expand Down
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ def read_files(files):
extras_require={
'cli': ['click>=5.0', ],
},
entry_points='''
[console_scripts]
dotenv=dotenv.cli:cli
''',
entry_points={
"console_scripts": [
"dotenv=dotenv.cli:cli",
],
},
license='BSD-3-Clause',
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down

0 comments on commit 06c645c

Please sign in to comment.