Skip to content
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

Prepare v3.0.0a4 #184

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
bdcf95c
Bump peter-murray/workflow-application-token-action from 2 to 3 (#126)
dependabot[bot] Feb 16, 2024
3e1f524
Bump cryptography from 41.0.6 to 42.0.0 in /ansys-grantami-serverapi-…
dependabot[bot] Feb 16, 2024
e42dc64
Bump pytest from 8.0.0 to 8.0.1 in /ansys-grantami-serverapi-openapi …
dependabot[bot] Feb 23, 2024
846a08a
Bump pytest from 8.0.1 to 8.0.2 in /ansys-grantami-serverapi-openapi …
dependabot[bot] Feb 26, 2024
9f8912e
Bump io.swagger.codegen.v3:swagger-codegen-maven-plugin from 3.0.52 t…
dependabot[bot] Feb 26, 2024
ff97de1
Update README link (#142)
Andy-Grigg Feb 27, 2024
624339a
Update swagger to 24.2.820 (#145)
Andy-Grigg Feb 29, 2024
ccb9f99
Support optional fields in patch requests (#147)
Andy-Grigg Feb 29, 2024
337a85f
Fix proxy path for MI 2024 R2 (#149)
Andy-Grigg Mar 4, 2024
108a3ae
Bump python-dateutil from 2.8.2 to 2.9.0.post0 in /ansys-grantami-ser…
dependabot[bot] Mar 5, 2024
62be396
Update template to 3.0.0 (#152)
Andy-Grigg Mar 5, 2024
8f5930a
Bump cryptography (#153)
Andy-Grigg Mar 5, 2024
8bb5ab0
Update swagger to 24.2.841 (#156)
Andy-Grigg Mar 6, 2024
d066966
Update API definition to 2024.2.948.2 (#165)
ludovicsteinbach Apr 3, 2024
230eff1
Bump mypy from 1.8.0 to 1.9.0 in /ansys-grantami-serverapi-openapi (#…
dependabot[bot] Apr 8, 2024
d74168f
Update swagger to 24.2.977 (#168)
Andy-Grigg Apr 11, 2024
a5229a5
Bump idna from 3.4 to 3.7 in /ansys-grantami-serverapi-openapi (#169)
dependabot[bot] Apr 12, 2024
e635304
Bump pytest from 8.0.2 to 8.1.1 in /ansys-grantami-serverapi-openapi …
dependabot[bot] Apr 12, 2024
c73d1e6
Bump requests-mock from 1.11.0 to 1.12.1 in /ansys-grantami-serverapi…
dependabot[bot] Apr 12, 2024
f3c2155
Update root files (#170)
Andy-Grigg Apr 17, 2024
960967b
Fix AUTHORS project name (#172)
Andy-Grigg Apr 17, 2024
6fe5946
Add pre-commit config and run in CI (#177)
ludovicsteinbach Apr 18, 2024
3b72c24
Configure PR labelling and auto-generated release notes (#178)
ludovicsteinbach Apr 18, 2024
d267af2
Bump softprops/action-gh-release from 1 to 2 (#163)
dependabot[bot] Apr 18, 2024
e9d3a92
Fix typos in labelling workflow (#179)
ludovicsteinbach Apr 19, 2024
9be6e92
Update API to 24.2.1025 (#180)
ludovicsteinbach Apr 19, 2024
bfaa52d
Fix pre-commit hooks in code generation (#183)
ludovicsteinbach Apr 19, 2024
5420476
Merge branch 'main' into release/update-from-main
ludovicsteinbach Apr 19, 2024
238a85c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 19, 2024
a93efcd
Generate Client Library code - Automated
pre-commit-ci[bot] Apr 19, 2024
fc0911a
Set version to 3.0.0a4
ludovicsteinbach Apr 19, 2024
3bd1cd9
Generate Client Library code - Automated
ludovicsteinbach Apr 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@ updates:
interval: "weekly"
labels:
- "maintenance"
- "dependencies"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "maintenance"

- "dependencies"

- package-ecosystem: "pip" # See documentation for possible values
directory: "/ansys-grantami-serverapi-openapi/" # Location of package manifests
schedule:
interval: "weekly"
labels:
- "maintenance"
- "dependencies"
20 changes: 20 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
api-definition:
- changed-files:
- any-glob-to-any-file: ['yaml/*']
code-gen:
- changed-files:
- any-glob-to-any-file: ['pom.xml']
documentation:
- changed-files:
- any-glob-to-any-file: ['doc/source/**/*', 'examples/**/*']
enhancement:
- head-branch: ['^feat/']
bug:
- head-branch: ['^fix/', '^patch/']
maintenance:
- changed-files:
- any-glob-to-any-file: ['.github/**/*', '.flake8', 'pyproject.toml']
- head-branch: ['^maint/', '^ci/', '^no-ci/']
dependencies:
- changed-files:
- any-glob-to-any-file: ['poetry.lock']
23 changes: 23 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
changelog:
exclude:
labels:
- dependencies
categories:
- title: "API Definition"
labels:
- api-definition
- title: "Code generation"
labels:
- code-gen
- title: "Features"
labels:
- enhancement
- title: "Bug fixes"
labels:
- bug
- title: "Maintenance"
labels:
- maintenance
- title: "Other changes"
labels:
- "*"
3 changes: 2 additions & 1 deletion .github/workflows/build_and_test_library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ jobs:
TWINE_REPOSITORY_URL: "https://upload.pypi.org/legacy/"

- name: "Release to GitHub"
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ~/dist/ansys-grantami-serverapi-openapi-wheel/*.whl
generate_release_notes: true
12 changes: 6 additions & 6 deletions .github/workflows/generate_library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- name: "Get Bot Application Token"
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v2
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ secrets.BOT_APPLICATION_ID }}
application_private_key: ${{ secrets.BOT_APPLICATION_PRIVATE_KEY }}
Expand All @@ -29,7 +29,7 @@ jobs:
with:
token: ${{ steps.get_workflow_token.outputs.token }}
ref: ${{ github.event.pull_request.head.ref }}

- name: "Set up JDK 11"
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -58,11 +58,11 @@ jobs:
poetry lock --no-update
working-directory: ansys-grantami-serverapi-openapi

- name: "Install and run black"
- name: "Install and run pre-commit"
run: |
pip install black
black ./src ./tests
working-directory: ansys-grantami-serverapi-openapi
pip install pre-commit
git add ansys-grantami-serverapi-openapi/
! pre-commit run --all-files

- name: "Commit changes to library code"
uses: EndBug/add-and-commit@v9
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Labeler
on:
pull_request:
push:
branches: [ main ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

labeler:
name: Set labels
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:

- name: Label based on changed files
uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

commenter:
runs-on: ubuntu-latest
steps:
- name: Suggest to add labels
uses: peter-evans/create-or-update-comment@v4
# Execute only when no labels have been applied to the pull request
if: toJSON(github.event.pull_request.labels.*.name) == '{}'
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Please add one of the following labels to add this contribution to the Release Notes :point_down:
- [api-definition](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Aapi-definition)
- [code-gen](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Acode-gen+)
- [enhancement](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Aenhancement+)
- [maintenance](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Amaintenance+)
- [bug](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Abug+)
6 changes: 6 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[settings]
profile=black
force_sort_within_sections=true
line_length=100
default_section=THIRDPARTY
src_paths=src,tests
2 changes: 1 addition & 1 deletion .m2/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</pluginRepositories>
</profile>
</profiles>

<servers>
<server>
<id>github</id>
Expand Down
31 changes: 31 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
repos:

- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
files: '^ansys-grantami-serverapi-openapi/(src|tests)'
args:
- '--line-length=100'

- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
files: '^ansys-grantami-serverapi-openapi/(src|tests)'

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: debug-statements
- id: check-merge-conflict
- id: trailing-whitespace

- repo: https://github.com/ansys/pre-commit-hooks
rev: v0.2.8
hooks:
- id: add-license-headers
args:
- --start_year=2023
files: 'ansys-grantami-serverapi-openapi/(src|tests)/.*\.(py)'
16 changes: 16 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This is the list of GRANTA MI Server API Client significant contributors.
#
# This file does not necessarily list everyone who has contributed code,
# especially since many employees of one corporation may be contributing.
# To see the full list of contributors, see the revision history in
# source control.
#
# For contributions made under a Corporate CLA, then the copyright
# belongs to that organization.
#
# If a contribution was made under an Individual CLA, the submitter
# has indicated that they own the copyright. If that is your case, and
# you want to be added to this file, please submit a request.
#
#
ANSYS, Inc.
6 changes: 2 additions & 4 deletions AUTHORS.md → CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Authors

## Project Lead or Owner
## Project Lead

* [Andy Grigg](https://github.com/Andy-Grigg)

## Contributors

* [Doug Addy](https://github.com/da1910)
* [Ludovic Steinbach](https://github.com/ludovicsteinbach)
* [Ludovic Steinbach](https://github.com/ludovicsteinbach)
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ Once the tag is pushed to GitHub, a workflow will build and publish the release.
As stated above, direct use of this package is unsupported. The recommended approach is to use the idiomatic
libraries written for specific API areas.

We do understand that internal or external users might want to experiment with Granta MI Server API functionality that
We do understand that internal or external users might want to experiment with Granta MI Server API functionality that
is not exposed via an idiomatic python library. To that extent, the following sections demonstrate how to install and
get started with the library.

### Requirements
The `ansys-grantami-serverapi-openapi` package requires Granta MI. The following table details compatibility between
The `ansys-grantami-serverapi-openapi` package requires Granta MI. The following table details compatibility between
Granta MI releases and versions of the Python package.

| Granta MI | ansys-grantami-serverapi-openapi |
Expand All @@ -69,8 +69,8 @@ Granta MI releases and versions of the Python package.

### Installation

During active development phases of Granta MI, this repository is kept up to date with new versions of the API
documentation. To use the most up-to-date version of this package in another project, add a dependency on the
During active development phases of Granta MI, this repository is kept up to date with new versions of the API
documentation. To use the most up-to-date version of this package in another project, add a dependency on the
repository's main branch, e.g. with poetry:

```console
Expand All @@ -84,7 +84,7 @@ Or with pip:
```

### Minimal setup
The following code snippet demonstrates how to perform the minimal setup required to interact with the API using this
The following code snippet demonstrates how to perform the minimal setup required to interact with the API using this
library.

```python
Expand Down Expand Up @@ -130,11 +130,11 @@ class Connection(ApiClientFactory):

if __name__ == '__main__':
from ansys.grantami.serverapi_openapi import api

# Update URL and connection method for your system
URL = "http://my_server_name/mi_servicelayer"
api_client = Connection(api_url=URL).with_autologon().connect()

schema_api = api.SchemaApi(api_client)
server_version = schema_api.v1alpha_schema_mi_version_get()
print(server_version.version)
Expand Down
2 changes: 1 addition & 1 deletion ansys-grantami-serverapi-openapi/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.52
3.0.54
Loading