Commit graph

6876 commits

Author SHA1 Message Date
Chris Mayo
16fa5beda8 Install create.sql to examples
Creates database table for SQL logger output.

Fixes Ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/linkchecker/+bug/323123
2022-09-13 19:32:06 +01:00
Chris Mayo
38dea6b7f4 Fix install with pip git+https
pip only uses the wheel target.

Save building the metadata twice as a result in GitHub workflows and
update documentation.md.
2022-09-13 19:32:06 +01:00
Chris Mayo
b6a7f2d313 Don't need hatch to build documentation
This is a partial revert of:
47d1015e ("Replace setuptools and setup.py with hatch and pyproject.toml", 2022-09-05)

Also hatch is an option to run tests.
2022-09-13 19:32:06 +01:00
Chris Mayo
af265f3d52 Write all metadata used to _release.py
Enables running without installing.
Removes use of importlib.metadata.
2022-09-13 19:32:06 +01:00
Chris Mayo
30e8cfad77
Merge pull request #651 from cjmayo/rate
Rename url-rate-limited to http-rate-limited
2022-09-12 19:25:52 +01:00
Chris Mayo
84443b14cf
Merge pull request #647 from cjmayo/devdocs
Bring Developer Documentation and Tools up to date
2022-09-12 19:25:10 +01:00
Chris Mayo
fd6f4a0160
Merge pull request #657 from pacenathan/MacTimingTest
Make timing test more tolerant
2022-09-10 17:24:56 +01:00
Chris Mayo
d60b52658c
Merge pull request #654 from stefanfisk/issue/631-minimal
Fix srcset parsing
2022-09-10 17:13:03 +01:00
Nathan Arthur
47a83cbb27 Make timing test more tolerant
On my M1 Mac, this was taking 1.01 seconds rather than the expected 1.00
seconds. This is OK, because sleep() is not guaranteed to be precise.
2022-09-08 09:15:29 -04:00
Stefan Fisk
d2b9723612 Fix srcset parsing
Resolves #631
2022-09-07 21:24:23 +02:00
Chris Mayo
de40321b57
Merge pull request #652 from cjmayo/issue_xdg
Update path to linkcheckerrc in ISSUE_TEMPLATE.md
2022-09-06 19:42:42 +01:00
Chris Mayo
1b9b276d3a Update path to linkcheckerrc in ISSUE_TEMPLATE.md
Changed in:
a03e2e4a ("use xdg dirs for config & data", 2017-10-17)
2022-09-06 19:34:53 +01:00
Chris Mayo
a0b28cc0ff Rename url-rate-limited to http-rate-limited
Make consistent with the other warnings:

- The first part of the name represents the checker class in which the
  warning is raised

- Update initial comment
2022-09-06 19:32:24 +01:00
Chris Mayo
579c767d28 .gitignore cannot be excluded from sdist 2022-09-06 19:23:52 +01:00
Chris Mayo
595ce32e55
Merge pull request #646 from cjmayo/unidir
Fix checking directory containing Unicode filenames
2022-09-06 19:23:07 +01:00
Chris Mayo
fdc4a2eeca Bring development.md up to date 2022-09-05 19:30:38 +01:00
Chris Mayo
ed1e3b874f Update Makefile 2022-09-05 19:30:38 +01:00
Chris Mayo
728d826eb3 Fix typo makefiles in doc/Makefile 2022-09-05 19:30:38 +01:00
Chris Mayo
833802657f Add .coverage and .pytest_cache to .gitignore 2022-09-05 19:30:38 +01:00
Chris Mayo
931f86848e Remove obsolete doc/dot-travis-osx.yml 2022-09-05 19:30:38 +01:00
Chris Mayo
f55919b667 Remove defunct entries from .gitattributes 2022-09-05 19:30:38 +01:00
Chris Mayo
6a02c5605e Remove unused dev-requirements.txt 2022-09-05 19:30:38 +01:00
Chris Mayo
0a809af162 Remove old windows build scripts 2022-09-05 19:30:38 +01:00
Chris Mayo
3c7fb5b571 Fix checking directory containing Unicode filenames
Non-Unicode filenames are not supported.

sys.platform has not returned "linux2" since Python 3.3.
2022-09-05 19:28:40 +01:00
Chris Mayo
1abd9ea10e Skip tests in TestFile rather than silently returning 2022-09-05 19:28:40 +01:00
Chris Mayo
c627b00755
Merge pull request #639 from cjmayo/hatch
Replace setuptools and setup.py with hatch and pyproject.toml
2022-09-05 19:27:48 +01:00
Chris Mayo
d5058ecd7c
Merge pull request #643 from cjmayo/altname
Replace deprecated urllib3.contrib.pyopenssl.get_subj_alt_name()
2022-09-05 19:26:12 +01:00
Chris Mayo
e91f9b4100 Add hatch test environment 2022-09-05 19:24:01 +01:00
Chris Mayo
84c241ef95 Rename setup.cfg to .flake8 2022-09-05 19:24:01 +01:00
Chris Mayo
a214531030 Remove check-python-versions that needs setup.py 2022-09-05 19:24:01 +01:00
Chris Mayo
1975613b44 Remove MANIFEST.in
All files stored in Git are included in the sdist, unless excluded with
tool.hatch.build.exclude.

Build artifacts listed in tool.hatch.build.artifacts are also included.
2022-09-05 19:24:01 +01:00
Chris Mayo
47d1015e00 Replace setuptools and setup.py with hatch and pyproject.toml 2022-09-05 19:24:01 +01:00
Chris Mayo
39b065bc36
Merge pull request #638 from cjmayo/urllist
Document URL list in linkchecker(1)
2022-09-05 19:21:39 +01:00
Chris Mayo
f0cb2e9df9 Use cryptography.x509.not_valid_after 2022-09-05 19:20:19 +01:00
Chris Mayo
76e2712311 Replace deprecated urllib3.contrib.pyopenssl.get_subj_alt_name()
Strictly we should add a dependency on cryptography as we are now using
it directly - but for pyopenssl x509.to_cryptography() to work
cryptography would have to be already installed.
2022-09-05 19:20:19 +01:00
Chris Mayo
c79bc07cee Add MIME type application/vnd.adobe.flash.movie 2022-09-02 19:29:11 +01:00
Chris Mayo
6d9061b00a Ignore bs4 markup and XML parser warnings
XMLParsedAsHTMLWarning: It looks like you're parsing an XML document
using an HTML parser.

MarkupResemblesLocatorWarning: The input looks more like a filename than
markup.

MarkupResemblesLocatorWarning: The input looks more like a URL than
markup.
2022-09-02 19:29:11 +01:00
Chris Mayo
d6936ceb91 Add warning url-content-type-unparseable 2022-09-02 19:29:11 +01:00
Chris Mayo
fb8df6f089 Document URL list in linkchecker(1)
First enabled in:
b1708fc7 ("get the complete content", 2004-09-03)
2022-09-02 19:29:11 +01:00
Chris Mayo
86243c00a1
Merge pull request #642 from cjmayo/addition
Fix typo addtion in linkcheckerrc(5)
2022-09-02 19:23:25 +01:00
Chris Mayo
f018cc9fd1 Fix typo addtion in linkcheckerrc(5) 2022-09-02 19:17:45 +01:00
Chris Mayo
6958e2e237
Merge pull request #640 from kianmeng/fix-typos
Fix typos
2022-09-02 19:17:18 +01:00
Kian-Meng Ang
a70ea9ea14 Fix typos
Found via `codespell ./linkcheck/ ./tests ./doc/man/en -L bu,noone,fo,pres,shttp`
2022-09-02 17:20:02 +08:00
Chris Mayo
75196921e4
Merge pull request #635 from cjmayo/relpages
Publish the documentation when there is a release
2022-08-30 19:28:25 +01:00
Chris Mayo
b35036af2b
Merge pull request #634 from cjmayo/pyxdg
Remove dependency on pyxdg
2022-08-30 19:28:03 +01:00
Chris Mayo
72310d4e0d
Merge pull request #633 from cjmayo/ldap
Re-enable ldap: test
2022-08-30 19:27:32 +01:00
Chris Mayo
d72649453c
Merge pull request #632 from cjmayo/docs
Assorted documentation updates
2022-08-30 19:27:10 +01:00
Chris Mayo
ffe1be37b8
Merge pull request #637 from felixonmars/patch-1
Correct a typo in i18n.py
2022-08-24 19:28:56 +01:00
Felix Yan
7db1a867ab
Correct a typo in i18n.py 2022-08-24 19:10:41 +03:00
Chris Mayo
a520b26885 Publish the documentation when there is a release 2022-08-23 19:27:12 +01:00