Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .copyrightconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# COPYRIGHT VALIDATION CONFIG
# ---------------------------------
# Required start year (keep fixed; end year auto-updates in check output)
startyear: 2023

# Optional exclusions list (comma-separated). Leave commented if none.
# Rules:
# - Relative paths (no leading ./)
# - Simple * wildcard only (no recursive **)
# - Use sparingly (third_party, generated, binary assets)
# - Dotfiles already skipped automatically
# Enable by removing the leading '# ' from the next line and editing values.
filesexcluded: .github/*, README.md, Jenkinsfile, gradle/*, docker-compose.yml, *.gradle, gradle.properties, gradlew, gradlew.bat, CODEOWNERS, *.lock, *.toml
9 changes: 8 additions & 1 deletion .github/workflows/pr-workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🏷️ JIRA ID Validator
name: PR Workflow

on:
# Using pull_request_target instead of pull_request to handle PRs from forks
Expand All @@ -14,3 +14,10 @@ jobs:
with:
# Pass the PR title from the event context
pr-title: ${{ github.event.pull_request.title }}
copyright-validation:
name: © Validate Copyright Headers
uses: marklogic/pr-workflows/.github/workflows/copyright-check.yml@main
permissions:
contents: read
pull-requests: write
issues: write
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in the repo.
* @anu3990 @billfarber @rjrudin
* @stevebio @billfarber @rjrudin
3 changes: 1 addition & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ pipeline{
export GRADLE_USER_HOME=$WORKSPACE/$GRADLE_DIR
export PATH=$GRADLE_USER_HOME:$JAVA_HOME/bin:$PATH
cd marklogic-python-client/test-app
echo "Waiting for MarkLogic server to initialize."
sleep 60s
./gradlew -i mlWaitTillReady
./gradlew -i mlDeploy -PmlPassword=admin
'''
// 'set -e' causes the script to fail if any command fails.
Expand Down
795 changes: 732 additions & 63 deletions NOTICE.txt

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ GEM
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.25.1)
nokogiri (1.18.8-arm64-darwin)
nokogiri (1.18.9-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.8-x86_64-linux-gnu)
nokogiri (1.18.9-x86_64-linux-gnu)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
Expand All @@ -224,7 +224,7 @@ GEM
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.3.9)
rexml (3.4.2)
rouge (3.26.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
Expand Down
1,122 changes: 630 additions & 492 deletions poetry.lock

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "marklogic-python-client"
version = "1.3.0"
version = "1.3.1"
description = "Python client for MarkLogic, built on the requests library"
authors = ["MarkLogic <general@developer.marklogic.com>"]
readme = "README.md"
Expand All @@ -9,9 +9,12 @@ license = "Apache 2.0"

[tool.poetry.dependencies]
python = "^3.9"
requests = "^2.32.4"
requests = "^2.32.5"
requests_toolbelt = "^1.0.0"

# Forcing version to eliminate CVEs; transitive dependency of requests.
urllib3 = "^2.6.3"

[tool.poetry.group.test.dependencies]
pytest = "^7.4.0"

Expand All @@ -20,6 +23,9 @@ flake8 = "^7.1.1"
black = ">=23.3,<25.0"
ipykernel = "^6.30.1"

# Forcing latest version to eliminate CVEs; transitive dependency of ipykernel.
jupyter-core = "^5.8.1"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Expand Down
18 changes: 16 additions & 2 deletions test-app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
buildscript {
repositories {
mavenCentral()
// Needed for ml-gradle 6.2-SNAPSHOT
maven {
url = "https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
}
}
dependencies {
classpath "com.marklogic:ml-gradle:6.2-SNAPSHOT"
}
}

plugins {
id 'net.saliman.properties' version '1.5.2'
id 'com.marklogic.ml-gradle' version '5.0.0'
id "net.saliman.properties" version "1.6.0"
}

apply plugin: "com.marklogic.ml-gradle"

// Generate a temporary certificate for some simple SSL tests
ext {
def command = new com.marklogic.appdeployer.command.security.GenerateTemporaryCertificateCommand()
Expand Down
4 changes: 4 additions & 0 deletions test-app/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ services:
marklogic:
image: "${MARKLOGIC_IMAGE}"
platform: linux/amd64
# The NET_RAW capability allows a process to create raw sockets. Polaris does not like that.
# This setting removes the NET_RAW capability from the container.
cap_drop:
- NET_RAW
environment:
- INSTALL_CONVERTERS=true
- MARKLOGIC_INIT=true
Expand Down