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

DM-35047: Add upload to pypi #126

Merged
merged 2 commits into from Jun 10, 2022
Merged

DM-35047: Add upload to pypi #126

merged 2 commits into from Jun 10, 2022

Conversation

mwittgen
Copy link
Contributor

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

@mwittgen mwittgen requested a review from timj June 10, 2022 05:46
@codecov
Copy link

codecov bot commented Jun 10, 2022

Codecov Report

Merging #126 (b96a903) into main (894b03d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #126   +/-   ##
=======================================
  Coverage   92.08%   92.08%           
=======================================
  Files          42       42           
  Lines        2665     2665           
=======================================
  Hits         2454     2454           
  Misses        211      211           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 894b03d...b96a903. Read the comment docs.

Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

Looks okay. One actual bug in the cfg file plus some questions.

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
Copy link
Member

Choose a reason for hiding this comment

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

Does this python version matter for anything? Should it match build_and_test or is it irrelevant because the code in the package is never run?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. We can use python 3.10 here

Copy link
Member

Choose a reason for hiding this comment

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

Can this part of the workflow be a reusable component? It seems like there isn't anything specific to utils here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. I would make this an additional ticket.

LICENSE Outdated

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistribution and use in source and binary forms, with or without modification,
Copy link
Member

Choose a reason for hiding this comment

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

What was wrong with the formatting of the LICENSE file?

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 wanted to adapt the same LICENSE file. Maybe this should be reverted back.

Copy link
Member

Choose a reason for hiding this comment

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

I have no real idea how I ended up with a license version that is formatted differently to others. Can you make it a different commit though since it's not related to the pypi changes in the same commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted

Copy link
Member

Choose a reason for hiding this comment

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

I didn't say revert, I said put on a different commit on this branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, Reverted first with a forced push, added a separate commit. The LICENSE file is now the one from
lsst_versions

Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Copy link
Member

Choose a reason for hiding this comment

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

We probably need to start using tox and testing multiple python versions in a matrix (or at least not using tox but still using a matrix). I'm fine with you doing that on a later ticket.

setup.cfg Outdated Show resolved Hide resolved
BSD 3-Clause License

Copyright (c) 2022, lsst
All rights reserved.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Much nicer with the license version explicitly stated.

@mwittgen mwittgen merged commit 77aa7bc into main Jun 10, 2022
@mwittgen mwittgen deleted the tickets/DM-35047 branch June 10, 2022 19:14
@mwittgen mwittgen changed the title Add upload to pypi DM-35047: Add upload to pypi Jun 10, 2022
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.

None yet

2 participants