diff --git a/.cruft.json b/.cruft.json index cc5469f..d93c4a9 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "https://github.com/sunpy/package-template", - "commit": "2fbaccff08fdfbb1bc1eec2bc7b980fe44a718e6", + "commit": "67ea3b3815de57668e92dbe1fa2c3d033758d8f0", "checkout": null, "context": { "cookiecutter": { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 611aabf..ee5b401 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,25 +58,21 @@ jobs: envs: | - linux: build_docs - publish_pure: - # Build wheels when pushing to any branch except main - # Will only publish if tagged ^v.* - if: | - ( - github.event_name != 'pull_request' && ( - github.ref_name != 'main' || - github.event_name == 'workflow_dispatch' - ) - ) || ( - github.event_name == 'pull_request' && - contains(github.event.pull_request.labels.*.name, 'Run publish') - ) - needs: [core, sdist_verify, docs] - uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@main - with: - python-version: '3.12' - test_extras: 'tests' - test_command: 'pytest -p no:warnings --doctest-rst --pyargs mpl_animators' - submodules: false - secrets: - pypi_token: ${{ secrets.pypi_token }} + publish: + needs: [sdist_verify, docs] + # Build wheels on PRs only when labelled. Releases will only be published if tagged ^v.* + # see https://github-actions-workflows.openastronomy.org/en/latest/publish.html#upload-to-pypi + if: | + github.event_name != 'pull_request' || + ( + github.event_name == 'pull_request' && + contains(github.event.pull_request.labels.*.name, 'Run publish') + ) + uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@main + with: + python-version: '3.12' + test_extras: 'tests' + test_command: 'pytest -p no:warnings --doctest-rst --pyargs mpl_animators' + submodules: false + secrets: + pypi_token: ${{ secrets.pypi_token }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 81b88e5..ec6f76c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ exclude: ".*(.csv|.fits|.fts|.fit|.header|.txt|tca.*|.json|.asdf)$|^CITATION.rst repos: # This should be before any formatting hooks like isort - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.5.4" + rev: "v0.6.3" hooks: - id: ruff args: ["--fix"] diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 29402b2..4ea3374 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,11 +1,9 @@ version: 2 build: - apt_packages: - - graphviz - os: ubuntu-22.04 + os: ubuntu-lts-latest tools: - python: "mambaforge-4.10" + python: "mambaforge-latest" jobs: post_checkout: - git fetch --unshallow || true diff --git a/pyproject.toml b/pyproject.toml index 24cb993..83de651 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,7 @@ zip-safe = false include-package-data = true [tool.setuptools.packages.find] +include = ["mpl_animators*"] exclude = ["mpl_animators._dev*"] [tool.setuptools_scm]