Closed Mandera closed 1 year ago
Might need to prioritize this. Trying to set default target to Python now and it's proving difficult.
Right now it actually traverses the opposite way:
LocalRepo(name=self.name, path=self.path).targetted(target=self._target)
self._cls_metadata(path=self.get_metadata_path())
Making Packager's instantiating read Metadata straight away would solve everything
Times in microseconds - 431% time taken when exists and 271% when doesn't exist
python -m timeit -s "from generalpackager import Packager" "Packager('generallibrary')"
self._target
Not a huge fan of how you have to instantiate LocalRepo_Node and Python. I want a unified way for the user to instantiate it. Probably a localrepo function Why is it only LocalRepo that has this issue? Package hosts have GitHub, PyPI and NPM. Doesn't really matter, the issue is that I wanted to be able to instantiate LocalRepo on a random local repo to get info about it
Currently it's a coupled mess, would be good to clean up