Skip to content

Conversation

@martonvago
Copy link
Contributor

@martonvago martonvago commented Jul 3, 2025

Description

This PR:

  • updates the Sprout version (I needed to run uv cache clean to make it pull the newest one)
  • adds main.py
  • fixes a small thing in the README

Is there anything else to do to make the template match Sprout? Sorry if I completely misunderstood it, but it feels like it's ready to use the latest version of Sprout.
I could add mypy?

Closes #29, closes #33

This PR needs a quick review.

Checklist

  • Checked that the README is up to date
  • Run just run-all

Comment on lines 15 to 29
To add uv:

1. Delete the `pyproject.toml` file.
2. In the terminal run `uv init`.
3. Look at the Git pane and take what was removed and move it over into
1. Delete the `pyproject.toml` file.
2. In the terminal run `uv init`.
3. Look at the Git pane and take what was removed and move it over into
the new `pyproject.toml` file. You can mimic what was done in
`example-seed-beetle` repo.

Then, in the terminal, run:

``` bash
uv add polars pyjanitor
uv add "seedcase-sprout @ git+<https://github.com/seedcase-project/seedcase-sprout>"
uv add seedcase-sprout@git+https://github.com/seedcase-project/seedcase-sprout
uv add --dev ruff commitizen pre-commit typos
```
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the pyproject.toml file is already set up, could we not just run uv sync?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. Though we'll very soon need to set the pypi version of Sprout, not the GitHub version. That's something you can do here.

main.py Outdated
Comment on lines 11 to 12
# Write properties from properties script to `datapackage.json`.
# sp.write_properties(properties=properties)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also add the resources bit commented out?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a lot more that can be added here, based on what is in Sprout's guide.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay! I didn't know whether the intention was to include as much of the guide or not

@martonvago martonvago moved this from Todo to In Review in Iteration planning Jul 3, 2025
@martonvago martonvago marked this pull request as ready for review July 3, 2025 15:06
@martonvago martonvago requested a review from a team as a code owner July 3, 2025 15:06
Comment on lines 15 to 29
To add uv:

1. Delete the `pyproject.toml` file.
2. In the terminal run `uv init`.
3. Look at the Git pane and take what was removed and move it over into
1. Delete the `pyproject.toml` file.
2. In the terminal run `uv init`.
3. Look at the Git pane and take what was removed and move it over into
the new `pyproject.toml` file. You can mimic what was done in
`example-seed-beetle` repo.

Then, in the terminal, run:

``` bash
uv add polars pyjanitor
uv add "seedcase-sprout @ git+<https://github.com/seedcase-project/seedcase-sprout>"
uv add seedcase-sprout@git+https://github.com/seedcase-project/seedcase-sprout
uv add --dev ruff commitizen pre-commit typos
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. Though we'll very soon need to set the pypi version of Sprout, not the GitHub version. That's something you can do here.

main.py Outdated
Comment on lines 11 to 12
# Write properties from properties script to `datapackage.json`.
# sp.write_properties(properties=properties)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a lot more that can be added here, based on what is in Sprout's guide.

@github-project-automation github-project-automation bot moved this from In Review to In Progress in Iteration planning Jul 3, 2025
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed this was a hangover and deleted it

# from scripts.resource_properties import resource_properties


def main():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be the full script. You can't just uncomment and run everything at once because required properties need to be filled in, scripts/resource_properties.py needs to be created, etc.

@martonvago martonvago requested a review from lwjohnst86 July 4, 2025 15:10
@martonvago martonvago moved this from In Progress to In Review in Iteration planning Jul 4, 2025
Copy link
Member

@lwjohnst86 lwjohnst86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! Just one comment, which I will commit and then will approve and merge 🎉

@github-project-automation github-project-automation bot moved this from In Review to In Progress in Iteration planning Jul 4, 2025
@lwjohnst86 lwjohnst86 merged commit 3db545e into main Jul 4, 2025
2 of 3 checks passed
@lwjohnst86 lwjohnst86 deleted the refactor/match-sprout branch July 4, 2025 16:02
@github-project-automation github-project-automation bot moved this from In Progress to Done in Iteration planning Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Match changes made in Sprout to here Include main.py in the root

2 participants