Skip to content

Commit

Permalink
Tweaks to get .whl file under the default size limit on PyPi.
Browse files Browse the repository at this point in the history
  • Loading branch information
metasim committed Aug 16, 2019
1 parent 2560bd4 commit ddf668a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

addCommandAlias("makeSite", "docs/makeSite")
addCommandAlias("previewSite", "docs/previewSite")
addCommandAlias("ghpagesPushSite", "docs/ghpagesPushSite")
addCommandAlias("console", "datasource/console")

// Prefer our own IntegrationTest config definition, which inherits from Test.
Expand All @@ -36,6 +37,7 @@ lazy val root = project
lazy val `rf-notebook` = project
.dependsOn(pyrasterframes)
.enablePlugins(RFAssemblyPlugin, DockerPlugin)
.settings(publish / skip := true)

lazy val core = project
.enablePlugins(BuildInfoPlugin)
Expand Down
3 changes: 2 additions & 1 deletion project/RFAssemblyPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ object RFAssemblyPlugin extends AutoPlugin {
override def projectSettings = Seq(
test in assembly := {},
autoImport.assemblyExcludedJarPatterns := Seq(
"scalatest.*".r
"scalatest.*".r,
"junit.*".r
),
assemblyShadeRules in assembly := {
val shadePrefixes = Seq(
Expand Down
2 changes: 1 addition & 1 deletion pyrasterframes/src/main/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def run(self):
if (not self.quick) or (not path.exists(dest)) or (path.getmtime(dest) < path.getmtime(file)):
print(_divided('Running %s' % name))
try:
pweave.weave(file=str(file), doctype=self.format)
pweave.weave(file=str(file), doctype=self.format, cache=True)
if self.format == 'markdown':
if not path.exists(dest):
raise FileNotFoundError("Markdown file '%s' didn't get created as expected" % dest)
Expand Down

0 comments on commit ddf668a

Please sign in to comment.