diff --git a/.editorconfig b/.editorconfig index 924a7410a..c484f76bf 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,4 @@ -# EditorConfig is awesome: http://EditorConfig.org +# EditorConfig is awesome: https://editorconfig.org/ # top-most EditorConfig file root = true diff --git a/.gitignore b/.gitignore index 5b994d2d4..49840bc00 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# See http://stackoverflow.com/questions/5533050/gitignore-exclude-folder-but-include-specific-subfolder +# See https://stackoverflow.com/questions/5533050/gitignore-exclude-folder-but-include-specific-subfolder # to understand pattern used to include .idea/codeStyleSettings.xml but not the rest of .idea/ !.idea/ .idea/* diff --git a/README.rst b/README.rst index 62e1d6113..c1aa693cb 100644 --- a/README.rst +++ b/README.rst @@ -20,7 +20,7 @@ Jira Python Library ------------ .. image:: https://readthedocs.org/projects/jira/badge/?version=master - :target: http://jira.readthedocs.io + :target: https://jira.readthedocs.io/ .. image:: https://travis-ci.com/pycontribs/jira.svg?branch=master :target: https://travis-ci.com/pycontribs/jira @@ -77,7 +77,7 @@ By default only the basic library dependencies are installed, so if you want to use the ``cli`` tool or other optional dependencies do perform a full installation using ``pip install jira[opt,cli,test]`` -.. _virtualenv: http://www.virtualenv.org/en/latest/index.html +.. _virtualenv: https://virtualenv.pypa.io/ Usage @@ -85,7 +85,7 @@ Usage See the documentation_ for full details. -.. _documentation: http://jira.readthedocs.org/en/latest/ +.. _documentation: https://jira.readthedocs.org/en/latest/ Development @@ -128,16 +128,16 @@ In addition to all the contributors we would like to thank to these companies: .. _Atlassian: https://www.atlassian.com/ .. _Jira: https://pycontribs.atlassian.net -.. _JetBrains: http://www.jetbrains.com -.. _PyCharm: http://www.jetbrains.com/pycharm/ +.. _JetBrains: https://www.jetbrains.com/ +.. _PyCharm: https://www.jetbrains.com/pycharm/ .. _Travis: https://travis-ci.org/ .. _navicat: https://www.navicat.com/ .. image:: https://raw.githubusercontent.com/pycontribs/resources/master/logos/x32/logo-atlassian.png - :target: http://www.atlassian.com + :target: https://www.atlassian.com/ .. image:: https://raw.githubusercontent.com/pycontribs/resources/master/logos/x32/logo-pycharm.png - :target: http://www.jetbrains.com/ + :target: https://www.jetbrains.com/ .. image:: https://raw.githubusercontent.com/pycontribs/resources/master/logos/x32/logo-navicat.png - :target: http://www.navicat.com/ + :target: https://www.navicat.com/ diff --git a/docs/installation.rst b/docs/installation.rst index 93fab5e4a..bd1f1bf61 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -4,13 +4,13 @@ Installation .. contents:: Contents :local: -The easiest (and best) way to install jira-python is through `pip `_:: +The easiest (and best) way to install jira-python is through `pip `_:: $ pip install jira This will handle the client itself as well as the requirements. -If you're going to run the client standalone, we strongly recommend using a `virtualenv `_, +If you're going to run the client standalone, we strongly recommend using a `virtualenv `_, which pip can also set up for you:: $ pip -E jira_python install jira @@ -30,10 +30,10 @@ Dependencies Python 3.5+ is required. -- :py:mod:`requests` - `python-requests `_ library handles the HTTP business. Usually, the latest version available at time of release is the minimum version required; at this writing, that version is 1.2.0, but any version >= 1.0.0 should work. +- :py:mod:`requests` - `python-requests `_ library handles the HTTP business. Usually, the latest version available at time of release is the minimum version required; at this writing, that version is 1.2.0, but any version >= 1.0.0 should work. - :py:mod:`requests-oauthlib` - Used to implement OAuth. The latest version as of this writing is 0.3.3. - :py:mod:`requests-kerberos` - Used to implement Kerberos. -- :py:mod:`ipython` - The `IPython enhanced Python interpreter `_ provides the fancy chrome used by :ref:`jirashell-label`. +- :py:mod:`ipython` - The `IPython enhanced Python interpreter `_ provides the fancy chrome used by :ref:`jirashell-label`. - :py:mod:`filemagic` - This library handles content-type autodetection for things like image uploads. This will only work on a system that provides libmagic; Mac and Unix will almost always have it preinstalled, but Windows users will have to use Cygwin or compile it natively. If your system doesn't have libmagic, you'll have to manually specify the ``contentType`` parameter on methods that take an image object, such as project and user avatar creation. Installing through :py:mod:`pip` takes care of these dependencies for you. diff --git a/docs/jirashell.rst b/docs/jirashell.rst index 68fa4e382..5c248e679 100644 --- a/docs/jirashell.rst +++ b/docs/jirashell.rst @@ -7,8 +7,8 @@ it, and bang your elbows -- trial and error. A REST design is especially well-su Run it from the command line:: - $ jirashell -s http://jira.atlassian.com - + $ jirashell -s https://jira.atlassian.com + *** Jira shell active; client is in 'jira'. Press Ctrl-D to exit. diff --git a/jira/client.py b/jira/client.py index 193a6c167..57b2d1839 100644 --- a/jira/client.py +++ b/jira/client.py @@ -2269,7 +2269,7 @@ def create_temp_project_avatar( Avatar images are specified by a filename, size, and file object. By default, the client will attempt to autodetect the picture's content type: this mechanism relies on libmagic and will not work out of the box - on Windows systems (see http://filemagic.readthedocs.org/en/latest/guide.html for details on how to install + on Windows systems (see https://filemagic.readthedocs.io/en/latest/guide.html for details on how to install support). The ``contentType`` argument can be used to explicitly set the value (note that Jira will reject any type other than the well-known ones for images, e.g. ``image/jpg``, ``image/png``, etc.) diff --git a/tests/start-jira.sh b/tests/start-jira.sh index a262cec4c..453f91a11 100755 --- a/tests/start-jira.sh +++ b/tests/start-jira.sh @@ -6,7 +6,7 @@ rm jira.log atlas-run-standalone --product jira --http-port 2990 \ -B -nsu -o --threads 2.0C jira.log 2>&1 & -printf "Waiting for Jira to start respinding on $JIRA_URL " +printf "Waiting for Jira to start responding on $JIRA_URL " until $(curl --output /dev/null --silent --head --fail $JIRA_URL); do printf '.' sleep 5