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

added automation for z/OS open tools #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aashish-khatri
Copy link
Contributor

Fixes to add packages compatible with z/OS in response to issue #110. @arshPratap @pleia2 please take a look.

Signed-off-by: aashish-khatri <aashishkhatri809@gmail.com>
Copy link
Contributor

@xtanion xtanion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @aashish-khatri, PTAL at my comments below, There are a few things you might need to change.

Also, note that you need to crop the name of the package and remove the suffix port. For eg: emacsport changes to emacs. As you can see in the file created by @arshPratap.

Thanks.

repo_info = {"packageName":repo["name"],"description":repo["description"],"version":""}
zOS_list.append(repo_info)

with open('ZOSOpenTools.json','w') as file:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will save the json file in the pwd, we may want to move it to ./distro_data/ instead

@@ -249,6 +250,24 @@ def rockylinux():
DATA.close()
print(f"Saved!\nfilename: {q}")

def zOSOpenTools():
url = "https://api.github.com/users/ZOSOpenTools/repos"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you use this URL, you'll not find all repository names in your response as you can see in your ZOSOpentools.json. Refer to this.

zOS_list.append(repo_info)

with open('ZOSOpenTools.json','w') as file:
json.dump(zOS_list,file,indent=2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saving it directly will erase all the previous data in the json. You should compare the new data with the old one and append it to the end of the file.

Copy link
Contributor

@pleia2 pleia2 May 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We actually do just clobber old versions of the files 😆 so this is in keeping with the rest of the tool. I think it's OK, but something we should address more holistically. Can you create an issue for addressing this tool-wide?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pleia2 I think its OK for now , we need to keep in mind the changes we are going to add in the future for the SQL based database design and I dont think creating any issue will be required for now .

Copy link
Contributor

@pleia2 pleia2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks to @xtanion for the reviews, aside from the one I commented on, these should be addressed before we're ready to merge.

@pleia2
Copy link
Contributor

pleia2 commented Jun 1, 2023

@aashish-khatri In addition to above, you'll also want to add ZOSOpenTools.json to src/config/supported_distros.py

pleia2 added a commit to openmainframeproject/software-discovery-tool-data that referenced this pull request Dec 19, 2023
In issue #49 a case was made that we have several sources for open
source software being developed for IBM z/OS and it now makes sense to
split up the repositories for easier maintenance and improved accuracy.

This commit splits out the following:

- Rocket Software into ZOS_Rocket_Software.json

- Everything from github.com/IBM/IBM-Z-zOS/ into IBM_Z_zOS.json

- Everything maintained by the Open Mainframe Project into ZOS_OMP.json

Once this split is completed, we will work on updates to these files.

ZOS_Software_List.json remains as a generic place to put any software
that doesn't neatly fit into another category, but I have removed all
tools related to the z/OS Open Tools project, since it's very outdated
and there's another effort in progress to complete adding these tools
into their own source file (see:
openmainframeproject/software-discovery-tool#124).

Signed-off-by: Elizabeth K. Joseph <lyz@princessleia.com>
pleia2 added a commit to openmainframeproject/software-discovery-tool-data that referenced this pull request Mar 28, 2024
In issue #49 a case was made that we have several sources for open
source software being developed for IBM z/OS and it now makes sense to
split up the repositories for easier maintenance and improved accuracy.

This commit splits out the following:

- Rocket Software into ZOS_Rocket_Software.json

- Everything from github.com/IBM/IBM-Z-zOS/ into IBM_Z_zOS.json

- Everything maintained by the Open Mainframe Project into ZOS_OMP.json

Once this split is completed, we will work on updates to these files.

ZOS_Software_List.json remains as a generic place to put any software
that doesn't neatly fit into another category, but I have removed all
tools related to the z/OS Open Tools project, since it's very outdated
and there's another effort in progress to complete adding these tools
into their own source file (see:
openmainframeproject/software-discovery-tool#124).

Signed-off-by: Elizabeth K. Joseph <lyz@princessleia.com>
pleia2 added a commit to openmainframeproject/software-discovery-tool-data that referenced this pull request Mar 28, 2024
In issue #49 a case was made that we have several sources for open
source software being developed for IBM z/OS and it now makes sense to
split up the repositories for easier maintenance and improved accuracy.

This commit splits out the following:

- Rocket Software into ZOS_Rocket_Software.json

- Everything from github.com/IBM/IBM-Z-zOS/ into IBM_Z_zOS.json

- Everything maintained by the Open Mainframe Project into ZOS_OMP.json

Once this split is completed, we will work on updates to these files.

ZOS_Software_List.json remains as a generic place to put any software
that doesn't neatly fit into another category, but I have removed all
tools related to the z/OS Open Tools project, since it's very outdated
and there's another effort in progress to complete adding these tools
into their own source file (see:
openmainframeproject/software-discovery-tool#124).

Signed-off-by: Elizabeth K. Joseph <lyz@princessleia.com>
pleia2 added a commit to openmainframeproject/software-discovery-tool-data that referenced this pull request Mar 28, 2024
In issue #49 a case was made that we have several sources for open
source software being developed for IBM z/OS and it now makes sense to
split up the repositories for easier maintenance and improved accuracy.

This commit splits out the following:

- Rocket Software into ZOS_Rocket_Software.json

- Everything from github.com/IBM/IBM-Z-zOS/ into IBM_Z_zOS.json

- Everything maintained by the Open Mainframe Project into ZOS_OMP.json

Once this split is completed, we will work on updates to these files.

ZOS_Software_List.json remains as a generic place to put any software
that doesn't neatly fit into another category, but I have removed all
tools related to the z/OS Open Tools project, since it's very outdated
and there's another effort in progress to complete adding these tools
into their own source file (see:
openmainframeproject/software-discovery-tool#124).

Signed-off-by: Elizabeth K. Joseph <lyz@princessleia.com>
pleia2 added a commit to openmainframeproject/software-discovery-tool-data that referenced this pull request Mar 28, 2024
In issue #49 a case was made that we have several sources for open
source software being developed for IBM z/OS and it now makes sense to
split up the repositories for easier maintenance and improved accuracy.

This commit splits out the following:

- Rocket Software into ZOS_Rocket_Software.json

- Everything from github.com/IBM/IBM-Z-zOS/ into IBM_Z_zOS.json

- Everything maintained by the Open Mainframe Project into ZOS_OMP.json

Once this split is completed, we will work on updates to these files.

ZOS_Software_List.json remains as a generic place to put any software
that doesn't neatly fit into another category, but I have removed all
tools related to the z/OS Open Tools project, since it's very outdated
and there's another effort in progress to complete adding these tools
into their own source file (see:
openmainframeproject/software-discovery-tool#124).

Signed-off-by: Elizabeth K. Joseph <lyz@princessleia.com>
pleia2 added a commit to openmainframeproject/software-discovery-tool-data that referenced this pull request Mar 28, 2024
* Split out z/OS package data

In issue #49 a case was made that we have several sources for open
source software being developed for IBM z/OS and it now makes sense to
split up the repositories for easier maintenance and improved accuracy.

This commit splits out the following:

- Rocket Software into ZOS_Rocket_Software.json

- Everything from github.com/IBM/IBM-Z-zOS/ into IBM_Z_zOS.json

- Everything maintained by the Open Mainframe Project into ZOS_OMP.json

Once this split is completed, we will work on updates to these files.

ZOS_Software_List.json remains as a generic place to put any software
that doesn't neatly fit into another category, but I have removed all
tools related to the z/OS Open Tools project, since it's very outdated
and there's another effort in progress to complete adding these tools
into their own source file (see:
openmainframeproject/software-discovery-tool#124).

Signed-off-by: Elizabeth K. Joseph <lyz@princessleia.com>
@Apurv428
Copy link
Contributor

Apurv428 commented May 8, 2024

I have made the changes as requested in this PR. Link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants