diff --git a/buildSrc/src/main/kotlin/distTasks.kt b/buildSrc/src/main/kotlin/distTasks.kt index a7690b59e..392922102 100644 --- a/buildSrc/src/main/kotlin/distTasks.kt +++ b/buildSrc/src/main/kotlin/distTasks.kt @@ -34,6 +34,7 @@ fun ProjectWithOptions.prepareDistributionTasks() { dependsOn("installHintRemoverRequirements") } from(distributionPath) + from("README.md") into(distribBuildPath) exclude(".idea/**") diff --git a/distrib/setup.py b/distrib/setup.py index 94de86734..73e193e8f 100644 --- a/distrib/setup.py +++ b/distrib/setup.py @@ -16,6 +16,7 @@ LIBRARIES_FOLDER_NAME = '.jupyter_kotlin' LIBRARIES_CACHE_FOLDER_NAME = 'cache' VERSION_FILE_NAME = 'VERSION' +README_FILE_NAME = 'README.md' def main(): @@ -26,16 +27,33 @@ def main(): abspath = path.abspath(__file__) current_dir = path.dirname(abspath) version_file = path.join(current_dir, VERSION_FILE_NAME) + readme_file = path.join(current_dir, README_FILE_NAME) with open(version_file, 'r') as f: version = f.read().strip() + with open(readme_file, 'r') as f: + long_description = f.read() + + classifiers = [ + "Framework :: Jupyter", + "Development Status :: 4 - Beta", + "Programming Language :: Other", + "License :: OSI Approved :: Apache Software License", + "Intended Audience :: Science/Research", + "Operating System :: OS Independent", + "Topic :: Software Development :: Interpreters", + ] + setup(name="kotlin-jupyter-kernel", author="JetBrains", version=version, url="https://github.com/Kotlin/kotlin-jupyter", license="Apache 2.0", description="Kotlin kernel for Jupyter notebooks", + long_description=long_description, + long_description_content_type="text/markdown", + classifiers=classifiers, packages=find_packages(), package_data=PACKAGE_DATA, data_files=DATA_FILES diff --git a/jupyter-lib/build.gradle.kts b/jupyter-lib/build.gradle.kts index 795e0e5c7..f377d8866 100644 --- a/jupyter-lib/build.gradle.kts +++ b/jupyter-lib/build.gradle.kts @@ -6,4 +6,5 @@ project.version = rootProject.version dependencies { implementation(kotlin("stdlib")) + implementation(kotlin("reflect")) } diff --git a/jupyter-lib/src/main/kotlin/jupyter/kotlin/context.kt b/jupyter-lib/src/main/kotlin/jupyter/kotlin/context.kt index 79f958969..53b9ddb7b 100644 --- a/jupyter-lib/src/main/kotlin/jupyter/kotlin/context.kt +++ b/jupyter-lib/src/main/kotlin/jupyter/kotlin/context.kt @@ -55,6 +55,7 @@ class KotlinVariableInfo(val value: Any?, val descriptor: KProperty<*>, val line val name: String get() = descriptor.name + @Suppress("MemberVisibilityCanBePrivate") val type: String get() = descriptor.returnType.toString()