Skip to content

Commit

Permalink
Merge branch 'develop' into jandom/feat/add-snapshot-tests-with-syrup
Browse files Browse the repository at this point in the history
  • Loading branch information
jandom committed Aug 31, 2023
2 parents 2a97578 + 0ea2f36 commit 119e680
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 43 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/rtd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: readthedocs/preview

on:
pull_request_target:
types: [opened]
branches:
- develop

jobs:
rtdpreview:
if: "github.repository == 'MDAnalysis/UserGuide'"
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
pull-requests: write
steps:
- uses: readthedocs/actions/preview@v1
with:
project-slug: "mdanalysis"
29 changes: 23 additions & 6 deletions doc/source/preparing_releases_and_hotfixes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ If everything works, you can now complete the release by:
Manually upload Cirrus CI wheels (temporary)
--------------------------------------------

Unfortunately the deployment of Cirrus CI generated wheels (for `osx-arm64` and `linux-aarch64`) does not get properly triggered by a release. However, they are properly uploaded to `TestPyPi`_

.. todo:: actually add some examples & links of how to do this.`
#. Go to the recently updated TestPyPi release and download all the `.whl` files which have the tags `arm64` and `aarch64`.

#. From a local directory upload these wheels using ``twine``.

Unfortunately the deployment of Cirrus CI generated wheels (for `osx-arm64` and `linux-aarch64`) does not get properly triggered by a release.

#. Go to the ``package-*`` tag triggered Cirrus CI run results and download the generated wheels.
.. code-block:: bash
#. Upload them to PyPi using ``twine``.
twine upload -r pypi *.whl --verbose
Update `conda-forge` packages
Expand All @@ -171,6 +171,20 @@ To do this you will need to:

#. Ask the conda-forge bot to re-render, check that CI returns green, approve and merge the pull request.

Create a release of the UserGuide
---------------------------------

For now, the UserGuide is released at the same time as the core library. To make a release of the UserGuide you should:

#. Create a new release tag and upload them for the UserGuide repository.

.. code-block:: bash
git tag -m 'release 2.6.1 of the MDAnalysis UserGuide' release-2.6.1
git push --tags origin
#. This will automatically trigger a Github Action to build a new set of docs for that release and upload them. Due to the large size of the ``gh-pages`` branch on the UserGuide, this can be both slow and flaky, make sure to keep an eye out for any potential failures.


Create a blog post outlining the release
----------------------------------------
Expand All @@ -193,11 +207,14 @@ Once the release is completed you can go ahead and update the ``develop`` branch
Clean up old developer builds of the documentation
--------------------------------------------------

Whilst new docs are automatically deployed on a release, old developer builds (appended with ``-dev``) are not automatically cleaned up. To avoid causing large amounts of files being uploaded to GitHub Pages, we need to delete these old developer builds manually. To do this switch to the ``gh-pages`` branch, delete these old files, and push the change directly.
Whilst new docs are automatically deployed on a release, old developer builds (appended with ``-dev``) are not automatically cleaned up. To avoid causing large amounts of files being uploaded to GitHub Pages, we need to delete these old developer builds manually. To do this switch to the ``gh-pages`` branch, delete these old files, and push the change directly. You should do this for both the core library and the UserGuide.

While this is still a manual procedure, you should also edit `versions.json` to remove the old dev links.


.. _`developer mailing list`: https://groups.google.com/forum/#!forum/mdnalysis-devel
.. _`deploy github action`: https://github.com/MDAnalysis/mdanalysis/tree/develop/.github/workflows/deploy.yaml
.. _`MDAnalysis feedstock`: https://github.com/conda-forge/mdanalysis-feedstock
.. _`MDAnalysisTests feedstock`: https://github.com/conda-forge/mdanalysistests-feedstock
.. _`stable branch of the docs page`: https://docs.mdanalysis.org/stable
.. _`TestPyPi`: https://test.pypi.org/project/MDAnalysis/
72 changes: 35 additions & 37 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,57 +5,55 @@ channels:
- plotly
- defaults
dependencies:
- cython
- distributed==2021.1.0
- dask==2021.1.0
- python-graphviz
- pytest
- decorator
- docutils
- graphviz
- ipywidgets<8.0.0
# mdanalysis dependencies
- openmm>=7.0.0
- parmed
- scikit-learn>=1.1.2
- pyedr>=0.7
# building documentation
- docutils<0.18
- pandoc
- pybtex
- sphinx
- sphinxcontrib-bibtex
- tabulate
# extensions
- ipython
- ipygany
- jedi
- jinja2
- ipywidgets<8.0.0
- jupyter_contrib_nbextensions
- matplotlib
- nbclient
- nbconvert
- nbconvert # not called by any notebook explicitly but to download notebooks, or in nbsphinx
- nbformat
- nbsphinx
- networkx
- nglview
- notebook
- numpy
- packaging
- parmed
- parso
- pip
- notebook<7
# used for visualising/plotting
- graphviz
- ipygany
- plotly
- pybtex
- python=3.9
- python-graphviz
- pyvista
- scikit-image
- scikit-learn>=1.1.2
- sphinx
- sphinxcontrib-bibtex
- threadpoolctl
- tabulate
- widgetsnbextension
- ipycytoscape>=1.3.0
- seaborn>=0.12.1
- openmm>=7.0.0
- pandoc
# parallelization
- distributed==2021.1.0
- dask==2021.1.0
# used for visualising/making movies of molecules;
- nglview
- moviepy
- ipyvtklink
# used for notebook testing
- pytest
- python=3.9
- pip
- pip:
- sphinx_rtd_theme
# docs themes
- msmb_theme
- sphinx_rtd_theme
# extensions
- sphinx-sitemap
# used for notebook testing
- nbval
# developer tooling
- pre-commit
- pyedr>=0.7
# mdanalysis and its tests and test data
- git+https://github.com/MDAnalysis/mdanalysis@develop#egg=mdanalysis&subdirectory=package
- git+https://github.com/MDAnalysis/mdanalysis@develop#egg=MDAnalysisTests&subdirectory=testsuite
- git+https://github.com/MDAnalysis/MDAnalysisData@master#egg=MDAnalysisData
Expand Down

0 comments on commit 119e680

Please sign in to comment.