aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add SourceHut CI control file.HEADcleanup-testingMatěj Cepl2024-01-181-0/+23
|
* Remove .travis.ymlMatěj Cepl2024-01-171-9/+0
| | | | Travis is dead, we shouldn’t pretend otherwise.
* We don’t need pytest.Matěj Cepl2024-01-173-4/+7
|
* Include tests into the distribution tarball.Matěj Cepl2024-01-171-0/+1
|
* Bump to 0.11.1masterMartin Vilcans2023-12-011-1/+1
|
* Typo caused reading from stdin to failMartin Vilcans2023-11-291-1/+1
|
* Bump version to 0.11.0Martin Vilcans2023-11-291-1/+1
|
* Add arguments --encoding and --encoding-errorsMartin Vilcans2023-11-281-2/+24
|
* Bump version to 0.10.0Martin Vilcans2023-11-091-1/+1
|
* Fail tests on warningsMartin Vilcans2023-11-091-1/+1
|
* Close input file when main is doneMartin Vilcans2023-11-091-0/+2
| | | | This avoids a warning about file not closed in file_tests
* Compare types with isinstance - gets rid of warningMartin Vilcans2023-11-091-2/+2
|
* Add test for issue #65, which passesMartin Vilcans2023-03-202-0/+2
| | | | Closes #65: can't reproduce.
* readme: PDF is supported nowMartin Vilcans2023-03-201-2/+1
| | | | Closes #76
* Add Python 3.11 to testing matrixMartin Vilcans2023-02-241-1/+1
|
* Add test for forcing action with "!"Martin Vilcans2023-02-243-0/+13
|
* Fix runtime error in pdf output of dual dialogMartin Vilcans2023-02-241-3/+3
| | | | Regression from 7507fa2
* Possible to force action by starting line with !Martin Vilcans2023-02-241-1/+11
| | | | Closes #63
* pdf Settings object for styles and layoutMartin Vilcans2022-11-072-129/+218
| | | | Instead of global hardcoded values.
* Replace nose with pytestMartin Vilcans2022-11-073-2/+2
|
* assertEquals is deprecated - use assertEqualMartin Vilcans2022-11-072-104/+104
|
* Remove unittest2 (Python 2 compatibility)Martin Vilcans2022-11-076-22/+4
|
* Github actions: "pip" is not the cache key apparentlyMartin Vilcans2022-11-071-1/+1
|
* Parenthesis in if statement - blasphemy!Martin Vilcans2022-11-071-1/+1
|
* Remove code related to output in text formatMartin Vilcans2022-11-071-4/+1
| | | | This was never implemented, so remove it (for now)
* .gitignore __pycache__Martin Vilcans2022-11-071-0/+1
|
* Add tests for extended charactersMartin Vilcans2022-11-073-0/+25
|
* Set up Github workflowMartin Vilcans2022-11-071-0/+29
|
* Merge pull request #51 from abenson/title_page_marginMartin Vilcans2022-01-041-0/+10
|\ | | | | export/pdf: make sure title page is centered.
| * export/pdf: make sure title page is centered.Andrew Benson2022-01-021-0/+10
| | | | | | | | Closes #50.
* | Merge pull request #49 from abenson/fix_contactMartin Vilcans2022-01-041-2/+0
|\ \ | |/ |/| export/pdf: use left aligned contact information.
| * export/pdf: use left aligned contact information.Andrew Benson2022-01-021-2/+0
|/ | | | | | Closes #48. See also #40.
* Merge pull request #70 from xiota/stdinMartin Vilcans2021-09-151-1/+1
|\ | | | | use sys.stdin.buffer to work around type mismatch in codecs.py
| * use sys.stdin.buffer to work around type mismatch in codecs.pyxiota2021-09-151-1/+1
|/
* Merge pull request #61 from jpyams/masterMartin Vilcans2020-08-274-9/+12
|\ | | | | Add Windows support
| * Add Windows supportJohn Peter Yamauchi2020-08-064-9/+12
|/
* Use content or README.md as long_descriptionMartin Vilcans2020-07-121-0/+8
|
* Use more common extension .md rather than .markdownMartin Vilcans2020-07-122-1/+1
|
* Python 3 only - not a universal wheel0.9.0Martin Vilcans2020-07-121-3/+0
|
* Bump version to 0.9.0 - Python 3 only versionMartin Vilcans2020-07-111-1/+1
|
* Remove Python 2 from classifiers #54Martin Vilcans2020-02-131-1/+0
|
* Update readme for Python 3 #54Martin Vilcans2020-02-132-6/+7
|
* Remove Python 2.7 from CI #54Martin Vilcans2020-02-131-1/+0
|
* Merge branch 'remove-py2'Martin Vilcans2020-02-129-58/+24
|\
| * Removing Python 2 support - no need for six #54Martin Vilcans2020-02-127-9/+4
| |
| * Remove Python 2 support for doctests #54Martin Vilcans2020-02-123-49/+20
|/
* Merge pull request #56 from jstasiak/python38-compatMartin Vilcans2020-02-122-4/+8
|\ | | | | Fix Python 3/3.8 compatibility
| * Fix "TypeError: write() argument must be str, not bytes" on Python 3Jakub Stasiak2020-02-081-2/+2
| | | | | | | | | | | | | | | | | | | | This used to happen when writing to stdout. On Python 3 stdout is an instance of TextIOWrapper which is a text-based interface. It wraps a bytes-based writer though which is accessible through the buffer attribute, so let's use that to either write to it directly or to get an encoding writer. Fixes https://github.com/vilcans/screenplain/issues/53.
| * Fix "AttributeError: module 'cgi' has no attribute 'escape'" on Python 3.8Jakub Stasiak2020-02-071-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Full error: % screenplain Big-Fish.fountain Big-Fish.html Traceback (most recent call last): File "/Users/user/.ve38/bin/screenplain", line 6, in <module> main(sys.argv[1:]) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/main.py", line 125, in main convert( File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/export/html.py", line 183, in convert convert_full( File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/export/html.py", line 210, in convert_full convert_bare(screenplay, out) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/export/html.py", line 225, in convert_bare formatter.convert(screenplay) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/export/html.py", line 99, in convert format_function(para) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/export/html.py", line 153, in format_action self.out.write(to_html(line)) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/export/html.py", line 60, in to_html html = text.to_html() File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/richstring.py", line 62, in to_html html = ''.join(seg.to_html() for seg in self.segments) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/richstring.py", line 62, in <genexpr> html = ''.join(seg.to_html() for seg in self.segments) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/richstring.py", line 136, in to_html _escape(self.text), File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/richstring.py", line 17, in _escape encoded = cgi.escape(s).encode('ascii', 'xmlcharrefreplace') AttributeError: module 'cgi' has no attribute 'escape' cgi.escape() is gone in Python 3.8, html.escape() should be used instead. Since html.escape() defaults to quote=True, we need to explicitly disable escaping quotation marks to keep doing the same thing. A question arises though – should quotation marks be actually kept verbatim here or was it unintentional?
* | Replace pep8 with pycodestyle, get rid of warningsMartin Vilcans2020-02-125-4/+7
| | | | | | | | pep8 recommended that change