Skip to content

Commit

Permalink
This closes apache#2245
Browse files Browse the repository at this point in the history
  • Loading branch information
davorbonaci committed May 2, 2017
2 parents 4682238 + 6d5e1ff commit 3bb0f8e
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ env/
sdks/python/**/*.c
sdks/python/**/*.so
sdks/python/**/*.egg
sdks/python/LICENSE
sdks/python/NOTICE

# Ignore IntelliJ files.
.idea/
Expand Down
29 changes: 29 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1508,6 +1508,8 @@
<includes>
<include>**/*.pyc</include>
<include>**/*.egg-info/</include>
<include>**/sdks/python/LICENSE</include>
<include>**/sdks/python/NOTICE</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
Expand Down Expand Up @@ -1613,6 +1615,33 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<inherited>false</inherited>
<executions>
<execution>
<id>python-copy-resources</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/sdks/python</outputDirectory>
<resources>
<resource>
<directory>${basedir}</directory>
<includes>
<include>LICENSE</include>
<include>NOTICE</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
2 changes: 2 additions & 0 deletions sdks/python/MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
#

include README.md
include NOTICE
include LICENSE
2 changes: 1 addition & 1 deletion sdks/python/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<!-- trick by @aaltay to skip inheritance -->
<!-- trick to skip inheritance -->
<phase>none</phase>
</execution>
</executions>
Expand Down

0 comments on commit 3bb0f8e

Please sign in to comment.