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 6af30df
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
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
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 6af30df

Please sign in to comment.