Commit graph

1036 commits

Author SHA1 Message Date
7fa155da72 release: docker: Make sure python3.9 exists. 2021-12-06 16:19:53 +10:00
bc83e9f736 release: Add snap installation instructions to the README. 2021-12-06 15:47:07 +10:00
4b1e141126 release: appimage: Fix build script.
- Fix script now that its moved to packaging subdir.
- Tests aren't really necessary within the image,
  since "eris -i" checks eris and tools.
2021-12-06 14:57:02 +10:00
e1e9b89b2a release: snap: Update version. 2021-12-06 14:47:58 +10:00
e4a93e1d96 release: Make sure pip is installed.
- Its good that sudo is needed early in the script, so a password
  isn't needed later for install-tools.
2021-12-06 14:45:30 +10:00
a6237ca16a webserver: Add example url to startup. 2021-12-05 19:46:45 +10:00
1d8d497fff tools: Emphasise the command over the home page. 2021-12-05 19:27:46 +10:00
0331a9da1e snap: Start snap support.
- Create a snapcraft.yaml file in snap directory.
  Couldn't put this in packaging directory.
- Use make-snapcraft.py to generate the snapcraft file.
- Use make-snap to make the snap from the snapcraft file.
- Eris is confined to only access projects in home.
- os.setpriority doesn't work in snaps.
- eris-webserver is run as "eris.webserver".
2021-12-05 19:14:56 +10:00
abb9633e97 Coding style.
- Pip can install multiple packages and requirements files at once.
2021-12-03 02:47:14 +10:00
0cb13e0c65 tools: python_gut: Display files with tabs correctly. 2021-11-29 22:24:46 +10:00
769b7e2256 Coding style.
- Shave 3 lines.
2021-11-29 18:10:11 +10:00
4bf3f994e6 Coding style.
- Increase maximum line length from 80 to 100.
2021-11-29 16:02:32 +10:00
4150a9a250 Coding style.
- Since there is only one display, appearance_changed_event can be
  a module level global in fill3.
- Remove all the appearance_changed_event plumbing.
2021-11-29 15:57:16 +10:00
71b9da128b Coding style.
- Increase maximum line length from 80 to 100.
2021-11-29 12:51:34 +10:00
75a028272d tools: Dropped python-modulefinder and disassembly.
- Modulefinder often has errors.
- Both tools aren't commonly used.
2021-11-28 22:58:42 +10:00
8f4b783e1e List dependencies in consistent order. 2021-11-26 10:19:40 +10:00
3b8a6cffcb Use ubuntu dependencies for tools.
- No longer sourcing deps for flatpak's sake.
- Switching from svglib to cairosvg since svglib not in ubuntu.
2021-11-26 03:30:17 +10:00
96b148d450 webserver: Coding style.
- Remove unnecessary function.
- More import tidying.
2021-11-25 23:26:04 +10:00
d1e538f5f3 Coding style.
- More import tidying.
- Fix line lengths.
- Dead code in tests.
- lambdas.
- Tests pass regardless of term type.
2021-11-23 01:02:55 +10:00
2d9a475833 webserver: Send pages gzip compressed.
- Also don't need POST or HEAD.
2021-11-21 22:53:12 +10:00
d5fd64c42c Coding style.
- Tidy up imports.
2021-11-21 10:41:01 +10:00
055e1fd650 webserver: Coding Style.
- Extract get_summary function.
2021-11-21 01:38:16 +10:00
53408547f4 webserver: Add a title header to result pages. 2021-11-21 00:33:52 +10:00
2e44fa42dc webserver: Unquote urls containing quoted characters.
- e.g. Caused by filenames containing spaces.
2021-11-18 23:52:19 +10:00
ae7f53a1fc webserver: Use an lru cache for 100 result pages. 2021-11-18 13:11:14 +10:00
e6097931b2 webserver: Add a cursor. 2021-11-18 08:07:39 +10:00
b4a7178ea2 webserver: Improve interface.
- Put the listing on the same page, like in the tui.
2021-11-17 10:05:25 +10:00
b3ac69e0aa webserver: Results look better without the border. 2021-11-16 23:30:57 +10:00
64b3221daa webserver: Coding style.
- Don't sort unnecessarily.
2021-11-16 16:11:32 +10:00
b862b484ac webserver: Prefer sorting by file type. 2021-11-16 15:50:15 +10:00
377f74c471 webserver: Fix it.
- Should add tests for as_html methods.
2021-11-16 11:25:40 +10:00
c98f3260a9 webserver: Allow running without root permission.
- Change default port to 8080.
- Port 80 needs root permission to open.
2021-11-16 11:00:42 +10:00
9ecc65bd12 Generate correct html from xterm colors. 2021-11-15 22:18:07 +10:00
28b2c9bae9 Show italic file types correctly.
- Some file types have italic lscolors style, e.g. pem files.
- Using TermStr.from_term to parse lscodes now it exists.
2021-11-15 09:51:02 +10:00
06fc1be36d Add LICENSE files to the subprojects. 2021-11-14 09:55:21 +10:00
032b2ac7a1 Coding style.
- Consistently use "/usr/bin/env".
2021-11-11 19:39:25 +10:00
f98d3ce416 termstr: Stop tests depending on fill3. 2021-11-11 17:33:17 +10:00
33616d3f37 termstr: Coding style.
- Add tests for xterm_colors and closest_color_index.
2021-11-11 17:22:07 +10:00
2b5d14b87d Coding style.
- Change termstr from a package to a single module, since ColorMap
  no longer exists.
2021-11-11 00:08:32 +10:00
27fc9a433c Coding style.
- Add xterm colors, and func for finding closest color, to
  termstr.py.
- Remove termstr's dependencies on pygments and ColorMap.py.
2021-11-10 23:58:59 +10:00
b62afb5e69 Termstr currently depends on pygments. 2021-11-07 10:49:58 +10:00
38b0b9ead0 Add author email to setup.pys. 2021-11-07 00:01:49 +10:00
a724d234c3 Extract lscolors into its own python project. 2021-11-06 23:58:17 +10:00
895470b01b Coding style.
- Comment tools.py's main.
2021-11-06 13:55:14 +10:00
90078f5d32 Coding style.
- Minor shortening of python_gut.
2021-11-06 13:41:04 +10:00
b4b237ec1f Move tests into their projects. 2021-11-04 23:04:41 +10:00
2d7ce4a2de Move LS_COLORS into the eris project. 2021-11-04 22:46:11 +10:00
240e908634 Extracted fill3 into its own python project. 2021-11-04 22:40:15 +10:00
c018e9f7d4 Extracted termstr into its own python project. 2021-11-04 21:37:38 +10:00
31d8cbf4e3 Coding Style.
- Move the eris source into a subdirectory.
  - Including the setup.py and requirements files.
- This repo will hold more than one python project.
2021-11-04 21:18:44 +10:00