diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -51,9 +51,7 @@ 4. Bootstrap the db instance schema $ createdb lister-github - $ python3 -m swh.lister.cli --db-url postgres:///lister-github \ - --lister github \ - --create-tables + $ python3 -m swh.lister.cli --db-url postgres:///lister-github github ### Configuration file sample @@ -91,9 +89,7 @@ 4. Bootstrap the db instance schema $ createdb lister-gitlab - $ python3 -m swh.lister.cli --db-url postgres:///lister-gitlab \ - --lister gitlab \ - --create-tables + $ python3 -m swh.lister.cli --db-url postgres:///lister-gitlab gitlab ### Configuration file sample @@ -130,10 +126,8 @@ 4. Bootstrap the db instance schema $ createdb lister-debian - $ python3 -m swh.lister.cli --db-url postgres:///lister-debian \ - --lister debian \ - --create-tables \ - --with-data + $ python3 -m swh.lister.cli --db-url postgres:///lister-debian debian + Note: This bootstraps a minimum data set needed for the debian lister to run (for development) @@ -173,10 +167,7 @@ 4. Bootstrap the db instance schema $ createdb lister-pypi - $ python3 -m swh.lister.cli --db-url postgres:///lister-pypi \ - --lister pypi \ - --create-tables \ - --with-data + $ python3 -m swh.lister.cli --db-url postgres:///lister-pypi pypi Note: This bootstraps a minimum data set needed for the pypi lister to run (for development) diff --git a/swh/lister/.vscode/launch.json b/swh/lister/.vscode/launch.json new file mode 100644 --- /dev/null +++ b/swh/lister/.vscode/launch.json @@ -0,0 +1,70 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Current File (Integrated Terminal)", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal" + }, + { + "name": "Python: Remote Attach", + "type": "python", + "request": "attach", + "port": 5678, + "host": "localhost", + "pathMappings": [ + { + "localRoot": "${workspaceFolder}", + "remoteRoot": "." + } + ] + }, + { + "name": "Python: Module", + "type": "python", + "request": "launch", + "module": "enter-your-module-name-here", + "console": "integratedTerminal" + }, + { + "name": "Python: Django", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/manage.py", + "console": "integratedTerminal", + "args": [ + "runserver", + "--noreload", + "--nothreading" + ], + "django": true + }, + { + "name": "Python: Flask", + "type": "python", + "request": "launch", + "module": "flask", + "env": { + "FLASK_APP": "app.py" + }, + "args": [ + "run", + "--no-debugger", + "--no-reload" + ], + "jinja": true + }, + { + "name": "Python: Current File (External Terminal)", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "externalTerminal" + } + ] +} \ No newline at end of file diff --git a/swh/lister/.vscode/settings.json b/swh/lister/.vscode/settings.json new file mode 100644 --- /dev/null +++ b/swh/lister/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "editor.fontSize": 18, + "python.venvPath": "~/.virtualenvs/swh/bin/python", + "python.unitTest.unittestEnabled": true, + "python.pythonPath": "~/.virtualenvs/swh/bin/python", + "python.linting.pylintEnabled": false, + "python.linting.flake8Enabled": true, + "python.linting.enabled": true +} \ No newline at end of file