-
-
Notifications
You must be signed in to change notification settings - Fork 0
chore: restructure project #6
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,4 +13,3 @@ jobs: | |
| uses: coatl-dev/workflows/.github/workflows/pylint.yml@v6 | ||
| with: | ||
| path: src | ||
| working-directory: java-api | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,15 +1,117 @@ | ||||||
| # java-api: Python 2 package and Python 3 stubs | ||||||
| # java-api | ||||||
|
|
||||||
| <!--- Badges ---> | ||||||
| [](https://pypi.org/project/java-api/) | ||||||
| [](https://pypi.org/project/java-api/) | ||||||
| [](https://pepy.tech/projects/java-api) | ||||||
| [](https://results.pre-commit.ci/latest/github/ignition-devs/java-api-17/main) | ||||||
| [](https://github.com/ignition-devs/java-api-17/actions/workflows/ci.yml) | ||||||
| [](https://github.com/orgs/ignition-devs/discussions) | ||||||
|
|
||||||
| This repository contains the following projects: | ||||||
| java-api is a Python package that allows developers to get code completion | ||||||
| for Java 17 API Specification functions and classes in their IDE of choice. | ||||||
|
|
||||||
| - [java-api]: Java Version 17 API Specification for [`ignition-api`]. | ||||||
| - [java-api-stubs]: This package contains a collection of stubs for the | ||||||
| `java-api` package. | ||||||
| ## Table of contents | ||||||
|
|
||||||
| [`ignition-api`]: https://pypi.org/project/ignition-api | ||||||
| [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 | ||||||
| - [Prerequisites](#prerequisites) | ||||||
| - [Installation and usage](#installation-and-usage) | ||||||
| - [Installing with pip](#installing-with-pip) | ||||||
| - [Project structure](#project-structure) | ||||||
| - [Packages](#packages) | ||||||
| - [Contributing](#contributing) | ||||||
| - [Discussions](#discussions) | ||||||
| - [Contributors](#contributors) | ||||||
| - [License](#license) | ||||||
| - [Code of conduct](#code-of-conduct) | ||||||
|
|
||||||
| ## Prerequisites | ||||||
|
|
||||||
| Before you begin, ensure you have met the following requirements: | ||||||
|
|
||||||
| - You have installed [Python 2.7.18] | ||||||
|
|
||||||
| ## Installation and usage | ||||||
|
|
||||||
| To use java-api, you may install it by doing any of the following. | ||||||
|
|
||||||
| ### Installing with `pip` | ||||||
|
|
||||||
| > [!NOTE] | ||||||
| > For the stubs for this packages, look for [`java-api-stubs`]. | ||||||
sourcery-ai[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| The preferred method is to install it by running `pip`. It requires Python | ||||||
| 2.7.18. | ||||||
|
|
||||||
| ```bash | ||||||
| python2 -m pip install java-api | ||||||
| ``` | ||||||
|
|
||||||
| This will install it as package to your Python installation, which will allow | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (typo): Improve grammar in description of installation result. Consider rephrasing to: “This will install it as a package in your Python installation,” to correct the article and preposition.
Suggested change
|
||||||
| you to call Ignition Scripting functions from Python's REPL, and get code | ||||||
| completion using an IDE such as PyCharm and Visual Studio Code. | ||||||
|
|
||||||
| ```bash | ||||||
| $ python2 | ||||||
| Python 2.7.18 (default, Sep 23 2024, 13:23:35) | ||||||
| [GCC Apple LLVM 16.0.0 (clang-1600.0.26.3)] on darwin | ||||||
| Type "help", "copyright", "credits" or "license" for more information. | ||||||
| >>> from __future__ import print_function | ||||||
| >>> import java.lang | ||||||
| >>> print(java.lang.__doc__) | ||||||
| Provides classes that are fundamental to the design of the Java | ||||||
| programming language. | ||||||
|
|
||||||
| >>> quit() | ||||||
| ``` | ||||||
|
|
||||||
| And to uninstall: | ||||||
|
|
||||||
| ```bash | ||||||
| python2 -m pip uninstall java-api | ||||||
| ``` | ||||||
|
|
||||||
| ## Project structure | ||||||
|
|
||||||
| ### Packages | ||||||
|
|
||||||
| This project consists of the following packages: | ||||||
|
|
||||||
| - [java](#javajavax) | ||||||
| - [javax](#javajavax) | ||||||
|
|
||||||
| #### java/javax | ||||||
|
|
||||||
| These packages include supporting Java classes and interfaces. For more | ||||||
| information, see documentation here: | ||||||
| <https://docs.oracle.com/en/java/javase/17/docs/api/index.html>. | ||||||
|
|
||||||
| ## Contributing | ||||||
|
|
||||||
| See [CONTRIBUTING.md]. | ||||||
|
|
||||||
| ## Discussions | ||||||
|
|
||||||
| Feel free to post your questions and/or ideas at [Discussions]. | ||||||
|
|
||||||
| ## Contributors | ||||||
|
|
||||||
| Thanks to everyone who has contributed to this project. | ||||||
|
|
||||||
| Up-to-date list of contributors can be found here: [CONTRIBUTORS]. | ||||||
|
|
||||||
| ## License | ||||||
|
|
||||||
| See the [LICENSE]. | ||||||
|
|
||||||
| ## Code of conduct | ||||||
|
|
||||||
| This project has adopted the [Microsoft Open Source Code of Conduct]. | ||||||
|
|
||||||
| <!-- Links --> | ||||||
| [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 | ||||||
| [`java-api-stubs`]: https://pypi.org/project/java-api-stubs/ | ||||||
| [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/ | ||||||
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.