提交 eb4f92f4 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Change references to master branch to main

上级 175e3e86
...@@ -2,10 +2,10 @@ name: PyPI ...@@ -2,10 +2,10 @@ name: PyPI
on: on:
push: push:
branches: branches:
- master - main
- auto-release - auto-release
pull_request: pull_request:
branches: [master] branches: [main]
release: release:
types: [published] types: [published]
......
...@@ -3,11 +3,11 @@ name: Tests ...@@ -3,11 +3,11 @@ name: Tests
on: on:
push: push:
branches: branches:
- master - main
- checks - checks
pull_request: pull_request:
branches: branches:
- master - main
jobs: jobs:
changes: changes:
......
...@@ -59,7 +59,7 @@ test: # Test code using pytest. ...@@ -59,7 +59,7 @@ test: # Test code using pytest.
pytest -v tests/ ${PROJECT_DIR} --cov=${PROJECT_DIR} --cov-report=xml --html=testing-report.html --self-contained-html pytest -v tests/ ${PROJECT_DIR} --cov=${PROJECT_DIR} --cov-report=xml --html=testing-report.html --self-contained-html
coverage: test coverage: test
diff-cover coverage.xml --compare-branch=master --fail-under=100 diff-cover coverage.xml --compare-branch=main --fail-under=100
pypi: pypi:
${PYTHON} setup.py clean --all; \ ${PYTHON} setup.py clean --all; \
......
...@@ -122,5 +122,5 @@ The PyMC group operates under the NumFOCUS umbrella. If you want to support us f ...@@ -122,5 +122,5 @@ The PyMC group operates under the NumFOCUS umbrella. If you want to support us f
.. |Project Name| replace:: Aesara .. |Project Name| replace:: Aesara
.. |Tests Status| image:: https://github.com/pymc-devs/aesara/workflows/Tests/badge.svg .. |Tests Status| image:: https://github.com/pymc-devs/aesara/workflows/Tests/badge.svg
:target: https://github.com/pymc-devs/aesara/actions?query=workflow%3ATests :target: https://github.com/pymc-devs/aesara/actions?query=workflow%3ATests
.. |Coverage| image:: https://codecov.io/gh/pymc-devs/aesara/branch/master/graph/badge.svg?token=WVwr8nZYmc .. |Coverage| image:: https://codecov.io/gh/pymc-devs/aesara/branch/main/graph/badge.svg?token=WVwr8nZYmc
:target: https://codecov.io/gh/pymc-devs/aesara :target: https://codecov.io/gh/pymc-devs/aesara
...@@ -345,12 +345,12 @@ Using your local copy ...@@ -345,12 +345,12 @@ Using your local copy
--------------------- ---------------------
To update your library to the latest revision, you should have a local branch To update your library to the latest revision, you should have a local branch
that tracks central/master. You can add one (named "trunk" here) with: that tracks ``origin/main``. You can add one (named "trunk" here) with:
.. code-block:: bash .. code-block:: bash
git fetch central git fetch origin
git branch trunk central/master git branch trunk origin/main
Once you have such a branch, in order to update it, do: Once you have such a branch, in order to update it, do:
...@@ -396,13 +396,13 @@ Start a new local branch ...@@ -396,13 +396,13 @@ Start a new local branch
------------------------ ------------------------
When working on a new feature in your own fork, start from an up-to-date copy When working on a new feature in your own fork, start from an up-to-date copy
of the `master` branch (the principal one) of the central repository of the `main` branch (the principal one) of the central repository
(Aesara/Aesara on GitHub): (Aesara/Aesara on GitHub):
.. code-block:: bash .. code-block:: bash
git fetch central git fetch origin
git checkout -b my_shiny_feature central/master git checkout -b my_shiny_feature origin/main
.. note:: .. note::
...@@ -410,7 +410,7 @@ of the `master` branch (the principal one) of the central repository ...@@ -410,7 +410,7 @@ of the `master` branch (the principal one) of the central repository
.. code-block:: bash .. code-block:: bash
git branch my_shiny_feature central/master git branch my_shiny_feature origin/main
git checkout my_shiny_feature git checkout my_shiny_feature
...@@ -422,7 +422,7 @@ branch to your github fork first: ...@@ -422,7 +422,7 @@ branch to your github fork first:
.. code-block:: bash .. code-block:: bash
git commit -a -m "your message here" git commit -a -m "Your message here"
.. code-block:: bash .. code-block:: bash
...@@ -431,7 +431,7 @@ branch to your github fork first: ...@@ -431,7 +431,7 @@ branch to your github fork first:
Then, go to your fork's github page on the github website, select your Then, go to your fork's github page on the github website, select your
feature branch and hit the "Pull Request" button in the top right feature branch and hit the "Pull Request" button in the top right
corner. This will signal the maintainers that you wish to submit your corner. This will signal the maintainers that you wish to submit your
changes for inclusion in central/master. changes for inclusion in ``origin/main``.
Address reviewer comments Address reviewer comments
......
...@@ -15,7 +15,7 @@ to know what we want JAX to do. ...@@ -15,7 +15,7 @@ to know what we want JAX to do.
| Here are the examples for ``eye`` and ``ifelse`` from Aesara from the | Here are the examples for ``eye`` and ``ifelse`` from Aesara from the
compiled doc and codebase respectively compiled doc and codebase respectively
| https://aesara.readthedocs.io/en/latest/library/tensor/basic.html?highlight=eye#aesara.tensor.eye | https://aesara.readthedocs.io/en/latest/library/tensor/basic.html?highlight=eye#aesara.tensor.eye
| https://github.com/pymc-devs/aesara/blob/master/aesara/ifelse.py#L35 | https://github.com/pymc-devs/aesara/blob/main/aesara/ifelse.py#L35
Step 2: Find the relevant JAX method (or something close) Step 2: Find the relevant JAX method (or something close)
========================================================= =========================================================
...@@ -39,7 +39,7 @@ logic. ...@@ -39,7 +39,7 @@ logic.
return res if n_outs > 1 else res[0] return res if n_outs > 1 else res[0]
*Code in context:* *Code in context:*
https://github.com/pymc-devs/aesara/blob/master/aesara/link/jax/dispatch.py#L583 https://github.com/pymc-devs/aesara/blob/main/aesara/link/jax/dispatch.py#L583
Step 3: Register the function with the jax_funcify dispatcher Step 3: Register the function with the jax_funcify dispatcher
============================================================= =============================================================
...@@ -51,7 +51,7 @@ short tutorial on dispatching is at the bottom. ...@@ -51,7 +51,7 @@ short tutorial on dispatching is at the bottom.
The linker functions should be added to ``dispatch`` module linked The linker functions should be added to ``dispatch`` module linked
below. below.
https://github.com/pymc-devs/aesara/blob/master/aesara/link/jax/dispatch.py https://github.com/pymc-devs/aesara/blob/main/aesara/link/jax/dispatch.py
Here’s an example for the Eye Op. Here’s an example for the Eye Op.
...@@ -69,7 +69,7 @@ Here’s an example for the Eye Op. ...@@ -69,7 +69,7 @@ Here’s an example for the Eye Op.
return eye return eye
*Code in context:* *Code in context:*
https://github.com/pymc-devs/aesara/blob/master/aesara/link/jax/dispatch.py#L1071 https://github.com/pymc-devs/aesara/blob/main/aesara/link/jax/dispatch.py#L1071
Step 4: Write tests Step 4: Write tests
=================== ===================
...@@ -82,7 +82,7 @@ compile the same function graph in Python and JAX and check that the ...@@ -82,7 +82,7 @@ compile the same function graph in Python and JAX and check that the
numerical output is similar betwen the JAX and Python output, as well numerical output is similar betwen the JAX and Python output, as well
object types to ensure correct compilation. object types to ensure correct compilation.
https://github.com/pymc-devs/aesara/blob/master/tests/link/test_jax.py https://github.com/pymc-devs/aesara/blob/main/tests/link/test_jax.py
.. code:: python .. code:: python
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论