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

setup build and deploy action #18

Merged
merged 3 commits into from
Feb 17, 2021
Merged

Conversation

chrisantonellis
Copy link
Contributor

@chrisantonellis chrisantonellis commented Feb 17, 2021

  • setup build and deploy action
  • fixed imports in init.py and set release version
  • fixed classifiers in setup.cfg

@codecov
Copy link

codecov bot commented Feb 17, 2021

Codecov Report

Merging #18 (27d2e5f) into main (b6191bd) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #18   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          189       189           
  Branches        16        16           
=========================================
  Hits           189       189           

Copy link
Collaborator

@joaufi joaufi left a comment

Choose a reason for hiding this comment

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

This looks great! A few minor things and curious Qs but feel free to ✨ 🚀 shippit once considering them. 🙂

echo "Ensuring pip is up to date"
python -m pip install --upgrade pip
echo "Installing the latest version of pypa/build"
pip install build
Copy link
Collaborator

Choose a reason for hiding this comment

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

Curious why the pip upgrade is triggered with python -m and this uses pip straight. Why is that? ❓

Copy link
Contributor Author

Choose a reason for hiding this comment

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

initially implemented by @plannigan so I am unsure!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Was actually implemented by @jamescurtin, but it should be the same either way. I don't have an opinion on which should be used going forward.

Copy link
Contributor

Choose a reason for hiding this comment

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

Correct: both are the same, I was just inconsistent in usage. (Reference).

python -m pip has the benefit of being explicit about which version of the python binary is used on a system that uses multiple (i.e. python vs. python3), but for our purposes either is fine.

inputs:
package-import-name:
description: "Name used to import the package from python code"
required: true
packages-dir:
description: The target directory for distribution
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider wrapping the value in ""~ (and other strings in this file- helps keep things consistent and provides some measure of safety. 😁 )

@@ -0,0 +1,27 @@
name: Publish Release
Copy link
Collaborator

Choose a reason for hiding this comment

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

Likewise, consider wrapping all strings in this file in "". 🎞️

@@ -0,0 +1,27 @@
name: Publish Release
env:
PYTHON_VERSION: "3.9"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this mean the env that this workflow runs in going to be using Python 3.9? I'm curious if we should be running it in Python 3.8 since we don't add a 3.9 Classifier listing in setup.cfg

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah I should bump this down cause its just weird, but as we're publishing a pure-python wheel it shouldn't be an issue which version of python builds it

Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we also add a Programming Language :: Python :: 3.9 classifier (if we intend to publish for 3.9) and a License :: OSI Approved :: MIT License classifier like in Columbo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeppers

@chrisantonellis chrisantonellis merged commit 7b7d71c into main Feb 17, 2021
@chrisantonellis chrisantonellis deleted the cantonellis_publish_0.1.0rc branch February 17, 2021 18:57
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.

4 participants