From 54698f9c7aa47e372efd584825cc05b940afd275 Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Wed, 5 Aug 2020 12:26:54 -0400 Subject: [PATCH] DOC: Updated http links to https --- CONTRIBUTING.rst | 2 +- conda/empyrical/meta.yaml | 4 ++-- conda/zipline/meta.yaml | 2 +- docs/notebooks/tutorial.ipynb | Bin 372513 -> 372514 bytes docs/source/conf.py | 8 ++++---- docs/source/development-guidelines.rst | 6 +++--- docs/source/release-process.rst | 4 ++-- docs/source/trading-calendars.rst | 8 ++++---- docs/source/whatsnew/0.6.1.txt | 2 +- docs/source/whatsnew/0.8.0.txt | 2 +- setup.py | 2 +- tests/test_labelarray.py | 2 +- zipline/assets/futures.py | 2 +- zipline/lib/labelarray.py | 2 +- zipline/sources/requests_csv.py | 4 ++-- zipline/utils/tradingcalendar.py | 6 +++--- 16 files changed, 28 insertions(+), 28 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 16093562..5e87f612 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -4,7 +4,7 @@ For developers of Zipline, people who want to contribute to the Zipline codebase All contributions, bug reports, bug fixes, documentation improvements, enhancements and ideas are welcome. We `track issues`__ on `GitHub`__ and also have a `mailing list`__ where you can ask questions. -__ http://www.zipline.io/development-guidelines.html +__ https://www.zipline.io/development-guidelines.html __ https://github.com/quantopian/zipline/issues __ https://github.com/ __ https://groups.google.com/forum/#!forum/zipline diff --git a/conda/empyrical/meta.yaml b/conda/empyrical/meta.yaml index 78693c75..0bc8511a 100644 --- a/conda/empyrical/meta.yaml +++ b/conda/empyrical/meta.yaml @@ -55,9 +55,9 @@ about: .. _Quantopian Inc: https://www.quantopian.com - .. _Zipline: http://zipline.io + .. _Zipline: https://www.zipline.io - .. _pyfolio: http://quantopian.github.io/pyfolio/ + .. _pyfolio: https://quantopian.github.io/pyfolio/ ' doc_url: '' diff --git a/conda/zipline/meta.yaml b/conda/zipline/meta.yaml index c5bbc708..f4288d6d 100644 --- a/conda/zipline/meta.yaml +++ b/conda/zipline/meta.yaml @@ -34,7 +34,7 @@ test: - zipline about: - home: https://zipline.io + home: https://www.zipline.io license: Apache Software License # See diff --git a/docs/notebooks/tutorial.ipynb b/docs/notebooks/tutorial.ipynb index 282a3cf19f078d195c30c0fa38583368593a31ab..eb015bd60c615c89e7ae00ab271acd851760018c 100644 GIT binary patch delta 36 mcmZ2@Pi)aWu?>FmjK$4<^6fwxh?#(x8Hic7`^mFj?gs$!uM83Z delta 34 lcmZ2Fm&HnQ3{_>1K%ml>DK+Lk;U!L`HKLFma3#0%5 diff --git a/docs/source/conf.py b/docs/source/conf.py index b51be873..d19873d0 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -87,10 +87,10 @@ html_show_copyright = True htmlhelp_basename = 'ziplinedoc' intersphinx_mapping = { - 'http://docs.python.org/dev': None, - 'numpy': ('http://docs.scipy.org/doc/numpy/', None), - 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None), - 'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None), + 'https://docs.python.org/dev/': None, + 'numpy': ('https://numpy.org/doc/stable/', None), + 'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None), + 'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None), } doctest_global_setup = "import zipline" diff --git a/docs/source/development-guidelines.rst b/docs/source/development-guidelines.rst index 811d1721..e4d04e47 100644 --- a/docs/source/development-guidelines.rst +++ b/docs/source/development-guidelines.rst @@ -84,8 +84,8 @@ Style Guide & Running Tests We use `flake8`__ for checking style requirements and `nosetests`__ to run Zipline tests. Our `continuous integration`__ tools will run these commands. -__ http://flake8.pycqa.org/en/latest/ -__ http://nose.readthedocs.io/en/latest/ +__ https://flake8.pycqa.org/en/latest/ +__ https://nose.readthedocs.io/en/latest/ __ https://en.wikipedia.org/wiki/Continuous_integration Before submitting patches or pull requests, please ensure that your changes pass when running: @@ -189,7 +189,7 @@ __ https://en.wikipedia.org/wiki/ReStructuredText We use `Sphinx`__ to generate documentation for Zipline, which you will need to install by running: -__ http://www.sphinx-doc.org/en/stable/ +__ https://www.sphinx-doc.org/en/master/ .. code-block:: bash diff --git a/docs/source/release-process.rst b/docs/source/release-process.rst index 083311af..1053fa26 100644 --- a/docs/source/release-process.rst +++ b/docs/source/release-process.rst @@ -168,7 +168,7 @@ they were compiled. Documentation ~~~~~~~~~~~~~ -To update `zipline.io `__, checkout the +To update `zipline.io `__, checkout the latest master and run: .. code-block:: python @@ -196,7 +196,7 @@ Once we are happy, push the updated docs to the GitHub ``gh-pages`` branch. $ git commit -m "DOC: update zipline.io" $ git push origin gh-pages -`zipline.io `__ will update in a few moments. +`zipline.io `__ will update in a few moments. Uploading conda packages ~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/source/trading-calendars.rst b/docs/source/trading-calendars.rst index c239ea38..63395d47 100644 --- a/docs/source/trading-calendars.rst +++ b/docs/source/trading-calendars.rst @@ -15,7 +15,7 @@ Why Should You Care About Trading Calendars? Let's say you want to buy a share of some equity on Tuesday, and then sell it on Saturday. If the exchange in which you're trading that equity is not open on Saturday, then in reality it would not be possible to trade that equity at that time, and you would have to wait until some other number of days past Saturday. Since you wouldn't be able to place the trade in reality, it would also be unreasonable for your backtest to place a trade on Saturday. -In order for you to backtest your strategy, the dates in that are accounted for in your `data bundle `__ and the dates in your ``TradingCalendar`` should match up; if the dates don't match up, then you you're going to see some errors along the way. This holds for both minutely and daily data. +In order for you to backtest your strategy, the dates in that are accounted for in your `data bundle `__ and the dates in your ``TradingCalendar`` should match up; if the dates don't match up, then you you're going to see some errors along the way. This holds for both minutely and daily data. The TradingCalendar Class @@ -30,7 +30,7 @@ The ``TradingCalendar`` class has many properties we should be thinking about if - Regular & Ad hoc Holidays - Special Opens & Closes -And several others. If you'd like to see all of the properties and methods available to you through the ``TradingCalendar`` API, please take a look at the `API Reference `__ +And several others. If you'd like to see all of the properties and methods available to you through the ``TradingCalendar`` API, please take a look at the `API Reference `__ Now we'll take a look at the London Stock Exchange Calendar :class:`~zipline.utils.calendars.exchange_calendar_lse.LSEExchangeCalendar` as an example below: @@ -88,7 +88,7 @@ Now we'll take a look at the London Stock Exchange Calendar :class:`~zipline.uti ]) -You can create the ``Holiday`` objects mentioned in ``def regular_holidays(self)` through the `pandas `__ module, ``pandas.tseries.holiday.Holiday``, and also take a look at the `LSEExchangeCalendar `__ code as an example, or take a look at the code snippet below. +You can create the ``Holiday`` objects mentioned in ``def regular_holidays(self)` through the `pandas `__ module, ``pandas.tseries.holiday.Holiday``, and also take a look at the `LSEExchangeCalendar `__ code as an example, or take a look at the code snippet below. .. code-block:: python @@ -185,4 +185,4 @@ And now we'll actually build this calendar, which we'll call ``TFSExchangeCalend Conclusions ~~~~~~~~~~~ -In order for you to run your algorithm with this calendar, you'll need have a data bundle in which your assets have dates that run through all days of the week. You can read about how to make your own data bundle in the `Writing a New Bundle `__ documentation, or use the `csvdir bundle `__ for creating a bundle from CSV files. +In order for you to run your algorithm with this calendar, you'll need have a data bundle in which your assets have dates that run through all days of the week. You can read about how to make your own data bundle in the `Writing a New Bundle `__ documentation, or use the `csvdir bundle `__ for creating a bundle from CSV files. diff --git a/docs/source/whatsnew/0.6.1.txt b/docs/source/whatsnew/0.6.1.txt index e6d6f7c7..8a2844de 100644 --- a/docs/source/whatsnew/0.6.1.txt +++ b/docs/source/whatsnew/0.6.1.txt @@ -300,7 +300,7 @@ Build ~~~~~ * Added support for building and releasing via conda - For those who prefer building with http://conda.pydata.org/ to compiling + For those who prefer building with https://docs.conda.io/en/latest/ to compiling locally with pip. The following should install Zipline on many systems. diff --git a/docs/source/whatsnew/0.8.0.txt b/docs/source/whatsnew/0.8.0.txt index 795122e5..e23eef4a 100644 --- a/docs/source/whatsnew/0.8.0.txt +++ b/docs/source/whatsnew/0.8.0.txt @@ -8,7 +8,7 @@ Highlights ~~~~~~~~~~ * New documentation system with a new website at - `zipline.io `__ + `zipline.io `__ * Major performance enhancements. * Dynamic history. * New user defined method: ``before_trading_start``. diff --git a/setup.py b/setup.py index b45f123b..f07e24d3 100644 --- a/setup.py +++ b/setup.py @@ -264,7 +264,7 @@ if 'sdist' in sys.argv: setup( name='zipline', - url="http://zipline.io", + url="https://zipline.io", version=versioneer.get_version(), cmdclass=LazyBuildExtCommandClass(versioneer.get_cmdclass()), description='A backtester for financial algorithms.', diff --git a/tests/test_labelarray.py b/tests/test_labelarray.py index 0133c16d..b4593592 100644 --- a/tests/test_labelarray.py +++ b/tests/test_labelarray.py @@ -41,7 +41,7 @@ class LabelArrayTestCase(ZiplineTestCase): cls.strs = np.array([rotN(row, i) for i in range(3)], dtype=object) def test_fail_on_direct_construction(self): - # See http://docs.scipy.org/doc/numpy-1.10.0/user/basics.subclassing.html#simple-example-adding-an-extra-attribute-to-ndarray # noqa + # See https://docs.scipy.org/doc/numpy-1.10.0/user/basics.subclassing.html#simple-example-adding-an-extra-attribute-to-ndarray # noqa with self.assertRaises(TypeError) as e: np.ndarray.__new__(LabelArray, (5, 5)) diff --git a/zipline/assets/futures.py b/zipline/assets/futures.py index 316d0373..d79787c3 100644 --- a/zipline/assets/futures.py +++ b/zipline/assets/futures.py @@ -13,6 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# http://www.cmegroup.com/product-codes-listing/month-codes.html +# https://www.cmegroup.com/month-codes.html CMES_CODE_TO_MONTH = dict(zip('FGHJKMNQUVXZ', range(1, 13))) MONTH_TO_CMES_CODE = dict(zip(range(1, 13), 'FGHJKMNQUVXZ')) diff --git a/zipline/lib/labelarray.py b/zipline/lib/labelarray.py index 4a89bb96..e2724bf7 100644 --- a/zipline/lib/labelarray.py +++ b/zipline/lib/labelarray.py @@ -136,7 +136,7 @@ class LabelArray(ndarray): See Also -------- - http://docs.scipy.org/doc/numpy-1.10.0/user/basics.subclassing.html + https://docs.scipy.org/doc/numpy-1.11.0/user/basics.subclassing.html """ SUPPORTED_SCALAR_TYPES = (bytes, unicode, type(None)) SUPPORTED_NON_NONE_SCALAR_TYPES = (bytes, unicode) diff --git a/zipline/sources/requests_csv.py b/zipline/sources/requests_csv.py index 1ea36f69..44e2bc42 100644 --- a/zipline/sources/requests_csv.py +++ b/zipline/sources/requests_csv.py @@ -58,7 +58,7 @@ class FetcherCSVRedirectError(ZiplineError): # The following optional arguments are supported for # requests backed data sources. -# see http://docs.python-requests.org/en/latest/api/#main-interface +# see https://requests.readthedocs.io/en/latest/api/#main-interface # for a full list. ALLOWED_REQUESTS_KWARGS = { 'params', @@ -70,7 +70,7 @@ ALLOWED_REQUESTS_KWARGS = { # The following optional arguments are supported for pandas' read_csv # function, and may be passed as kwargs to the datasource below. -# see http://pandas.pydata.org/ +# see https://pandas.pydata.org/ # pandas-docs/stable/generated/pandas.io.parsers.read_csv.html ALLOWED_READ_CSV_KWARGS = { 'sep', diff --git a/zipline/utils/tradingcalendar.py b/zipline/utils/tradingcalendar.py index 08071a3f..56e532d3 100644 --- a/zipline/utils/tradingcalendar.py +++ b/zipline/utils/tradingcalendar.py @@ -217,7 +217,7 @@ def get_non_trading_days(start, end): non_trading_days = non_trading_ruleset.between(start, end, inc=True) # Add September 11th closings - # http://en.wikipedia.org/wiki/Aftermath_of_the_September_11_attacks + # https://en.wikipedia.org/wiki/Aftermath_of_the_September_11_attacks # Due to the terrorist attacks, the stock market did not open on 9/11/2001 # It did not open again until 9/17/2001. # @@ -235,7 +235,7 @@ def get_non_trading_days(start, end): datetime(2001, 9, day_num, tzinfo=pytz.utc)) # Add closings due to Hurricane Sandy in 2012 - # http://en.wikipedia.org/wiki/Hurricane_sandy + # https://en.wikipedia.org/wiki/Hurricane_sandy # # The stock exchange was closed due to Hurricane Sandy's # impact on New York. @@ -282,7 +282,7 @@ trading_days = get_trading_days(start, end) def get_early_closes(start, end): # 1:00 PM close rules based on - # http://quant.stackexchange.com/questions/4083/nyse-early-close-rules-july-4th-and-dec-25th # noqa + # https://quant.stackexchange.com/questions/4083/nyse-early-close-rules-july-4th-and-dec-25th # noqa # and verified against http://www.nyse.com/pdfs/closings.pdf # These rules are valid starting in 1993