Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4.6k
[BEAM-378] integrate setuptools in Maven build#537
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
427be2423f42c3061ef0a98ca6f82acaed243bcc7a231ff541d815bb97b52add7874fe12fedce831d4b0d67610879b69fd1895047dcb5ea3e424fbf137c4a0a0a788e65fde8dc952964c583094b045a9727917a0456501e08502f73da6884367469093c31df72d128bf0290bdebe4d0eaa8e9d149b19010a193fad733f8662646b571b59bf7f3c4cb36b4d802d19489dc1e983a38a3a8684cfb2db7dd39f1f354fc7be1d36e616d869fe354ec578d26457f5578779bbc7093e72620bfb23003aca9232071d9378afd7ddf0e044d8dcb82ec1cd9432f4422207a0ecce5d23289251b13f5f0d79f7be837b3b404a4232a6348e9fc5f0403c425cf0bb304c60253f7c8a13909889d5014ed182a851535c6e2c7020e7386b3419bbd48b3File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
| # This file is used from Python to sync versions | ||
| include pom.xml |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,169 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <parent> | ||
| <groupId>org.apache.beam</groupId> | ||
| <artifactId>beam-sdks-parent</artifactId> | ||
| <version>0.3.0-incubating-SNAPSHOT</version> | ||
| <relativePath>../pom.xml</relativePath> | ||
| </parent> | ||
| <artifactId>beam-sdks-python</artifactId> | ||
| <packaging>pom</packaging> | ||
| <name>Apache Beam :: SDKs :: Python</name> | ||
| <properties> | ||
| <python.interpreter.bin>python2</python.interpreter.bin> | ||
| <python.pip.bin>pip2</python.pip.bin> | ||
| <python.build.base>${project.build.directory}/build</python.build.base> | ||
| <python.user.base>${project.build.directory}/python</python.user.base> | ||
| </properties> | ||
| <build> | ||
| <pluginManagement> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>exec-maven-plugin</artifactId> | ||
| <executions> | ||
| <execution> | ||
| <!-- trick by @aaltay to skip inheritance --> | ||
| <phase>none</phase> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| </plugins> | ||
| </pluginManagement> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>exec-maven-plugin</artifactId> | ||
| <executions> | ||
| <execution> | ||
| <id>setuptools-clean</id> | ||
| <phase>clean</phase> | ||
| <goals> | ||
| <goal>exec</goal> | ||
| </goals> | ||
| <configuration> | ||
| <executable>${python.interpreter.bin}</executable> | ||
| <arguments> | ||
| <argument>setup.py</argument> | ||
| <argument>clean</argument> | ||
| ||
| </arguments> | ||
| </configuration> | ||
| </execution> | ||
| <execution> | ||
| <id>setuptools-build</id> | ||
| <phase>compile</phase> | ||
| <goals> | ||
| <goal>exec</goal> | ||
| </goals> | ||
| <configuration> | ||
| <executable>${python.interpreter.bin}</executable> | ||
| <arguments> | ||
| <argument>setup.py</argument> | ||
| <argument>build</argument> | ||
| <argument>--build-base</argument> | ||
| <argument>${python.build.base}</argument> | ||
| </arguments> | ||
| </configuration> | ||
| </execution> | ||
| <execution> | ||
| <id>setup-test-create-python-base</id> | ||
| <phase>process-test-resources</phase> | ||
| <goals> | ||
| <goal>exec</goal> | ||
| </goals> | ||
| <configuration> | ||
| <executable>mkdir</executable> | ||
| <arguments> | ||
| <argument>-p</argument> | ||
| <argument>${python.user.base}</argument> | ||
| </arguments> | ||
| </configuration> | ||
| </execution> | ||
| <execution> | ||
| <id>setup-test-tox</id> | ||
| <phase>process-test-resources</phase> | ||
| <goals> | ||
| <goal>exec</goal> | ||
| </goals> | ||
| <configuration> | ||
| <executable>${python.pip.bin}</executable> | ||
| <arguments> | ||
| <argument>install</argument> | ||
| <argument>--user</argument> | ||
| <argument>--upgrade</argument> | ||
| <argument>--ignore-installed</argument> | ||
| <argument>tox</argument> | ||
| </arguments> | ||
| <environmentVariables> | ||
| <PYTHONUSERBASE>${python.user.base}</PYTHONUSERBASE> | ||
| </environmentVariables> | ||
| </configuration> | ||
| </execution> | ||
| <execution> | ||
| <id>setuptools-test</id> | ||
| <phase>test</phase> | ||
| <goals> | ||
| <goal>exec</goal> | ||
| </goals> | ||
| <configuration> | ||
| <executable>${python.user.base}/bin/tox</executable> | ||
| <arguments> | ||
| <argument>-e</argument> | ||
| <argument>py27</argument> | ||
| <argument>-c</argument> | ||
| <argument>tox.ini</argument> | ||
| </arguments> | ||
| <environmentVariables> | ||
| <PYTHONUSERBASE>${python.user.base}</PYTHONUSERBASE> | ||
| </environmentVariables> | ||
| </configuration> | ||
| </execution> | ||
| <execution> | ||
| <id>setuptools-sdist</id> | ||
| <phase>package</phase> | ||
| <goals> | ||
| <goal>exec</goal> | ||
| </goals> | ||
| <configuration> | ||
| <executable>${python.interpreter.bin}</executable> | ||
| <arguments> | ||
| <argument>setup.py</argument> | ||
| <argument>sdist</argument> | ||
| <argument>--dist-dir</argument> | ||
| <argument>${project.build.directory}</argument> | ||
| </arguments> | ||
| <environmentVariables> | ||
| <PYTHONUSERBASE>${python.user.base}</PYTHONUSERBASE> | ||
| </environmentVariables> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </project> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python distribution will package this file and not any of its parents. Could you add a comment somewhere here that, in Python we use this to read the version string and and it is fine to package as a standalone file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'll add a comment in the
MANIFEST.infile.