Skip to content

Commit

Permalink
fix template directory doesn't copy into lib add added "if __name__…
Browse files Browse the repository at this point in the history
… == "__main__":"
  • Loading branch information
00Kai0 committed Feb 11, 2019
1 parent a8786d7 commit b1f3fb7
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import os
from setuptools import setup, find_packages

setup(
pjoin = os.path.join

setup_args = dict(
name='jupyterhub-nativeauthenticator',
version='0.0.1',
description='JupyterHub Native Authenticator',
Expand All @@ -11,7 +14,17 @@
packages=find_packages(),
install_requires=['jupyterhub>=0.8', 'bcrypt'],
package_data={
'templates': ['*.html'],
'common-credentials': ['common-credentials.txt'],
'nativeauthenticator': [
pjoin('templates', '*.html'),
'common-credentials.txt'
],
}
)


def main():
setup(**setup_args)


if __name__ == '__main__':
main()

0 comments on commit b1f3fb7

Please sign in to comment.