فهرست منبع

rename pip dir archive to archivebox

Nick Sweeting 7 سال پیش
والد
کامیت
57d42339a4

+ 7 - 7
Dockerfile

@@ -1,5 +1,5 @@
 FROM debian:stretch
-LABEL maintainer="Nick Sweeting <bookmark-archiver@sweeting.me>"
+LABEL maintainer="Nick Sweeting <archivebox-git@sweeting.me>"
 
 RUN apt-get update \
     && apt-get install -qy git wget gnupg2 libgconf-2-4 python3 python3-pip \
@@ -21,22 +21,22 @@ RUN apt-get update && apt-get install -y curl --no-install-recommends \
 # RUN chmod +x /usr/local/bin/dumb-init
 
 RUN git clone https://github.com/pirate/ArchiveBox /home/chromeuser/app \
-    && pip3 install -r /home/chromeuser/app/archiver/requirements.txt
+    && pip3 install -r /home/chromeuser/app/archivebox/requirements.txt
 
 # Add user so we area strong, independent chrome that don't need --no-sandbox.
 RUN groupadd -r chromeuser && useradd -r -g chromeuser -G audio,video chromeuser \
-    && mkdir -p /home/chromeuser/app/archiver/output \
-    && chown -R chromeuser:chromeuser /home/chromeuser/app/archiver/output \
+    && mkdir -p /home/chromeuser/app/archivebox/output \
+    && chown -R chromeuser:chromeuser /home/chromeuser/app/archivebox/output \
     && chown -R chromeuser:chromeuser /home/chromeuser
 
-VOLUME /home/chromeuser/app/archiver/output
+VOLUME /home/chromeuser/app/archivebox/output
 
 ENV LANG=en_US.UTF-8 \
     LANGUAGE=en_US:en \
     LC_ALL=en_US.UTF-8 \
     PYTHONIOENCODING=UTF-8 \
     CHROME_SANDBOX=False \
-    OUTPUT_DIR=/home/chromeuser/app/archiver/output
+    OUTPUT_DIR=/home/chromeuser/app/archivebox/output
 
 # Run everything from here on out as non-privileged user
 USER chromeuser
@@ -45,4 +45,4 @@ WORKDIR /home/chromeuser/app
 # ENTRYPOINT ["dumb-init", "--"]
 # CMD ["/home/chromeuser/app/archive"]
 
-ENTRYPOINT ["python3", "-u", "/home/chromeuser/app/archiver/archive.py"]
+ENTRYPOINT ["python3", "-u", "/home/chromeuser/app/archivebox/archive.py"]

+ 0 - 0
archiver/__init__.py → archivebox/__init__.py


+ 0 - 0
archiver/archive.py → archivebox/archive.py


+ 0 - 0
archiver/archive_methods.py → archivebox/archive_methods.py


+ 1 - 1
archiver/config.py → archivebox/config.py

@@ -40,7 +40,7 @@ OUTPUT_DIR = os.getenv('OUTPUT_DIR', os.path.join(REPO_DIR, 'output'))
 ARCHIVE_DIR = os.path.join(OUTPUT_DIR, 'archive')
 SOURCES_DIR = os.path.join(OUTPUT_DIR, 'sources')
 
-PYTHON_PATH = os.path.join(REPO_DIR, 'archiver')
+PYTHON_PATH = os.path.join(REPO_DIR, 'archivebox')
 TEMPLATES_DIR = os.path.join(PYTHON_PATH, 'templates')
 
 # ******************************************************************************

+ 0 - 0
archiver/index.py → archivebox/index.py


+ 0 - 0
archiver/links.py → archivebox/links.py


+ 0 - 0
archiver/parse.py → archivebox/parse.py


+ 0 - 0
archiver/peekable.py → archivebox/peekable.py


+ 0 - 0
archiver/purge.py → archivebox/purge.py


+ 0 - 0
archiver/requirements.txt → archivebox/requirements.txt


+ 0 - 0
archiver/templates/index.html → archivebox/templates/index.html


+ 0 - 0
archiver/templates/index_row.html → archivebox/templates/index_row.html


+ 0 - 0
archiver/templates/link_index.html → archivebox/templates/link_index.html


+ 0 - 0
archiver/templates/link_index_fancy.html → archivebox/templates/link_index_fancy.html


+ 0 - 0
archiver/templates/static/archive.png → archivebox/templates/static/archive.png


+ 0 - 0
archiver/templates/static/external.png → archivebox/templates/static/external.png


+ 0 - 0
archiver/templates/static/jquery.dataTables.min.css → archivebox/templates/static/jquery.dataTables.min.css


+ 0 - 0
archiver/templates/static/jquery.dataTables.min.js → archivebox/templates/static/jquery.dataTables.min.js


+ 0 - 0
archiver/templates/static/jquery.min.js → archivebox/templates/static/jquery.min.js


+ 0 - 0
archiver/templates/static/sort_asc.png → archivebox/templates/static/sort_asc.png


+ 0 - 0
archiver/templates/static/sort_both.png → archivebox/templates/static/sort_both.png


+ 0 - 0
archiver/templates/static/sort_desc.png → archivebox/templates/static/sort_desc.png


+ 0 - 0
archiver/templates/static/spinner.gif → archivebox/templates/static/spinner.gif


+ 0 - 0
archiver/tests/firefox_export.html → archivebox/tests/firefox_export.html


+ 0 - 0
archiver/tests/pinboard_export.json → archivebox/tests/pinboard_export.json


+ 0 - 0
archiver/tests/pocket_export.html → archivebox/tests/pocket_export.html


+ 0 - 0
archiver/tests/rss_export.xml → archivebox/tests/rss_export.xml


+ 0 - 0
archiver/tests/tests.py → archivebox/tests/tests.py


+ 1 - 1
archiver/util.py → archivebox/util.py

@@ -174,7 +174,7 @@ def progress(seconds=TIMEOUT, prefix=''):
     return end
 
 def pretty_path(path):
-    """convert paths like .../ArchiveBox/archiver/../output/abc into output/abc"""
+    """convert paths like .../ArchiveBox/archivebox/../output/abc into output/abc"""
     return path.replace(REPO_DIR + '/', '')