From e4f2f8078155266252494b1def14bcc21f9aa778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Ignacio=20S=C3=A1nchez=20Lara?= Date: Tue, 27 Feb 2018 13:18:34 +0100 Subject: [PATCH 1/2] Encoding fix --- carto/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/carto/auth.py b/carto/auth.py index a92b24d..9071c66 100644 --- a/carto/auth.py +++ b/carto/auth.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Module for authenticated access to CARTO's APIs From 5d13d29f96b9c9872c7ba5a3880471807da7fe13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Ignacio=20S=C3=A1nchez=20Lara?= Date: Tue, 27 Feb 2018 13:23:24 +0100 Subject: [PATCH 2/2] Release instructions --- CONTRIBUTING.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7cf5d0d..0b594e6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,28 @@ ## Submitting Contributions Contributions are totally welcome. However, contributors must sign a Contributor License Agreement (CLA) before making a submission. [Learn more here.](https://carto.com/contributing) + +## Release process + +1. You must be maintainer at [carto pypi repo](https://pypi.python.org/pypi/carto/). +2. Prepare a `~/.pypirc` file: + +``` +[distutils] +index-servers = + pypi + pypitest + +[pypi] +username=your_username +password=your_password + +[pypitest] +username=your_username +password=your_password +``` + +3. Upload the package to the test repository: `python setup.py sdist upload -r pypitest`. +4. Install it in a new environment: `pip install --index-url=https://test.pypi.org/simple --extra-index-url=https://pypi.org/simple carto`. +5. Test it. +6. Release it: `python setup.py sdist upload -r pypi`.