Skip to content

Commit c6bca84

Browse files
authored
Release branch instead of main for 0.11 (#282)
1 parent 6675e93 commit c6bca84

File tree

6 files changed

+62
-43
lines changed

6 files changed

+62
-43
lines changed

.circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ version: 2
22
jobs:
33
twine-check:
44
docker:
5-
- image: circleci/python:3.8
5+
- image: cimg/python:3.12
66
steps:
77
- checkout
8-
- run: python setup.py sdist
9-
- run: python -m pip install -U --user --force-reinstall twine
8+
- run: python -m pip install -U --user build
9+
- run: python -m build . --sdist
10+
- run: python -m pip install -U --user twine
1011
- run: python -m twine check dist/*
11-
1212
workflows:
1313
version: 2
1414
twine-check:

.github/workflows/ci.yml

+31-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
secrets:
4141
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4242

43-
test:
43+
tests:
4444
needs: [core]
4545
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
4646
with:
@@ -64,17 +64,45 @@ jobs:
6464
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6565

6666
docs:
67-
needs: [test]
67+
needs: [core]
6868
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
6969
with:
7070
default_python: '3.9'
7171
submodules: false
7272
pytest: false
73+
libraries: |
74+
apt:
75+
- pandoc
76+
- graphviz
7377
envs: |
7478
- linux: py312-docs
7579
80+
conda:
81+
needs: [core]
82+
runs-on: ubuntu-latest
83+
steps:
84+
- uses: actions/checkout@v4
85+
with:
86+
fetch-depth: 0
87+
lfs: true
88+
- uses: conda-incubator/setup-miniconda@v3
89+
with:
90+
activate-environment: ablog-test
91+
environment-file: ablog-conda-test-env.yml
92+
python-version: "3.12"
93+
- name: Install ablog
94+
shell: bash -el {0}
95+
run: |
96+
pip install --no-deps --no-build-isolation .
97+
- name: Run test
98+
shell: bash -el {0}
99+
run: |
100+
conda list
101+
pytest -vvv -r a --pyargs ablog
102+
make tests
103+
76104
extras:
77-
needs: [test]
105+
needs: [tests]
78106
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
79107
with:
80108
default_python: '3.9'
@@ -86,6 +114,5 @@ jobs:
86114
- graphviz
87115
envs: |
88116
- linux: py312-sphinxdev
89-
- linux: py312-conda
90117
secrets:
91118
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
hooks:
1313
- id: isort
1414
- repo: https://github.com/psf/black
15-
rev: 24.4.0
15+
rev: 24.4.2
1616
hooks:
1717
- id: black
1818
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -26,7 +26,7 @@ repos:
2626
- id: check-yaml
2727
- id: debug-statements
2828
- repo: https://github.com/astral-sh/ruff-pre-commit
29-
rev: 'v0.3.7'
29+
rev: 'v0.4.2'
3030
hooks:
3131
- id: ruff
3232
args: ['--fix']

ablog-conda-test-env.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
channels:
2+
- conda-forge
3+
4+
dependencies:
5+
- alabaster
6+
- docutils
7+
- feedgen
8+
- graphviz
9+
- invoke
10+
- make
11+
- myst-parser
12+
- nbsphinx
13+
- packaging
14+
- pandoc
15+
- pip
16+
- pytest
17+
- python-dateutil
18+
- setuptools
19+
- setuptools-scm
20+
- sphinx
21+
- sphinx-automodapi
22+
- watchdog

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ docs =
4141
sphinx-automodapi
4242
tests =
4343
pytest
44+
defusedxml>=0.8.0rc2
4445

4546
[options.entry_points]
4647
console_scripts =

tox.ini

+2-33
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ envlist =
44

55
[testenv]
66
allowlist_externals =
7-
conda
87
make
98
git
109
deps =
@@ -17,8 +16,8 @@ commands =
1716
sphinx6: pip install -U "sphinx>=6.0,<7.0"
1817
sphinx7: pip install -U "sphinx>=7.0,<8.0"
1918
sphinx8: pip install -U "sphinx>=8.0,<9.0"
20-
sphinxdev: pip install -U "git+https://repo.or.cz/docutils.git#egg=docutils&subdirectory=docutils"
21-
sphinxdev: pip install -U "git+https://github.com/sphinx-doc/sphinx"
19+
sphinxdev: pip install -U git+https://github.com/docutils/docutils.git
20+
sphinxdev: pip install -U git+https://github.com/sphinx-doc/sphinx
2221
pip freeze --all --no-input
2322
pytest -vvv -r a --pyargs ablog
2423
make tests
@@ -48,33 +47,3 @@ changedir = docs
4847
description = Invoke sphinx-build to check linkcheck works
4948
commands =
5049
sphinx-build --color -W --keep-going -b linkcheck . _build/html {posargs}
51-
52-
# Requires tox-conda
53-
[testenv:py{39,310,311}-conda]
54-
extras =
55-
deps =
56-
conda_deps =
57-
alabaster
58-
docutils
59-
feedgen
60-
graphviz
61-
invoke
62-
make
63-
myst-parser
64-
nbsphinx
65-
packaging
66-
pandoc
67-
pip
68-
pytest
69-
python-dateutil
70-
setuptools
71-
setuptools-scm
72-
sphinx
73-
sphinx-automodapi
74-
watchdog
75-
conda_channels = conda-forge
76-
install_command = pip install --no-deps --no-build-isolation {opts} {packages}
77-
commands =
78-
conda list
79-
pytest -vvv -r a --pyargs ablog
80-
make tests

0 commit comments

Comments
 (0)