Skip to content

Additional developer documentation? #1137

@talister

Description

@talister

Hi folks, I'm most of the way through completing a feature branch to add ingestion of small bodies through the MPC Explorer API interface. I've a couple of questions on development workflow before generating the PR:

  1. Is there any documentation on setting up the development environment for working on a fork feature request ? During the development process I needed to add some fixture data for tests and a new package but ran into issues. Normally what I would do is add the package (importlib_resources) to a requirements.txt and do a pip install -e . to make it editable. With the poetry (?) based tom_base this doesn't work; there isn't a requirements.txt file and running pip install -e . results in uninstalling the tomtoolkit-2.21.0 version and installing a 0.0.0 version, which then breaks the dependencies for things like tom_fink which need a tomtoolkit version >2.17.2 for example. Can some documentation be added for how to setup your development environment ?
  2. As part of making unit tests for the new code, I needed to create a test data directory of static captured results from the web service to avoid hitting that service in the tests - is this the right thing to do ?
  3. Related to 2. above, I made use of importlib_resources to allow the test to find the test datafile transparently but this requires adding a new dependency - what is the procedure for wanting or adding new dependencies ?
  4. In the interim until the pull request is merged upstream and a new version of tom_base/tomtoolkit is released, how do I go about using the new code/service within my TOM (FOMO) for developing ?

Metadata

Metadata

Assignees

Labels

Patch PartyCollaborative effort mostly done as part of a patch partyUserIssue Raised by a userdocumentation

Type

No type

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions