Commit graph

5850 commits

Author SHA1 Message Date
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
Antoine Beaupré
8ed6c0cc26 remove duplicate sentence 2017-02-10 09:00:01 -05:00
Antoine Beaupré
92cbe36742 clarify that all supported platforms should test 2017-02-10 08:59:30 -05:00
Antoine Beaupré
c8dab7d08c rephrase and expand timeframe 2017-02-10 08:58:46 -05:00
Antoine Beaupré
7162371140 clarify that labeling is privileged 2017-02-10 08:57:22 -05:00
Antoine Beaupré
fad1b72c31 clarify who regular users are 2017-02-10 08:56:16 -05:00
Antoine Beaupré
a9cb943c38 also build sdist files 2017-02-10 08:52:54 -05:00
Antoine Beaupré
c84621eb79 move code of conduct to a separate document, add other guidelines 2017-02-10 08:51:26 -05:00
Antoine Beaupré
a2fce98262 adapt the code of conduct to our community, add myself as contact 2017-02-09 18:27:22 -05:00
Antoine Beaupré
9d2cec525f import Covenant's Code of Conduct 1.4 2017-02-09 17:52:44 -05:00
Antoine Beaupré
bcacd8bd21 fix file extension for development file, it's markdown 2017-02-09 17:50:16 -05:00
Graham Seaman
45bca29a1e Merge pull request #23 from seamang/wayback_urls 2017-02-09 14:17:43 +00:00
Graham Seaman
233e7dcf68 Allow wayback-format urls without affecting atom 'feed' urls 2017-02-09 11:43:45 +00:00
Marius Gedminas
19a5f19282 Merge pull request #29 from linkcheck/dev-requirements
Move dev requirements into dev-requirements.txt
2017-02-08 14:41:56 +02:00
Marius Gedminas
83c584958e Move dev requirements into dev-requirements.txt 2017-02-07 16:07:38 +02:00
anarcat
9f3cc4f369 Merge pull request #19 from mgedmin/crawl-deterministically
Crawl HTML attributes in deterministic order
2017-02-01 12:34:24 -05:00
Marius Gedminas
743a5f31cb Crawl HTML attributes in deterministic order
Fixes #17.
2017-02-01 19:19:53 +02:00
anarcat
5a346bae66 Merge pull request #9 from mgedmin/add-tox
Add a tox.ini
2017-02-01 12:02:34 -05:00
Marius Gedminas
a825b9d901 Mark the non-deterministic test as xfail 2017-02-01 18:57:40 +02:00
anarcat
a4ce062b2c Merge pull request #15 from seamang/case-insensitive-headers
Force header names to lower to allow for CaseInsensitiveDict variability
2017-02-01 11:51:26 -05:00
Marius Gedminas
02869ea076 Mark TestFile.test_directory_listing as known to fail
The test unzipps a zip file with a weird-looking non-ASCII filename in it.
I don't think zip files specify the encoding for filenames.  Different
unzip utilities may interpret the filename differently.  Plus, the byte
representation of the unzipped filename may be different depending on
the filesystem charset.

To me it looks as if the filename is garbage encoded as valid UTF-8, and
the test expectation is to get it in latin-1 or something.
2017-02-01 18:45:05 +02:00
Marius Gedminas
cffea5fcbd Mark TestHttps.test_https as known to fail
This test depends on the way http://amazon.com/ works.  I don't think
that's a good idea.
2017-02-01 18:44:21 +02:00
Marius Gedminas
f4ec7531c1 Fix TestHttp.test_html
The HTML tag has two attributes with URLs:

  <applet archive="file.html" src="file.css">

It would appear that the order in which these attributes are crawled
does not match the order in the result file.

Possibly the crawling order is non-deterministic, although I cannot
reproduce that.  If that's the case, the fix would be to sort the
attributes in the crawler before following them, which means we want the
expected results sorted as well (and since 'archive' comes before 'src',
so file.html should come before file.css).
2017-02-01 18:41:47 +02:00
Graham Seaman
2e32780dc7 Force header names to lower to allow for CaseInsensitvieDict variability 2017-02-01 16:28:07 +00:00
Marius Gedminas
ee3b590035 Tell tox to use develop mode
We must do this, because py.test adjusts sys.path to make
'tests.test_foo' importable [*].  When py.test does this, the
'linkcheck' directory at the top of the git tree is the one that gets
imported in the tests.  If we've told pip to use develop mode, all's
fine.  If we haven't, then we're going to get errors because extension
modules like _network.so get installed into
.tox/*/lib/*/site-packages/linkcheck/network and not into
./linkcheck/network/

[*] http://doc.pytest.org/en/latest/goodpractices.html#choosing-a-test-layout-import-rules
2017-02-01 18:24:21 +02:00