Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add long description to published packages #91

Merged
merged 2 commits into from
Aug 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/distTasks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ fun ProjectWithOptions.prepareDistributionTasks() {
dependsOn("installHintRemoverRequirements")
}
from(distributionPath)
from("README.md")
into(distribBuildPath)
exclude(".idea/**")

Expand Down
18 changes: 18 additions & 0 deletions distrib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions jupyter-lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ project.version = rootProject.version

dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
}
1 change: 1 addition & 0 deletions jupyter-lib/src/main/kotlin/jupyter/kotlin/context.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down