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

heart rate, cadence, temperature, speed, and power #17

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

arichnad
Copy link
Contributor

It's my yearly pull request!

  1. When getting gpx files, I included heart rate, cadence, temperature, speed, and power information, as available.
  2. I included the xsd files and a xsd/gpxwrapper.xsd file that tests the individual xsd files.
  • To test a gpx file I used: xmlstarlet val --xsd xsd/gpxwrapper.xsd test.gpx
  • Or: xmllint --schema xsd/gpxwrapper.xsd --noout test.gpx
  1. I tested the dependabot commits and they look good. I've included them here.

dependabot bot and others added 6 commits May 1, 2023 21:37
Bumps [flask](https://github.com/pallets/flask) from 1.1.2 to 2.3.2.
- [Release notes](https://github.com/pallets/flask/releases)
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst)
- [Commits](pallets/flask@1.1.2...2.3.2)

---
updated-dependencies:
- dependency-name: flask
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [requests](https://github.com/psf/requests) from 2.23.0 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](psf/requests@v2.23.0...v2.31.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@lorenzobenvenuti
Copy link
Owner

Thank you very much! I'll have a look as soon as I can

Copy link
Owner

Choose a reason for hiding this comment

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

Last week I had to update this file because for some reason Pip wasn't installing Flask dependencies (the MR doesn't contain these changes, it needs to be rebased), so I had to explicitly list them here (see #16). I'm wondering whether we need to update these dependencies or if we can just remove them (assuming that when installing flask 2.3.2 Pip will automatically pull jinja2, werkzeug and itsdangerous)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, I'll rebase this commit.

Copy link
Owner

Choose a reason for hiding this comment

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

Do we need this file? As far as I can see it was used to verify that some code changes were still producing a valid GPX, but I think we can remove it now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm, I will try to make a better unit test system that doesn't depend on the patch file and doesn't depend on pulling data down from the network.

Before I start, though, do you think I should use unittest?

https://docs.python.org/3/library/unittest.html

Or something different?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In addition to unittest, here are two others mentioned in the docs:

I've never used any of these, but I'll use the one you recommend.

Copy link
Owner

Choose a reason for hiding this comment

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

Probably I misinterpreted the code here: I thought that test.sh was only used to validate code changes (i.e. apply a patch and validate the output against an xsd), that's why I wasn't sure if they belong here. If that's not the case, I see no harm in keeping them.

Copy link
Owner

Choose a reason for hiding this comment

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

Same as the other patch file

Copy link
Owner

Choose a reason for hiding this comment

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

Same as the patch files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants