Commit graph

5874 commits

Author SHA1 Message Date
Reinhold Füreder
e864bbdabf
Use os.makedirs(...) instead of os.mkdir(...) 2018-01-03 11:33:53 +01:00
Mark Goodhand
87f713ea01 Update README.rst (#109)
* Update README.rst

Discourage use of PyPI until it's been updated to use the new version (#108).
2017-11-10 08:26:13 -05:00
anarcat
4f35861d72
Merge pull request #103 from linkcheck/fix-mo-file-installation
Install .mo files correctly
2017-11-10 08:25:43 -05:00
Marius Gedminas
6cbd0c3782 Install .mo files correctly
Fixes #102.
2017-11-10 15:09:02 +02:00
Philipp Hahn
1368643a50 Fix fragment identifier quoting
According to <https://tools.ietf.org/html/rfc3986>:
 fragment    = *( pchar / "/" / "?" )
 pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"
 unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"
 pct-encoded = "%" HEXDIG HEXDIG
 sub-delims  = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="

Fixes #96
2017-11-10 08:03:03 -05:00
anarcat
9838ef78e9
Merge pull request #104 from anarcat/incorrect-warn
fix incorrect call to the logging module (Closes: #847208)
2017-11-06 21:46:11 -05:00
Antoine Beaupré
71be9b941b
fix incorrect call to the logging module (Closes: #847208) 2017-11-03 09:47:01 -04:00
Marius Gedminas
17bd5f5e89 Revert "Install .mo files correctly"
This reverts commit d94bd0ee06.

Reason for reverting: it was committed to master by accident, without
proper code review.
2017-11-02 19:00:00 +02:00
Marius Gedminas
d94bd0ee06 Install .mo files correctly
Fixes #102.
2017-11-02 11:42:12 +02:00
anarcat
6919dc8c4c
Merge pull request #90 from konstin/document-python3
Document missing python 3 compatibility; Fixes #88
2017-10-29 09:50:16 -04:00
konstin
f8967d236f Document missing python 3 compatibility; Fixes #88 2017-10-24 21:20:29 +02:00
anarcat
4e3909dbae Merge pull request #87 from legrostdg/xdg
use xdg dirs for config & data
2017-10-22 11:07:48 -04:00
Félix Sipma
e94fd3b4d8 mention #44 in changelog entry 2017-10-18 16:10:05 +02:00
Félix Sipma
7344a3c40b update changelog 2017-10-18 16:02:56 +02:00
Félix Sipma
c8d9038ae8 improve get_plugin_folders() docstring 2017-10-18 15:58:18 +02:00
Félix Sipma
deca8c667e introduce linkcheck.configuration.get_user_data() 2017-10-18 15:55:55 +02:00
Félix Sipma
0a6661d171 use pyxdg instead of xdg 2017-10-18 12:11:01 +02:00
Félix Sipma
a03e2e4ada use xdg dirs for config & data
~/.linkchecker is used instead of the xdg equivalents if the directory
exists (backward compatibility).
2017-10-17 18:48:07 +02:00
anarcat
231dece9c4 Merge pull request #86 from anarcat/requests-socks
workaround new limitation in requests
2017-10-11 17:23:29 -04:00
Antoine Beaupré
9b12b5d66f
workaround new limitation in requests
newer requests do not expose the internal SSL socket object so we
cannot verify certificates. there was work to allow custom
verification routines which we could use, but this never finished:

https://github.com/shazow/urllib3/pull/257

so right now, just treat missing socket information as if the cert was
missing.

Closes: #76
2017-10-02 20:19:25 -04:00
anarcat
9af06b968b Merge pull request #84 from reinholdfuereder/master
Avoid info log 'Checking intern URLs only…' when calling 'linkchecker --version'
2017-09-11 10:55:49 -04:00
Reinhold Füreder
00456e2095 Merge pull request #1 from reinholdfuereder/reinholdfuereder-version-output-patch
Avoid info log 'Checking intern URLs only…' when when calling 'linkchecker --version'
2017-09-11 15:08:03 +02:00
Reinhold Füreder
a83754a6c8 Avoid info log 'Checking intern URLs only; use --check-extern to check extern URLs.' when solely calling 'linkchecker --version'
Currently:
$ linkchecker --version
INFO linkcheck.cmdline 2017-09-11 12:46:55,167 MainThread Checking intern URLs only; use --check-extern to check extern URLs.
LinkChecker 9.4 released xx.xx.xxxx
Copyright (C) 2000-2014 Bastian Kleineidam
2017-09-11 15:04:15 +02:00
anarcat
2c0d0ce2d5 Merge pull request #82 from linkcheck/anarcat-patch-1
fix typo
2017-08-29 12:47:30 -04:00
anarcat
dde8d798b5 fix typo
see #77
2017-08-29 08:27:17 -04:00
Graham Seaman
195c6b53f7 Merge pull request #77 from harry-wood/patch-1
Remove reference to non existent .dmg file
2017-08-08 16:15:04 +01:00
Harry Wood
36ba1855d2 Remove reference to non existent .dmg file
Pending a resolution to https://github.com/linkcheck/linkchecker/issues/60 

(re-rolling this PR here https://github.com/wummel/linkchecker/pull/640 )
2017-08-01 22:23:18 +01:00
anarcat
8dc2963264 Merge pull request #75 from JAremko/master
Constrain requests dependency while we fix later requests support, see #74.
2017-06-27 08:20:12 -04:00
Eugene Yaremenko
9320d595f2 Temporary fix
Linkchecker doesn't work with the latest requests
2017-06-24 22:09:49 +03:00
Marius Gedminas
4a092c218c Whitespace bigotry 2017-03-14 17:18:27 +02:00
anarcat
5471b63ceb Merge pull request #39 from PetrDlouhy/fix/cache
Fix cache: Don't check one url multiple times
2017-03-14 09:26:07 -04:00
Marius Gedminas
bc06234cb3 Merge pull request #42 from linkcheck/fix-type-mismatch
Fix incompatible pointer type warnings
2017-02-24 23:54:10 +02:00
Marius Gedminas
fb1debaa68 Fix incompatible pointer type warnings
The warnings looked like this:

    htmlparse.c: In function ‘yyparse’:
    htmlparse.c:1810:18: warning: passing argument 1 of ‘yyerror’ from incompatible pointer type [-Wincompatible-pointer-types]
    htmlparse.y:40:13: note: expected ‘PyObject ** {aka struct _object **}’ but argument is of type ‘PyObject * {aka struct _object *}’
    htmlparse.c:1927:12: warning: passing argument 1 of ‘yyerror’ from incompatible pointer type [-Wincompatible-pointer-types]
    htmlparse.y:40:13: note: expected ‘PyObject ** {aka struct _object **}’ but argument is of type ‘PyObject * {aka struct _object *}’

The argument is not used, so it doesn't really matter what pointer type
it is.
2017-02-24 15:04:09 +02:00
Marius Gedminas
d8efc82519 Merge pull request #36 from linkcheck/fix-pymem-resize-warnings
Fix "operation on ... may be undefined" [-Wsequence-point] warnings
2017-02-24 14:55:04 +02:00
anarcat
a48d37f1b6 Merge pull request #41 from PetrDlouhy/feature/coveralls
report coverate to Coveralls
2017-02-14 10:16:08 -05:00
Petr Dlouhý
f5100138ff fix tests that fail because of changed linkchecker output 2017-02-14 10:59:38 +01:00
Petr Dlouhý
3b8fe41206 add tests for urlqueue 2017-02-14 10:23:32 +01:00
Petr Dlouhý
eaa538c814 don't check one url multiple times 2017-02-14 10:23:25 +01:00
Petr Dlouhý
271c592756 report coverate to Coveralls 2017-02-14 09:47:31 +01:00
Marius Gedminas
03dfe3d3a1 Fix "operation on ... may be undefined" [-Wsequence-point] warnings
Fixes a bunch of warnings like

  htmlparse.y:509:25: warning: operation on ‘self->userData->buf’ may be undefined [-Wsequence-point]
  htmlparse.y:518:29: warning: operation on ‘self->userData->tmp_buf’ may be undefined [-Wsequence-point]

which were a result of (macro-expanded) code like this (simplified):

  if ((tmp = (tmp = PyMem_Realloc(...))) == NULL) return NULL;

The PyMem_Resize(p, ...) macro assigns the new value to p before
returning it, so there's no need to assign it again.

See http://bugs.python.org/issue1668036 for evidence (from 2007) that
this is indeed a documented side-effect of the macro API.
2017-02-13 15:20:33 +02:00
anarcat
bf66006375 Merge pull request #32 from linkcheck/coc-refactor
add code of conduct and community guidelines
2017-02-10 12:05:47 -05:00
Antoine Beaupré
f56f6a3071 fix typo 2017-02-10 12:04:32 -05:00
Antoine Beaupré
ede76dcee7 fix weird line ending issue 2017-02-10 10:42:32 -05:00
Antoine Beaupré
74487aec5b use more consistently "maintainer" instead of "member"
tough call, but i think it actually matters... In the code of conduct,
a "community member" is not necessarily an official status. by
conflating the "maintainer" and "member" status, we would have
diminished the role of non-official members... People are a member of
the community when they participate, regardless of their official
status, and deserve the same respect as anyone else.

also use "administrator" instead of "owner". i do not "own" this
project, i administer it. we do not have to comply with GitHub's
proprietary vocabulary
2017-02-10 09:11:47 -05:00
Antoine Beaupré
df82d8c878 add exception that changes to the contribution document must have consensus among the owners 2017-02-10 09:04:16 -05:00
Antoine Beaupré
11025103b6 explicitely state that all PRs must be reviewed before merge 2017-02-10 09:04:00 -05:00
Antoine Beaupré
d097567a50 allow urgent self-merges 2017-02-10 09:02:42 -05:00
Antoine Beaupré
7731f098ee remove double-negative 2017-02-10 09:01:53 -05:00
Antoine Beaupré
f07b581517 remove another duplicate sentence 2017-02-10 09:01:26 -05:00
Antoine Beaupré
b20b2949b0 s/Github/GitHub/ 2017-02-10 09:00:22 -05:00