-
-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 using the following method. | ||
|
|
||
| ### Installing with `pip` | ||
|
|
||
| > [!NOTE] | ||
| > For stub files for this package, look for [`java-api-stubs`]. | ||
|
|
||
| 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 | ||
| 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.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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.