Tracking namespace change
Here's a place we can track updates to the future changing of the gcloud-python namespace.
This change could break things in the future.
Sub-projects already partially created:
google-cloudgoogle-cloud-coregoogle-cloud-datastoregoogle-cloud-storagegoogle-cloud-pubsubgoogle-cloud-bigquerygoogle-cloud-bigtablegoogle-cloud-happybasegoogle-cloud-logginggoogle-cloud-visiongoogle-cloud-speechgoogle-cloud-language(and the aliasgoogle-cloud-natural-language)google-cloud-resource-managergoogle-cloud-translategoogle-cloud-dnsgoogle-cloud-monitoringgoogle-cloud-error-reporting
Is this in reference to changing to google.cloud?
@jonparrott yup! I wasn't sure if that was finalized or not.
@jgeewax can confirm, but from what I understand that is the way we want to go.
We will want to update the User-Agent string as well for this right? Are there any other implications to that? i.e. people have that user-agent allowed in their apps/firewall.
Let's leave the useragent string alone -- we would have a whole heap of stuff to fix if we change that....
Otherwise -- yes, we're definitely going forward with google.cloud as the import path
Using the form I created
- https://pypi.python.org/pypi/google-cloud
- https://pypi.python.org/pypi/google-cloud-datastore
- https://pypi.python.org/pypi/google-cloud-storage
- https://pypi.python.org/pypi/google-cloud-pubsub
- https://pypi.python.org/pypi/google-cloud-bigquery
- https://pypi.python.org/pypi/google-cloud-bigtable
- https://pypi.python.org/pypi/google-cloud-logging
with the gcloudpypi account on PyPI.
@omaray I held off on grabbing the equivalents for dns, error_reporting, monitoring, resource_manager and translate, but I can do that as well if you like. I'm not sure if underscores are allowed in PyPI package names?
@dhermes you can use underscores but it's preferable to use - for consistency.
google-cloud-error-reporting reads better than google-cloud-error_reporting, even if the import path is google.cloud.error_reporting.
Thanks @jonparrott.
@tseaver @jgeewax @omaray, shall we use google-cloud-core for the code shared by all ~~modules~~ sub-packages?
google-cloud-core SGTM.
:+1: Just created https://pypi.python.org/pypi/google-cloud-core
Just created https://pypi.python.org/pypi/google-cloud-happybase for #1762
Thanks @dhermes. All sgtm. Not sure if we added speech, vision, and language - but I guess might as well.
@omaray Just created https://pypi.python.org/pypi/google-cloud-vision and https://pypi.python.org/pypi/google-cloud-speech
Should it be called google-cloud-language or google-cloud-natural-language?
+1 for google-cloud-natural-language.
So Ruby and Node.js called it google-cloud-language:
Example: https://www.npmjs.com/package/@google-cloud/language
It's shorter indeed.
If it's easy to do, let's hold both! I'll check with the team.
If it's easy to do, let's hold both! I'll check with the team.
It is easy but that would just be namespace squatting on PyPI; seems like it would be frowned upon. Though on the flipside, non-Google entities squatting on a name with google in it is also probably frowned upon.
I've noticed the Googlers keep calling it Language but that seems to be vague for people not already familiar with the API.
It's fine to have both google-cloud-language and google-cloud-natural-language as long as you publish a metapackage to one that depends on the other.
(fyi, if we do run into a case where there's someone squatting on our name we can get that resolved).
So @jonparrott as packaging wizard your opinion is that I should grab both (a) and we should publish to both (b)?
Grab both and publish to one, and publish a metapackage to the other. But only if you feel like it's really necessary. I'd say don't. Just go with google-cloud-natural-language. Typically the metapackage magic is only done to deal with legacy stuff (like we'll eventually have to do with oauth2client and google-auth).