Skip to content

Commit

Permalink
Squashed release/connextdds-py/7.1.0 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcamposruiz committed Apr 11, 2023
1 parent 8b8780b commit 74d9ba8
Show file tree
Hide file tree
Showing 138 changed files with 7,128 additions and 1,939 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ rti_connext_dds-6.1.0/
platform/
package.cfg
pyproject.toml
!templates/pyproject.toml
MANIFEST.in
75 changes: 63 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ def getConnextddsBranch() {
pipeline{
agent none
options {
disableConcurrentBuilds()
disableConcurrentBuilds()
timeout(time: 8, unit: 'HOURS')
}
parameters {
booleanParam(defaultValue: false, description: 'Skip tests after building the wheel.', name: 'SKIP_TESTS')
}
stages{
stage("Build Wheels"){
Expand All @@ -28,6 +32,9 @@ pipeline{
agent {
label "docker"
}
environment {
CIBW_TEST_SKIP = "${params.SKIP_TESTS ? "*" : ""}"
}
stages{
stage("Build Wheels"){
steps{
Expand Down Expand Up @@ -55,7 +62,7 @@ pipeline{
onlyIfSuccessful: true
)
script{
if (env.BRANCH_NAME == 'develop') {
if (env.BRANCH_NAME =~ /(develop|release\/connextdds-py\/.*)/) {
docker.image('apihackers/twine').inside() {
withCredentials([
usernamePassword(
Expand All @@ -76,7 +83,7 @@ pipeline{
steps{
script {
docker.build("doc-image", '--build-arg USER_UID=$UID docs/').inside() {
sh('pip install wheelhouse/rti.connext-*-cp36*')
sh('pip install wheelhouse/rti.connext-*-cp38*')
sh('make -C docs html')
recordIssues(
qualityGates: [
Expand Down Expand Up @@ -108,11 +115,48 @@ pipeline{
}
}
}
stage('Upload documentation') {
stage('Upload Documentation') {
when {
expression{
// Only upload documentation on release and develop branch
env.BRANCH_NAME =~ /^release\/connextdds-py\/(.*)/ || env.BRANCH_NAME == "develop"
anyOf {
branch comparator: 'REGEXP', pattern: 'release/.*'
branch comparator: 'REGEXP', pattern: 'develop'
branch comparator: 'REGEXP', pattern: 'support/.*'
}
}
steps {
script {
def props = readProperties file: 'setup.cfg'
def version = props['version']
def zipName = "connext-py-docs-${version}.zip"
zip zipFile: zipName, dir: "docs/build/html/"

// We add a .0 to the version to match connextdds version on artifactory
def artifactoryDirectory = "connext-ci/documentation/${version}.0/"
rtUpload (
serverId: getRtiArtifactoryServerId(),
spec:
"""{
"files": [
{
"pattern": "${zipName}",
"target": "${artifactoryDirectory}",
"props": "rti.artifact.kind=documentation;rti.product.name=connext-py;rti.product.version=${version}.0"
}
]
}""",
failNoOp: true
)
}

}
}
stage('Publish Documentation') {
// We also upload the documentation to the internal docserver.
when {
anyOf {
branch comparator: 'REGEXP', pattern: 'release/.*'
branch comparator: 'REGEXP', pattern: 'develop'
branch comparator: 'REGEXP', pattern: 'support/.*'
}
}
steps {
Expand All @@ -130,17 +174,18 @@ pipeline{
}
stage("Build Darwin Wheels"){
agent {
label "darwin17-ci"
label "ci && darwin && clang12"
}
environment {
CI = 'true'
CIBW_TEST_SKIP = "${params.SKIP_TESTS ? "*" : ""}"
}
steps{
checkout BbS(
branches: [[name: getConnextddsBranch()]],
credentialsId: 'bitbucket-build-credentials',
extensions: [
[$class: 'CloneOption', honorRefspec: true, noTags: true, reference: '', shallow: true, timeout: 20],
[$class: 'CloneOption', honorRefspec: true, noTags: true, reference: '', shallow: true, timeout: 50],
[$class: 'RelativeTargetDirectory', relativeTargetDir: 'connextdds']
],
id: '6a11cf7f-10be-4997-b48f-e9eebb9ddc2f',
Expand All @@ -164,7 +209,7 @@ pipeline{
onlyIfSuccessful: true
)
script{
if (env.BRANCH_NAME == 'develop') {
if (env.BRANCH_NAME =~ /(develop|release\/connextdds-py\/.*)/) {
withPythonEnv("python3") {
sh "pip install twine"
withCredentials([
Expand All @@ -190,6 +235,9 @@ pipeline{
alwaysPull true
}
}
environment {
CIBW_TEST_SKIP = "${params.SKIP_TESTS ? "*" : ""}"
}
steps{
checkout BbS(
branches: [[name: getConnextddsBranch()]],
Expand Down Expand Up @@ -218,7 +266,7 @@ pipeline{
onlyIfSuccessful: true
)
script{
if (env.BRANCH_NAME == 'develop') {
if (env.BRANCH_NAME =~ /(develop|release\/connextdds-py\/.*)/) {
withPythonEnv("python") {
bat "pip install twine"
withCredentials([
Expand All @@ -244,6 +292,9 @@ pipeline{
alwaysPull true
}
}
environment {
CIBW_TEST_SKIP = "${params.SKIP_TESTS ? "*" : ""}"
}
steps{
checkout BbS(
branches: [[name: getConnextddsBranch()]],
Expand Down Expand Up @@ -272,7 +323,7 @@ pipeline{
onlyIfSuccessful: true
)
script{
if (env.BRANCH_NAME == 'develop') {
if (env.BRANCH_NAME =~ /(develop|release\/connextdds-py\/.*)/) {
withPythonEnv("python") {
bat "pip install twine"
withCredentials([
Expand Down
35 changes: 26 additions & 9 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
(c) 2020 Copyright, Real-Time Innovations, Inc. (RTI) All rights reserved.
Revised: 10/19/2022

RTI grants Licensee a license to use, modify, compile, and create derivative
works of the software solely for use with RTI Connext DDS. Licensee may
redistribute copies of the software provided that all such copies are subject
to this license. The software is provided "as is", with no warranty of any
type, including any warranty for fitness for any purpose. RTI is under no
obligation to maintain or support the software. RTI shall not be liable for
any incidental or consequential damages arising out of the use or inability to
use the software.
(c) 2020 Copyright, Real-Time Innovations, Inc. (RTI). All rights reserved.
RTI grants Licensee a license to use, modify, compile, and create derivative works of the accompanying software
(“Software”) solely for use with a validly licensed copy of RTI Connext DDS. The Software is not open source but
Licensee may redistribute copies of the Software provided that all such copies are subject to this license. All
redistributions of the Software must retain the above copyright notice, the conditions specified herein, and the
following disclaimers.
The Software is provided "as is", and RTI disclaims, to the maximum extent permitted by applicable law, all express
and implied representations, warranties and guarantees, including without limitation, the implied warranties of
merchantability, fitness for any particular purpose, satisfactory quality, and non-infringement of third-party rights.
RTI is under no obligation to maintain or support the software.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL RTI BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING WITHOUT LIMITATION, NEGLIGENCE OR OTHERWISE) ARISING OUT OF THE USE OR
INABILITY TO USE THE SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The Software may contain independent, third-party code that are subject to open source license terms and
conditions (such code, “Open Source Software”, and the respective open source license terms and conditions, the
“OSS License”). To the extent applicable, copies of the OSS License and any required notices for such Open Source
Software are included in the legal_notices.txt file, other accompanying notices file, or the accompanying
documentation. Nothing herein limits your rights under, or grants you rights that supersede, the OSS License
applicable to the corresponding Open Source Software. It is your responsibility to ensure that your use of Open
Source Software contained in the Software complies with the corresponding OSS License.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<p align="center">
<em>A full Connext DDS binding for Python</em>
<br />
<a href="https://community.rti.com/static/documentation/connext-dds/7.0.0/doc/api/connext_dds/api_python/index.html"><strong>Explore the documentation »</strong></a>
<a href="https://community.rti.com/static/documentation/connext-dds/7.1.0/doc/api/connext_dds/api_python/index.html"><strong>Explore the documentation »</strong></a>
<br />
<a href="https://community.rti.com/static/documentation/connext-dds/7.0.0/doc/manuals/connext_dds_professional/getting_started_guide/index.html">Getting Started</a>
<a href="https://community.rti.com/static/documentation/connext-dds/7.1.0/doc/manuals/connext_dds_professional/getting_started_guide/index.html">Getting Started</a>
·
<a href="https://community.rti.com/static/documentation/connext-dds/7.0.0/doc/api/connext_dds/api_python/building.html">Install</a>
<a href="https://community.rti.com/static/documentation/connext-dds/7.1.0/doc/api/connext_dds/api_python/building.html">Install</a>
·
<a href="https://community.rti.com/static/documentation/connext-dds/7.0.0/doc/api/connext_dds/api_python/overview.html">API Overview</a>
<a href="https://community.rti.com/static/documentation/connext-dds/7.1.0/doc/api/connext_dds/api_python/overview.html">API Overview</a>
·
<a href="https://community.rti.com/static/documentation/connext-dds/7.0.0/doc/api/connext_dds/api_python/quick.html">API Reference</a>
<a href="https://community.rti.com/static/documentation/connext-dds/7.1.0/doc/api/connext_dds/api_python/quick.html">API Reference</a>
·
<a href="https://github.com/rticommunity/rticonnextdds-examples">Examples</a>
</p>
Expand All @@ -28,13 +28,13 @@

## Documentation

- The [Connext Getting Started Guide](https://community.rti.com/static/documentation/connext-dds/7.0.0/doc/manuals/connext_dds_professional/getting_started_guide/index.html)
- The [Connext Getting Started Guide](https://community.rti.com/static/documentation/connext-dds/7.1.0/doc/manuals/connext_dds_professional/getting_started_guide/index.html)
helps you install the software and run your first RTI Connext Python application while learning general concepts of Connext.

- The [Connext Python API Reference](https://community.rti.com/static/documentation/connext-dds/7.0.0/doc/api/connext_dds/api_python/index.html)
- The [Connext Python API Reference](https://community.rti.com/static/documentation/connext-dds/7.1.0/doc/api/connext_dds/api_python/index.html)
provides additional examples, an overview of the API and the API reference.

- Additional Connext DDS documentation, including the User's Manual is available at the [Connext Community Portal](https://community.rti.com/static/documentation/).
- Additional Connext DDS documentation, including the User's Manual is available at the [Connext Community Portal](https://community.rti.com/documentation/).

## Hello World Example

Expand Down Expand Up @@ -110,6 +110,6 @@ rti.asyncio.run(print_data())
## Building and Installing

The Connext Python API is currently provided as buildable source. See
[Building and Installing](https://community.rti.com/static/documentation/connext-dds/7.0.0/doc/api/connext_dds/api_python/building.html) in the Connext DDS API Reference for instructions.
[Building and Installing](https://community.rti.com/static/documentation/connext-dds/7.1.0/doc/api/connext_dds/api_python/building.html) in the Connext DDS API Reference for instructions.

A future release will provide a pre-built pip distribution.
4 changes: 2 additions & 2 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ ARG USER_UID

RUN adduser $USER_NAME -u $USER_UID
COPY requirements.txt .
RUN /opt/python/cp36-cp36m/bin/pip install -r requirements.txt
RUN /opt/python/cp38-cp38/bin/pip install -r requirements.txt

ENV PATH=/home/jenkins/.local/bin:/opt/python/cp36-cp36m/bin:$PATH
ENV PATH=/home/jenkins/.local/bin:/opt/python/cp38-cp38/bin:$PATH
10 changes: 5 additions & 5 deletions docs/source/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Requirements
- Python® 3.6 or newer
- The following Python packages:

* For all systems: ``wheel setuptools cmake pybind11==2.8.1``
* Additionally, for Linux systems: ``patchelf``
* And for mac OS systems: ``delocate``
* For all systems: ``pip install wheel setuptools cmake pybind11==2.9.0``
* Additionally, for Linux systems: ``pip install patchelf``
* And for mac OS systems: ``pip install delocate``

- A *Connext* 7.0.0 host and target installation (see the `Connext Getting Started Guide <https://community.rti.com/static/documentation/connext-dds/7.0.0/doc/manuals/connext_dds_professional/getting_started_guide/index.html>`_ for instructions on how to install Connext).
- A *Connext* 7.1.0 host and target installation (see the `Connext Getting Started Guide <https://community.rti.com/static/documentation/connext-dds/7.1.0/doc/manuals/connext_dds_professional/getting_started_guide/index.html>`_ for instructions on how to install Connext).

.. note::

Expand Down Expand Up @@ -45,7 +45,7 @@ Simple Installation

.. code-block:: shell
$ python configure.py --nddshome /opt/rti_connext_dds-7.0.0 --jobs 4 x64Linux4gcc7.3.0
$ python configure.py --nddshome /opt/rti_connext_dds-7.1.0 --jobs 4 x64Linux4gcc7.3.0
See :ref:`building:Advanced configuration` below for more options.

Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
project = 'RTI Connext Python API'
copyright = '2022, Real-Time Innovations, Inc'
author = 'Real-Time Innovations, Inc.'
version = '7.0.0'
release = '7.0.0'
version = '7.1.0'
release = '7.1.0'

# -- General configuration ---------------------------------------------------

Expand Down
Loading

0 comments on commit 74d9ba8

Please sign in to comment.