Skip to content

Commit

Permalink
fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
bilucodota committed Aug 23, 2021
1 parent 86b47b7 commit f05d3b0
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions setup.py
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,
)

0 comments on commit f05d3b0

Please sign in to comment.