You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ma...@apache.org on 2020/08/18 19:21:43 UTC
[ranger] branch master updated: RANGER-2927: Python client -
removed use of venv
This is an automated email from the ASF dual-hosted git repository.
madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new 2f7c088 RANGER-2927: Python client - removed use of venv
2f7c088 is described below
commit 2f7c08838339de37e98b4d3a663cae08f2a9710c
Author: Madhan Neethiraj <ma...@apache.org>
AuthorDate: Tue Aug 18 12:20:28 2020 -0700
RANGER-2927: Python client - removed use of venv
---
intg/pom.xml | 37 +++++++++++++++++++++++++++++++++++
intg/src/main/python/setup.py | 5 +++--
ranger-examples/sample-client/pom.xml | 34 --------------------------------
3 files changed, 40 insertions(+), 36 deletions(-)
diff --git a/intg/pom.xml b/intg/pom.xml
index d61900e..5a02d03 100644
--- a/intg/pom.xml
+++ b/intg/pom.xml
@@ -77,6 +77,43 @@
</execution>
</executions>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.6.1</version>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>dist</directory>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>${maven.exec.plugin.version}</version>
+ <executions>
+ <execution>
+ <configuration>
+ <skip>true</skip>
+ <executable>python3</executable>
+ <arguments>
+ <argument>src/main/python/setup.py</argument>
+ <argument>sdist</argument>
+ <argument>bdist_wheel</argument>
+ </arguments>
+ </configuration>
+ <id>pypi-dist</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<dependencies>
diff --git a/intg/src/main/python/setup.py b/intg/src/main/python/setup.py
index 839119d..89f2327 100644
--- a/intg/src/main/python/setup.py
+++ b/intg/src/main/python/setup.py
@@ -18,8 +18,9 @@
import setuptools
-with open("README.md", "r") as fh:
- long_description = fh.read()
+# with open("README.md", "r") as fh:
+# long_description = fh.read()
+long_description = "Apache Ranger Python client"
setuptools.setup(
name="apache-ranger",
diff --git a/ranger-examples/sample-client/pom.xml b/ranger-examples/sample-client/pom.xml
index d112c6f..e98afcc 100644
--- a/ranger-examples/sample-client/pom.xml
+++ b/ranger-examples/sample-client/pom.xml
@@ -30,40 +30,6 @@
<artifactId>sample-client</artifactId>
<build>
<plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.6.1</version>
- <configuration>
- <filesets>
- <fileset>
- <directory>venv</directory>
- </fileset>
- </filesets>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>${maven.exec.plugin.version}</version>
- <executions>
- <execution>
- <configuration>
- <executable>python3</executable>
- <arguments>
- <argument>-m</argument>
- <argument>venv</argument>
- <argument>venv</argument>
- </arguments>
- </configuration>
- <id>create-venv</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
<dependencies>