Sebastian Lohff seba
Loading Heatmap…

seba pushed to code-format-update at seba/servefile

  • 33defb85a7 Further codeformatting * break up some extra long lines * add a bit of noqa for warnings I don't want to have * rework formatting for ip addr / ifconfig part
  • 579363201c Code reformatting * replace tabs with spaces * replace some of the != None with is not None etc. * more whitespace fixes * remove all the newline \
  • cd28811fcf Release v0.5.2
  • 46d4433a1d Explicitly set encoding for http requests in tests Due to the upgrade to charset-normalizer 2.0.4 guessing the encoding inside the tests did not work anymore and caused the umlaut tests to fail. Explicitly specifying the encoding on the requests' response object fixes this.
  • 4161a3d721 Further codeformatting * break up some extra long lines * add a bit of noqa for warnings I don't want to have * rework formatting for ip addr / ifconfig part
  • Compare 7 commits »

2 weeks ago

seba pushed to code-format-update at seba/servefile

  • 4161a3d721 Further codeformatting * break up some extra long lines * add a bit of noqa for warnings I don't want to have * rework formatting for ip addr / ifconfig part
  • 2d434d83a1 Code reformatting * replace tabs with spaces * replace some of the != None with is not None etc. * more whitespace fixes * remove all the newline \

2 weeks ago

seba pushed to fix-weird-encoding-problem-in-tests at seba/servefile

  • 41a0f64ff7 Explicitly set encoding for http requests in tests Due to the upgrade to charset-normalizer 2.0.4 guessing the encoding inside the tests did not work anymore and caused the umlaut tests to fail. Explicitly specifying the encoding on the requests' response object fixes this.
  • d87a42cf8e Add PUT upload fix to changelog
  • 6537c054e5 Fix PUT uploads PUT uploads were broken on python 3.9 and were lacking tests.
  • 65fcac5c49 Fix encoding handling for file listing with py2 File listings with -l that contained files with umlauts or other special chars could break the directory listing. Hopefully one of the last python2 fixes before I drop support for this.
  • 0334e74996 Add Github Actions workflow to run tox

2 weeks ago

seba pushed to fix-umlaunt-redirect at seba/servefile

  • 7cb85a97e7 Add Github Actions workflow to run tox
  • 0b6284cec1 Drop python3.5 support
  • 3249647c0b Quote filenames in Location header on redirect When we redirect the user to the "correct" file name this name should end up quoted in the header, else we would end up in an infinite redirect loop.
  • 1f451e0f29 Allow ports for tests to be specified via env SERVEFILE_DEFAULT_PORT and SERVEFILE_SECONDARY_PORT can be used to specify ports used in the servefile tests. This can be useful if the default port 8080 and the secondary port 8081 (for the -p test) are already in use. To allow automatic choosing of a free port 0 can be specified to tell the test code to automatically select a free port.

5 months ago

seba pushed to tests-specify-ports-via-env at seba/servefile

  • b5a9c52ed1 Allow ports for tests to be specified via env SERVEFILE_DEFAULT_PORT and SERVEFILE_SECONDARY_PORT can be used to specify ports used in the servefile tests. This can be useful if the default port 8080 and the secondary port 8081 (for the -p test) are already in use. To allow automatic choosing of a free port 0 can be specified to tell the test code to automatically select a free port.
  • e31c8fb016 Fix broken pyopenssl and debian references servefile used to hint to install pyssl when ssl support was missing. This is utterly wrong, because the package is named pyopenssl - as stated in setup.py. Installing pyssl will not only not lead to ssl support, but also install a random package that we do not want. Also, since python2 has genereally been deprecated (though it is still support by servefile for now) we hint for the python3 package of pyopenssl instead of the python2 version. I thought about building a version detection and print the right package, depending if the user is using python2 or 3, but I deemed it not being worth it. Fixes #7 (GitHub)

6 months ago

seba pushed to fix-pyopenssl-package-name at seba/servefile

8 months ago

seba pushed to fix-pyopenssl-package-names at seba/servefile

  • 20ea0c10a4 Fix broken pyopenssl and debian references servefile used to hint to install pyssl when ssl support was missing. This is utterly wrong, because the package is named pyopenssl - as stated in setup.py. Installing pyssl will not only not lead to ssl support, but also install a random package that we do not want. Also, since python2 has genereally been deprecated (though it is still support by servefile for now) we hint for the python3 package of pyopenssl instead of the python2 version. I thought about building a version detection and print the right package, depending if the user is using python2 or 3, but I deemed it not being worth it. Fixes #7 (GitHub)
  • 058de2f39c Fix exception on transmission abort with python3 With python3 sys.exc_value does no longer exist, but we can replace it with sys.exc_info().

8 months ago

seba pushed to master at seba/servefile

1 year ago

seba pushed tag v0.5.0 to seba/servefile

1 year ago

seba pushed tag v0.4.3 to seba/servefile

1 year ago

seba pushed tag v0.4.2 to seba/servefile

1 year ago

seba pushed tag v0.4.0 to seba/servefile

1 year ago

seba pushed tag v0.3.1 to seba/servefile

1 year ago

seba pushed to master at seba/servefile

  • f2594c2adf Release v0.5.0
  • 95852ba11d Change project url to GitHub
  • 14771695c4 Add README.md
  • 5c78991bc8 Advertise python3.5 support For now we don't break compability with python3.5, so why not advertise it!
  • ef41f65996 Workaround for python2 deprecation in tests When checking the version the test now gets a CryptographyDeprecationWarning plus an import code line instead of the version. As a workaround we now ignore the first two lines when checking for the version string.
  • Compare 7 commits »

1 year ago

seba pushed to a-bit-of-packaging at seba/servefile

  • ef41f65996 Workaround for python2 deprecation in tests When checking the version the test now gets a CryptographyDeprecationWarning plus an import code line instead of the version. As a workaround we now ignore the first two lines when checking for the version string.
  • 19c1b000a4 Make servefile a python package servefile is now a valid python package. The single servefile.py can still be used as a script by just putting it into PATH and making it executable. Additionally when installed via pip a wrapper script is created, calling the module's main(). python -m servefile works as well.
  • 3d46950d6c Use spaces instead of tabs for setup.py

1 year ago

seba pushed to cursorless at seba/clintermission

  • 775c50ed6f Add support for cursorless menus When a highlighter is used instead of a cursor it looks much better when all the options have the same length. With right_pad_options all options are right-padded with spaces so they have the same length. Also, an example for a cursorless menu is added.
  • 7a09d45ab8 Allow styling special CliMultiMenu states Now a selected and a selected and highlighted option can be styled.
  • 19ad4f3e8b Allow per-item styling for text and options When adding text or an option a style can now be passed along. An option allows an additional highlighted_style to be passed.
  • 030492b353 Rename CliMenuTheme class parameters The _style is redundant, as the whole theme is a collection of styles. Headers are not really regarded as headers, more as text. Highlight makes more sense as highlighted. This is an API breaking change.
  • 22307bc4ae Always use text as item if no item was specified When an option is passed without an item attached we now always use the label as item. This was the behaviour for __init__() and is now also the behaviour of add_option().

1 year ago

seba pushed to new-styles at seba/clintermission

  • 74a411a52e Allow per-item styling for text and options When adding text or an option a style can now be passed along. An option allows an additional highlighted_style to be passed.
  • dc3b03c653 Rename CliMenuTheme class parameters The _style is redundant, as the whole theme is a collection of styles. Headers are not really regarded as headers, more as text. Highlight makes more sense as highlighted. This is an API breaking change.
  • 9ef6532c1f Make option prefix/suffix configurable This can be used to add some test surrounding options or to remove the space between cursor and option item.
  • 68e6ecbe4f Make CliMenuHeader and CliMenuOption private These classes don't need to be used by the user, only via the API, so we can mark them private.
  • 24dab5f69b Specify minimum selected item count for CliMutliMenu min_selection_count=n can be specify to indicate that at least n items need to be selected before the selection is accepted. Feature inspired by python pick.

1 year ago

seba pushed to dev at seba/clintermission

  • 411bb3a7fe Group selection icons in CliMultiMenu API The select/unselect icons of a CliMultiMenu will in nearly all cases be changed together, therefore it makes sense to let the API be less verbose for this case. This is an API breaking change for CliMultiMenu
  • 12552d8e5b Use right arrow to select/deselect in CliMultiMenu For a menu where we only select one option right arrow is an okay-choice for accept, but with multiple option selection toggling feels more natural.
  • d01024d1be Add initial_pos to choose initially selected item
  • 3e3ea53f5e Remove dead code
  • c363c187bd Remove unused methods and unused arguments

1 year ago

seba pushed to consistency-and-multiselect at seba/clintermission

  • 9b833db364 Check type of options passed to __init__
  • c74e3d68d6 Implement multiple selections with CliMultiMenu CliMultiMenu works much in the same way as CliMenu but it allows for selecting multiple items.
  • 46a863b3cf Remove broken space keyboard binding for accept Originally space was thought out to also accept the selection, but only a broken binding was added. As we want to use space for selections in the future we now remove it entirely.
  • a28c76e001 Allow a default theme and cursor to be set
  • 45d3395642 Rename add_header() to add_text() add_header() does not necessarily add a header, it might be just text.

1 year ago

seba pushed to new-map at seba/dnmapper

  • ec7cbab410 Add protobuf as dependency
  • 180e127fff New (temporary) colorscheme for new map
  • 841e1d015a Protect crawl converter against broken crawls Some crawls don't contain all ASNs. As we only want to convert the crawl and not add additional information we just skip adding stub info for non-existant ASNs.
  • b506c7c8a2 Python3 fixes for old crawler
  • Compare 4 commits »

1 year ago