Skip to content

Conversation

@hiranya911
Copy link
Contributor


from firebase_admin import credentials


Copy link

Choose a reason for hiding this comment

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

Can you add a comment with the link to https://www.python.org/dev/peps/pep-0396/#specification in it so people know why we have this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

setup.py Outdated


if sys.version_info < (2, 7):
print('firebase_admin requires python2 version >= 2.7.', file=sys.stderr)
Copy link

Choose a reason for hiding this comment

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

I could see someone reading this and assuming we don't support python3. Should we make it clear in this comment that we support both?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the displayed message

'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
Copy link

Choose a reason for hiding this comment

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

This kind of harkens back to our discussion from Wednesday, but do we need to explicitly list 3.3 and 3.5 here? I'm fine if we want to keep it, but it just seems kinda random.

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 figured we should list the Python versions that we have explicitly tested on. oauth2client does something similar: https://github.com/google/oauth2client/blob/master/setup.py

@hiranya911
Copy link
Contributor Author

Updated the comments as suggested.

Copy link

@jwngr jwngr left a comment

Choose a reason for hiding this comment

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

LGTM



# Declaring module version as per https://www.python.org/dev/peps/pep-0396/#specification
# Update this accordingly for each release.
Copy link

Choose a reason for hiding this comment

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

Just a thought: We should probably have a script like we do in Java (release-to-gh.sh) and Node.js (create-release-tarball.sh) which takes the version number as an argument and updates this kind of stuff automatically.

@hiranya911 hiranya911 merged commit 779a707 into master Mar 31, 2017
@hiranya911 hiranya911 deleted the hkj-release-process-setup branch March 31, 2017 20:10
@jwngr jwngr removed their assignment Apr 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants