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

somesy config harvesting with hermes #9

Open
mustafasoylu opened this issue May 24, 2023 · 3 comments
Open

somesy config harvesting with hermes #9

mustafasoylu opened this issue May 24, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@mustafasoylu
Copy link
Collaborator

mustafasoylu commented May 24, 2023

  • Discover data from existing files such as pyproject.toml, CITATION.cff
  • create .somesy.toml file from this data
  • .somesyrc support (in the home directory)
@mustafasoylu mustafasoylu added the enhancement New feature or request label May 24, 2023
@mustafasoylu mustafasoylu self-assigned this May 24, 2023
@apirogov
Copy link
Contributor

As discussed yesterday, might be worth taking a look at https://project.software-metadata.pub/# and see if their "harvesting" part would be of use to scrape the metadata together for somesy init.

@apirogov
Copy link
Contributor

apirogov commented Jul 21, 2023

@mustafasoylu

I did not check how it currently looks like in the feature branch, but I don't like the way init command works on the main branch right now. What I think it should be doing:

  1. Somesy input location
  • Check which supported input files exist
  • Ask where to put the somesy config and metadata (somesy.toml or pyproject.toml or whatever is supported)
  1. Ask if the user wants to import project metadata (from pyproject.toml or other supported input)
  • if yes, extract into a SomesyConfig object (could use pyproject_parser that codemetapy also uses),
  • otherwise create "default dummy project metadata" (at least for mandatory fields, possibly also optional dummy data to show what somesy supports)
  1. dump extracted or default metadata to desired target, including the default values for CLI config fields
  2. Tell the user to check the generated config and fine-tune to their needs

@apirogov apirogov mentioned this issue Jul 21, 2023
@mustafasoylu mustafasoylu changed the title somesy init command (discovery) somesy config harvesting with hermes Nov 29, 2023
@mustafasoylu
Copy link
Collaborator Author

create the somesy.toml file using hermes harvesters.

@mustafasoylu mustafasoylu added this to the v0.3.0 milestone Nov 29, 2023
@mustafasoylu mustafasoylu removed their assignment Nov 29, 2023
@mustafasoylu mustafasoylu removed this from the v0.3.0 milestone Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants