diff options
Diffstat (limited to 'src/launchpadlib')
-rw-r--r-- | src/launchpadlib/NEWS.txt | 4 | ||||
-rw-r--r-- | src/launchpadlib/__init__.py | 2 | ||||
-rw-r--r-- | src/launchpadlib/docs/command-line.txt | 2 | ||||
-rw-r--r-- | src/launchpadlib/docs/introduction.txt | 4 | ||||
-rw-r--r-- | src/launchpadlib/uris.py | 8 |
5 files changed, 12 insertions, 8 deletions
diff --git a/src/launchpadlib/NEWS.txt b/src/launchpadlib/NEWS.txt index ad83634..6178ad3 100644 --- a/src/launchpadlib/NEWS.txt +++ b/src/launchpadlib/NEWS.txt @@ -2,6 +2,10 @@ NEWS for launchpadlib ===================== +1.10.7 (2019-05-22) +=================== +- Change 'dev' URLs from launchpad.dev to launchpad.test. + 1.10.6 (2018-03-08) =================== - Fix saving of credentials in python3 with gnome-keyring. [bug=1685962] diff --git a/src/launchpadlib/__init__.py b/src/launchpadlib/__init__.py index 326daab..590e03f 100644 --- a/src/launchpadlib/__init__.py +++ b/src/launchpadlib/__init__.py @@ -14,4 +14,4 @@ # You should have received a copy of the GNU Lesser General Public License # along with launchpadlib. If not, see <http://www.gnu.org/licenses/>. -__version__ = '1.10.6' +__version__ = '1.10.7' diff --git a/src/launchpadlib/docs/command-line.txt b/src/launchpadlib/docs/command-line.txt index b661d0c..5725dc2 100644 --- a/src/launchpadlib/docs/command-line.txt +++ b/src/launchpadlib/docs/command-line.txt @@ -23,7 +23,7 @@ token and the available access levels. ... import simplejson as json >>> from launchpadlib.apps import RequestTokenApp - >>> web_root = "http://launchpad.dev:8085/" + >>> web_root = "http://launchpad.test:8085/" >>> consumer_name = "consumer" >>> token_app = RequestTokenApp(web_root, consumer_name, "context") >>> token_json = json.loads(token_app.run()) diff --git a/src/launchpadlib/docs/introduction.txt b/src/launchpadlib/docs/introduction.txt index 88ede40..722ebac 100644 --- a/src/launchpadlib/docs/introduction.txt +++ b/src/launchpadlib/docs/introduction.txt @@ -230,11 +230,11 @@ get a request token. >>> authorization_url = credentials.get_request_token( ... context='firefox', web_root='test_dev') >>> print(authorization_url) - http://launchpad.dev:8085/+authorize-token?oauth_token=...&lp.context=firefox + http://launchpad.test:8085/+authorize-token?oauth_token=...&lp.context=firefox We use 'test_dev' as a shorthand for the root URL of the Launchpad installation. It's defined in the 'uris' module as -'http://launchpad.dev:8085/', and the launchpadlib code knows how to +'http://launchpad.test:8085/', and the launchpadlib code knows how to dereference it before using it as a URL. Information about the request token is kept in the _request_token diff --git a/src/launchpadlib/uris.py b/src/launchpadlib/uris.py index a4f0c6a..2456a34 100644 --- a/src/launchpadlib/uris.py +++ b/src/launchpadlib/uris.py @@ -37,16 +37,16 @@ from lazr.uri import URI LPNET_SERVICE_ROOT = 'https://api.launchpad.net/' QASTAGING_SERVICE_ROOT = 'https://api.qastaging.launchpad.net/' STAGING_SERVICE_ROOT = 'https://api.staging.launchpad.net/' -DEV_SERVICE_ROOT = 'https://api.launchpad.dev/' +DEV_SERVICE_ROOT = 'https://api.launchpad.test/' DOGFOOD_SERVICE_ROOT = 'https://api.dogfood.paddev.net/' -TEST_DEV_SERVICE_ROOT = 'http://api.launchpad.dev:8085/' +TEST_DEV_SERVICE_ROOT = 'http://api.launchpad.test:8085/' LPNET_WEB_ROOT = 'https://launchpad.net/' QASTAGING_WEB_ROOT = 'https://qastaging.launchpad.net/' STAGING_WEB_ROOT = 'https://staging.launchpad.net/' -DEV_WEB_ROOT = 'https://launchpad.dev/' +DEV_WEB_ROOT = 'https://launchpad.test/' DOGFOOD_WEB_ROOT = 'https://dogfood.paddev.net/' -TEST_DEV_WEB_ROOT = 'http://launchpad.dev:8085/' +TEST_DEV_WEB_ROOT = 'http://launchpad.test:8085/' # If you use EDGE_SERVICE_ROOT, or its alias, or the equivalent # string, launchpadlib will issue a deprecation warning and use |