Open TG1999 opened 4 years ago
I looked into the issue nexB/fetchcode#40 ....like package.py...we have to make a new file homebrew package with same code?or we have to do something else?
Hi @iamsairus10, You don't need to create a new file, check the structure of package.py, you have to create a route for homebrew
packages like it is done for npm or PyPI packages.
Like this???
Like this???
Yes!!
what will be base path for this? https://formulae.brew.sh/api/formula/a2ps.json this one?
Is it okay??? Or any changes req?
It will be difficult for us, to check code like this, would you like to write some tests for it ?
yaa sure just guide me
Checkout tests/test_package.py file, and try to repeat same for npm or pypi
There is no file as tests/data/homebrew_mock_data.json... what should I do?
Also no file as homebrew.json
Create one ;)
How🥺??
@TG1999 I am still unable to find how to approach to create those file?
@TG1999 can I work on this
Sure go ahead
@TG1999 I made a PR for this https://github.com/nexB/fetchcode/pull/47 .Can you review.
Have a look at fetchcode/package.py , and try to implement the same for Homebrew packages.https://formulae.brew.sh/api/formula/a2ps.json, sample API URL.