Skip to content

Commit 5c5fab1

Browse files
committed
Renamed jwt CLI script to jwt-cli to avoid issues with jwt script overlapping with the jwt package. Fixes jpadilla#130
1 parent 0d0d10c commit 5c5fab1

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ Change Log
44
All notable changes to this project will be documented in this file.
55
This project adheres to [Semantic Versioning](http://semver.org/).
66

7+
[Unreleased][unreleased]
8+
-------------------------------------------------------------------------
9+
### Changed
10+
- Renamed commandline script `jwt` to `jwt-cli` to avoid issues with the script clobbering the `jwt` module in some circumstances.
11+
12+
### Fixed
13+
714
[v1.4.2][1.4.2]
815
-------------------------------------------------------------------------
916
### Fixed
@@ -89,7 +96,7 @@ rarely used. Users affected by this should upgrade to 3.3+.
8996
- Fixed a security vulnerability by adding support for a whitelist of allowed `alg` values `jwt.decode(algorithms=[])`. [#110][110]
9097

9198

92-
[unreleased]: https://github.com/jpadilla/pyjwt/compare/1.3.0...HEAD
99+
[unreleased]: https://github.com/jpadilla/pyjwt/compare/1.4.2...HEAD
93100
[1.0.0]: https://github.com/jpadilla/pyjwt/compare/0.4.3...1.0.0
94101
[1.0.1]: https://github.com/jpadilla/pyjwt/compare/1.0.0...1.0.1
95102
[1.0.1]: https://github.com/jpadilla/pyjwt/compare/1.0.0...1.0.1

jwt/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def main():
3131
'''
3232
p = optparse.OptionParser(
3333
usage=usage,
34-
prog=__package__,
34+
prog='pyjwt',
3535
version='%s %s' % (__package__, __version__),
3636
)
3737

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def get_version(package):
7878
),
7979
entry_points={
8080
'console_scripts': [
81-
'jwt = jwt.__main__:main'
81+
'pyjwt = jwt.__main__:main'
8282
]
8383
}
8484
)

0 commit comments

Comments
 (0)