Skip to content

Commit

Permalink
Add renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
vuilleumierc committed Aug 22, 2024
1 parent 94ee566 commit 8c78dbb
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 0 deletions.
83 changes: 83 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
extends: ["config:base"],
timezone: "Europe/Zurich",
schedule: "after 5pm on the first day of the month",
labels: ["dependencies"],
separateMajorMinor: true,
separateMinorPatch: true,
prHourlyLimit: 0,
prConcurrentLimit: 0,
lockFileMaintenance: {
enabled: true,
automerge: true,
schedule: "after 5pm on the first day of the month",
},
baseBranches: ["master"],
"pre-commit": { enabled: true },
regexManagers: [
/** Do updates on pre-commit additional dependencies */
{
fileMatch: ["^\\.pre\\-commit\\-config\\.yaml$"],
matchStrings: [
" +- '?(?<depName>[^' @=]+)(@|==)(?<currentValue>[^' @=]+)'? # (?<datasource>.+)",
],
},
],
packageRules: [
/** Auto merge the dev dependency update */
{
matchDepTypes: ["devDependencies"],
automerge: true,
},
/** Group and auto merge the patch updates */
{
matchUpdateTypes: ["patch"],
groupName: "all patch versions",
automerge: true,
},
/** Group and auto merge the minor updates */
{
matchUpdateTypes: ["minor"],
groupName: "all minor versions",
automerge: true,
},
/** Group Poetry packages */
{
matchPackagePrefixes: ["poetry-"],
groupName: "Poetry",
automerge: true,
matchDepNames: ["poetry", "pip"],
},
/** Accept only the patch on stabilization branches */
{
matchBaseBranches: ["/^[0-9]+\\.[0-9]+$/"],
matchUpdateTypes: [
"major",
"minor",
"pin",
"digest",
"lockFileMaintenance",
"rollback",
"bump",
],
enabled: false,
},
/** Support the 4 parts of shellcheck-py version with a v prefix */
{
versioning: "regex:^v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)$",
matchDepNames: ["shellcheck-py/shellcheck-py"],
},
/** Disable update of Python version in pyproject.toml */
{
matchFiles: ["pyproject.toml"],
enabled: false,
matchDepNames: ["python"],
},
/** Group and auto merge the CI dependencies */
{
matchFileNames: [".github/**", ".pre-commit-config.yaml", "ci/**"],
groupName: "CI dependencies",
automerge: true,
},
],
}
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
# python-geoservercloud

## Installation

From PyPI:

```shell
pip install geoservercloud
```

From git repository:

```shell
poetry install
```

## Quick start

```python
from geoservercloud import GeoServerCloud
geoserver = GeoServerCloud(
url="http://localhost:9090/geoserver/cloud/",
user="admin",
password="geoserver",
)
geoserver.create_workspace("newworkspace")
```

0 comments on commit 8c78dbb

Please sign in to comment.