-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build the docs as a part of the test suite
The docs can be built standalone using: ``` tox -e docs ``` This also eliminates two scripts and the Makefile in the `docs/` directory. The docs can now be uploaded using: ``` make sync-docs ```
- Loading branch information
1 parent
44de165
commit 8ab65fc
Showing
10 changed files
with
62 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,6 @@ pypi: clean | |
# files generated by swig | ||
rm -f src/smartcard/scard/scard.py | ||
rm -f src/smartcard/scard/scard_wrap.c | ||
# files generated by sphinx | ||
rm -rf src/smartcard/doc/_build | ||
# files generated by pydoctor | ||
rm -rf src/smartcard/doc/html | ||
rm -rf dist | ||
# Use the tox 'build' label to generate wheels for all Python versions. | ||
$(TOX) run -m build | ||
|
@@ -34,4 +30,11 @@ coverage: | |
ChangeLog.git: | ||
git log --stat --decorate=short > $@ | ||
|
||
.PHONY: sync-docs | ||
sync-docs: | ||
rsync \ | ||
--recursive --verbose --update --rsh=ssh --links \ | ||
build/docs/ \ | ||
[email protected]:/home/project-web/pyscard/htdocs/ | ||
|
||
.PHONY: clean build pypi test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
[build-system] | ||
requires = ["setuptools","swig"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
|
||
# pydoctor | ||
# -------- | ||
|
||
[tool.pydoctor] | ||
add-package = ["src/smartcard"] | ||
project-name = "PySCard" | ||
project-url = "https://github.com/LudovicRousseau/pyscard" | ||
html-output = "build/docs/apidocs" | ||
warnings-as-errors = true |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.