From 1da172d61a1d53e6e812895ebbd5506a8e8ee8ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Rom=C3=A1n?= Date: Mon, 8 Dec 2025 12:57:03 -0800 Subject: [PATCH] chore: rename repo from java-api to java-api-17 rename default branch from 17 to main --- .github/workflows/ci.yml | 2 +- .github/workflows/pr-build.yml | 2 +- .pre-commit-config.yaml | 1 - README.md | 8 ++++---- java-api-stubs/README.md | 14 ++++++++------ java-api-stubs/pyproject.toml | 6 +++--- java-api/README.md | 8 ++++---- java-api/setup.cfg | 6 +++--- 8 files changed, 24 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 210baf8..66d3728 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: pull_request: push: branches: - - '17' + - main workflow_call: workflow_dispatch: diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 4c0baab..7d3b3c1 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -3,7 +3,7 @@ name: pr-build on: pull_request: branches: - - '17' + - main paths: - .github/workflows/pr-build.yml - '**/pyproject.toml' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f2de9fb..49cd56c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,6 @@ ci: autoupdate_commit_msg: 'build(deps): pre-commit autoupdate' autofix_commit_msg: 'style: apply auto fixes with pre-commit' - autoupdate_branch: '17' skip: - pylint diff --git a/README.md b/README.md index a37f126..804f907 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # java-api: Python 2 package and Python 3 stubs -[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ignition-devs/java-api/17.svg)](https://results.pre-commit.ci/latest/github/ignition-devs/java-api/17) -[![ci](https://github.com/ignition-devs/java-api/actions/workflows/ci.yml/badge.svg)](https://github.com/ignition-devs/java-api/actions/workflows/ci.yml) +[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ignition-devs/java-api-17/main.svg)](https://results.pre-commit.ci/latest/github/ignition-devs/java-api-17/main) +[![ci](https://github.com/ignition-devs/java-api-17/actions/workflows/ci.yml/badge.svg)](https://github.com/ignition-devs/java-api-17/actions/workflows/ci.yml) [![Join us on GitHub discussions](https://img.shields.io/badge/github-discussions-informational)](https://github.com/orgs/ignition-devs/discussions) This repository contains the following projects: @@ -11,5 +11,5 @@ This repository contains the following projects: `java-api` package. [`ignition-api`]: https://pypi.org/project/ignition-api -[java-api]: https://github.com/ignition-devs/java-api/tree/17/java-api -[java-api-stubs]: https://github.com/ignition-devs/java-api/tree/17/java-api-stubs +[java-api]: https://github.com/ignition-devs/java-api-17/tree/main/java-api +[java-api-stubs]: https://github.com/ignition-devs/java-api/tree/main/java-api-stubs diff --git a/java-api-stubs/README.md b/java-api-stubs/README.md index 6321134..efd8294 100644 --- a/java-api-stubs/README.md +++ b/java-api-stubs/README.md @@ -12,7 +12,9 @@ To use java-api-stubs, you may install it with `pip`. It requires Python > Python 3.13 will not be supported. ```sh -python3 -m pip install git+https://github.com/ignition-devs/java-api.git#subdirectory=java-api-stubs +python3 -m pip install \ + git+https://github.com/ignition-devs/java-api-17.git#subdirectory=java-api-stubs \ + "mypy[python2]==0.971" ``` To run `mypy` against your code, execute the following command passing the @@ -51,11 +53,11 @@ See the [LICENSE]. See [CODE_OF_CONDUCT.md]. -[CODE_OF_CONDUCT.md]: https://github.com/ignition-devs/.github/blob/java-17/CODE_OF_CONDUCT.md -[CONTRIBUTING.md]: https://github.com/ignition-devs/java-api/blob/java-17/CONTRIBUTING.md -[contributors]: https://github.com/ignition-devs/java-api-stubs/graphs/contributors +[CODE_OF_CONDUCT.md]: https://github.com/ignition-devs/.github/blob/main/CODE_OF_CONDUCT.md +[CONTRIBUTING.md]: https://github.com/ignition-devs/java-api-17/blob/main/CONTRIBUTING.md +[contributors]: https://github.com/ignition-devs/java-api-17/graphs/contributors [Discussions]: https://github.com/orgs/ignition-devs/discussions -[`java-api`]: https://github.com/ignition-devs/java-api -[LICENSE]: https://github.com/ignition-devs/java-api/blob/java-17/LICENSE +[`java-api`]: https://github.com/ignition-devs/java-api-17 +[LICENSE]: https://github.com/ignition-devs/java-api-17/blob/main/LICENSE [`stubgen`]: https://coatl-mypy.readthedocs.io/en/v0.971/stubgen.html [stubs]: https://www.python.org/dev/peps/pep-484/ diff --git a/java-api-stubs/pyproject.toml b/java-api-stubs/pyproject.toml index 47bbb24..3e7abe7 100644 --- a/java-api-stubs/pyproject.toml +++ b/java-api-stubs/pyproject.toml @@ -36,9 +36,9 @@ classifiers = [ "Typing :: Typed", ] urls.Funding = "https://github.com/sponsors/cesarcoatl" -urls.Homepage = "https://github.com/ignition-devs/java-api" -urls.Source = "https://github.com/ignition-devs/java-api" -urls.Tracker = "https://github.com/ignition-devs/java-api/issues" +urls.Homepage = "https://github.com/ignition-devs/java-api-17" +urls.Source = "https://github.com/ignition-devs/java-api-17" +urls.Tracker = "https://github.com/ignition-devs/java-api-17/issues" [tool.setuptools] include-package-data = true diff --git a/java-api/README.md b/java-api/README.md index 331d980..3454b0a 100755 --- a/java-api/README.md +++ b/java-api/README.md @@ -32,7 +32,7 @@ The preferred method is to install it by running `pip`. It requires Python 2.7.18. ```bash -python2 -m pip install git+https://github.com/ignition-devs/java-api.git#subdirectory=java-api +python2 -m pip install git+https://github.com/ignition-devs/java-api-17.git#subdirectory=java-api ``` This will install it as package to your Python installation, which will allow @@ -97,9 +97,9 @@ See the [LICENSE]. This project has adopted the [Microsoft Open Source Code of Conduct]. -[CONTRIBUTING.md]: https://github.com/ignition-devs/java-api/blob/java-17/CONTRIBUTING.md#contributing-to-java-api -[CONTRIBUTORS]: https://github.com/ignition-devs/java-api/graphs/contributors +[CONTRIBUTING.md]: https://github.com/ignition-devs/java-api-17/blob/main/CONTRIBUTING.md#contributing-to-java-api +[CONTRIBUTORS]: https://github.com/ignition-devs/java-api-17/graphs/contributors [Discussions]: https://github.com/orgs/ignition-devs/discussions -[LICENSE]: https://github.com/ignition-devs/java-api/blob/java-17/LICENSE +[LICENSE]: https://github.com/ignition-devs/java-api-17/blob/main/LICENSE [Microsoft Open Source Code of Conduct]: https://opensource.microsoft.com/codeofconduct/ [Python 2.7.18]: https://www.python.org/downloads/release/python-2718/ diff --git a/java-api/setup.cfg b/java-api/setup.cfg index 4b8ef19..b68c080 100644 --- a/java-api/setup.cfg +++ b/java-api/setup.cfg @@ -4,7 +4,7 @@ version = 17.25.0b3 description = Java 17 API Specification for ignition-api long_description = file: README.md long_description_content_type = text/markdown -url = https://github.com/ignition-devs/java-api +url = https://github.com/ignition-devs/java-api-17 author = César Román author_email = cesar@coatl.dev license = MIT @@ -31,8 +31,8 @@ keywords = project_urls = Documentation = https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions Funding = https://github.com/sponsors/cesarcoatl - Source = https://github.com/ignition-devs/java-api - Tracker = https://github.com/ignition-devs/java-api/issues + Source = https://github.com/ignition-devs/java-api-17 + Tracker = https://github.com/ignition-devs/java-api-17/issues [options] packages = find: