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

Specify or document a way to retrieve softwareVersion from elsewhere #196

Open
christophehenry opened this issue Sep 5, 2024 · 0 comments
Labels
waiting-for-triage Waiting to be properly labelled

Comments

@christophehenry
Copy link

Project version is often already specified in somewhere in a a project file. For python projects, for instance, it may be setup.py, setup.cfg, pyproject.toml or version.py. The pyproject.toml standard, offers the attr: package.__version__ syntax for sourcing from a python file.

publiccodeyml should offer a similar feature. softwareVersion could be extended to be used like this:

softwareVersion:
  file: pyproject.toml
  search: 'version\s+=\s+"(?P<version>[^"]+)"'

Maybe something simpler that regexes can be found, IDK.

@christophehenry christophehenry added the waiting-for-triage Waiting to be properly labelled label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-triage Waiting to be properly labelled
Projects
None yet
Development

No branches or pull requests

1 participant