Skip to content

Commit 653ab51

Browse files
Merge pull request #17 from analog-garage/upload-source-dist
conda-forge release
2 parents 0fb99b5 + bb3d548 commit 653ab51

File tree

6 files changed

+38
-26
lines changed

6 files changed

+38
-26
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# mkdocstring-python-xref changes
22

3+
## 1.6.1
4+
5+
* Available on conda-forge
6+
37
## 1.6.0
48

59
* Added explicit option to disable cross-reference checking.

Makefile

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ PACKAGE := mkdocstrings-python-xref
2727
PACKAGE_VERSION_PATH := src/mkdocstrings_handlers/python_xref/VERSION
2828
VERSION := $(strip $(file < $(PACKAGE_VERSION_PATH)))
2929

30-
SRC_FILES := $(wildcard src/mkdocstrings_handlers/garpy_python/*.py) $(PYTHON_VERSION_PATH)
30+
SRC_FILES := $(wildcard src/mkdocstrings_handlers/python_xref/*.py) $(PYTHON_VERSION_PATH)
3131

3232
# Env names
3333
DEV_ENV := mkxref-dev
@@ -145,17 +145,20 @@ lint: pylint mypy
145145
WHEEL_FILE := dist/$(subst -,_,$(PACKAGE))-$(VERSION)-py3-none-any.whl
146146
CONDA_FILE := dist/$(PACKAGE)-$(VERSION)-py_0.conda
147147

148+
build-sdist:
149+
$(CONDA_RUN) python -m build --sdist --no-isolation --outdir dist
150+
148151
$(WHEEL_FILE):
149152
$(CONDA_RUN) pip wheel . --no-deps --no-build-isolation -w dist
150153

151154
build-wheel: $(WHEEL_FILE)
152155

153156
$(CONDA_FILE): $(WHEEL_FILE)
154-
$(CONDA_RUN) whl2conda build $(WHEEL_FILE)
157+
$(CONDA_RUN) whl2conda convert $(WHEEL_FILE)
155158

156159
build-conda: $(CONDA_FILE)
157160

158-
build: build-wheel
161+
build: build-wheel build-sdist build-conda
159162

160163
site/index.html: $(MKDOC_FILES) $(SRC_FILES)
161164
$(CONDA_RUN) mkdocs build -f $(MKDOC_CONFIG)
@@ -193,16 +196,24 @@ doc-serve-all:
193196

194197
mike-serve: doc-serve-all
195198

196-
check-upload:
197-
$(CONDA_RUN) twine check $(WHEEL_FILE)
199+
check-upload-wheel:
200+
$(CONDA_RUN) twine check dist/*.whl
201+
202+
check-upload-sdist:
203+
$(CONDA_RUN) twine check dist/*.tar.gz
204+
205+
check-upload: check-upload-sdist check-upload-wheel
206+
207+
upload-wheel: check-upload-wheel
208+
# NOTE: --skip-existing doesn't seem to actually work
209+
$(CONDA_RUN) twine upload --skip-existing $(lastword $(sort $(wildcard dist/*.whl)))
210+
198211

199-
upload: check-upload
212+
upload-sdist: check-upload-sdist
200213
# NOTE: --skip-existing doesn't seem to actually work
201-
$(CONDA_RUN) twine upload --skip-existing $(WHEEL_FILE)
214+
$(CONDA_RUN) twine upload --skip-existing $(lastword $(sort $(wildcard dist/*.tar.gz)))
202215

203-
anaconda-upload: $(CONDA_FILE)
204-
# you will need to log in first
205-
anaconda upload --user garpy $(CONDA_FILE)
216+
upload: upload-sdist upload-wheel
206217

207218
clean-build:
208219
-@$(RMDIR) build

docs/install.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,5 @@ pip install mkdocstrings-python-xref
66
### Using conda
77

88
```
9-
conda install -c garpy mkdocstrings-python-xref
9+
conda install -c conda-forge mkdocstrings-python-xref
1010
```
11-
12-
13-

environment.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ channels:
55
dependencies:
66
# runtime
77
- python >=3.8,<3.13
8-
- mkdocstrings-python >=1.5.2,<2.0
8+
- mkdocstrings-python >=1.6.2,<1.10 # TODO: issue #18
99
# build
10-
- hatchling >=1.18
10+
- build >=0.7.0
11+
- hatchling >=1.21
1112
# test
12-
- coverage >=7.3.0
13+
- coverage >=7.4.0
1314
- pytest >=7.4.0
1415
- pytest-cov >=4.1.0
15-
- pylint >=2.17.5
16-
- mypy >=1.5.1
17-
- mkdocs-material >=8.2
16+
- pylint >=3.0.3
17+
- mypy >=1.8
1818
- beautifulsoup4 >=4.12
1919
# documentation
20-
- black >=23.7
20+
- black >=23.12
2121
- mike >=1.1,<2.0
22-
- mkdocs >=1.5.0,<2.0
23-
- mkdocs-material >=9.1
24-
- linkchecker >=10.2.1
22+
- mkdocs >=1.5.3,<2.0
23+
- mkdocs-material >=9.5.4
24+
- linkchecker >=10.4

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ keywords = [
2525
dynamic = ["version"]
2626
requires-python = ">=3.8"
2727
dependencies = [
28-
"mkdocstrings-python >=1.6.2,<2.0"
28+
"mkdocstrings-python >=1.6.2,<1.10" # TODO: issue #18
2929
]
3030

3131
[project.urls]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.0
1+
1.6.1

0 commit comments

Comments
 (0)