We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd57b02 commit 882524dCopy full SHA for 882524d
setup.py
@@ -12,6 +12,17 @@
12
long_description = readme.read()
13
14
15
+def get_packages(package):
16
+ """
17
+ Return root package and all sub-packages.
18
19
+ return [
20
+ dirpath
21
+ for dirpath, dirnames, filenames in os.walk(package)
22
+ if os.path.exists(os.path.join(dirpath, '__init__.py'))
23
+ ]
24
+
25
26
if sys.argv[-1] == 'publish':
27
os.system('python setup.py sdist upload')
28
os.system('python setup.py bdist_wheel upload')
@@ -30,7 +41,7 @@
30
41
license='MIT',
31
42
keywords='jwt json web token security signing',
32
43
url='http://github.com/jpadilla/pyjwt',
33
- packages=['jwt'],
44
+ packages=get_packages('jwt'),
34
45
scripts=['bin/jwt'],
35
46
long_description=long_description,
36
47
classifiers=[
0 commit comments