-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86b47b7
commit f05d3b0
Showing
1 changed file
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,50 @@ | ||
import setuptools | ||
import os | ||
import codecs | ||
from glob import glob | ||
from src.jupyter_tabnine._version import __version__ as version | ||
|
||
with open('./README.rst') as f: | ||
|
||
def read(rel_path): | ||
here = os.path.abspath(os.path.dirname(__file__)) | ||
with codecs.open(os.path.join(here, rel_path), "r") as fp: | ||
return fp.read() | ||
|
||
|
||
def get_version(rel_path): | ||
for line in read(rel_path).splitlines(): | ||
if line.startswith("__version__"): | ||
delim = '"' if '"' in line else "'" | ||
return line.split(delim)[1] | ||
else: | ||
raise RuntimeError("Unable to find version string.") | ||
|
||
|
||
with open("./README.rst") as f: | ||
readme = f.read() | ||
|
||
setuptools.setup( | ||
name="jupyter_tabnine", | ||
version=version, | ||
version=get_version("src/jupyter_tabnine/_version.py"), | ||
url="https://github.com/wenmin-wu/jupyter-tabnine", | ||
author="Wenmin Wu", | ||
long_description=readme, | ||
long_description_content_type="text/x-rst", | ||
author_email="[email protected]", | ||
license="MIT", | ||
description="Jupyter notebook extension which support coding auto-completion based on Deep Learning", | ||
packages=setuptools.find_packages('src'), | ||
package_dir={'': 'src'}, | ||
data_files=[('static', glob('src/jupyter_tabnine/static/*'))], | ||
install_requires=['ipython', 'jupyter_core', 'nbconvert', 'notebook >=4.2',], | ||
python_requires='>=3.5', | ||
packages=setuptools.find_packages("src"), | ||
package_dir={"": "src"}, | ||
data_files=[("static", glob("src/jupyter_tabnine/static/*"))], | ||
install_requires=[ | ||
"ipython", | ||
"jupyter_core", | ||
"nbconvert", | ||
"notebook >=4.2", | ||
], | ||
python_requires=">=3.5", | ||
classifiers=[ | ||
'Framework :: Jupyter', | ||
"Framework :: Jupyter", | ||
], | ||
include_package_data=True, | ||
zip_safe=False | ||
zip_safe=False, | ||
) |