Page MenuHomeSoftware Heritage

setup: prepare for pypi upload
ClosedPublic

Authored by douardda on Oct 5 2018, 11:27 AM.

Details

Summary

also:

  • docs: rename README.db_testing as README.md and add doc about testing with pifpaf
  • add build/ to gitignore

related to T1242

Test Plan

Diff Detail

Repository
rDARC Software Heritage Archiver
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.Oct 5 2018, 11:27 AM
ardumont added inline comments.Oct 5 2018, 11:34 AM
README.md
12

This module's tests need a postgres db to run. It's recommended to run those but they can be skipped:

18

with*

vlorentz added a subscriber: vlorentz.EditedOct 10 2018, 3:26 PM

Running the suggested test command hangs after this:

$ pifpaf run postgresql make test-db
python3 -m nose -sv --with-doctest -a 'db'
/home/dev/.local/lib/python3.5/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
  """)
A content missing with enough copies shouldn't be archived. ... ok
Run archiver on a missing content should archive it. ... 

(I tried with an empty ~/.config.)

douardda updated this revision to Diff 1586.Oct 10 2018, 5:04 PM
douardda marked 2 inline comments as done.

rebased and apply comments (rephrase and typo)

ardumont accepted this revision.Oct 10 2018, 5:27 PM
This revision is now accepted and ready to land.Oct 10 2018, 5:27 PM
This revision was automatically updated to reflect the committed changes.