af53102e77
When running pytest on kubuntu 16.04 the following warning was displayed: $ python3 -m pytest -v ... ./manuskript/load_save/version_1.py:319: \ UserWarning: Duplicate name: 'outline/0-Folder/0-Text-3.md' zf.writestr(filename, content, compress_type=compression) The error was tracked down using the following pytest invocation: $ python3 -m pytest -v -W error::UserWarning This invocation showed 4 occurrences similar to the following warning: self = <zipfile.ZipFile filename='/tmp/tmpgs_sjpzr.msk' mode='w'> zinfo = <[AttributeError("compress_size") raised in repr()] \ ZipInfo object at 0x7f3cc0124588> def _writecheck(self, zinfo): """Check for errors before writing a file to the archive.""" if zinfo.filename in self.NameToInfo: import warnings > warnings.warn('Duplicate name: %r' % zinfo.filename, \ stacklevel=3) E UserWarning: Duplicate name: 'outline/0-Folder/0-Text-3.md' These warnings arose in the following 4 tests: - test_references - test_autoLoad - test_loadExportWiget - test_loadImportWiget The cause of the issue is that in manuskript/tests/conftest.py, the mainWindow::closeProject() method is called to close the project, but the project was never loaded. This meant the zip file setting defaulted to True, when in fact the Acts sample project is not stored in a single zip project file. Fix by removing the call to MW.closeProject() before the project is loaded. |
||
---|---|---|
bin | ||
i18n | ||
icons | ||
libs | ||
manuskript | ||
package | ||
resources | ||
sample-projects | ||
.codeclimate.yml | ||
.gitignore | ||
.travis.yml | ||
_config.yml | ||
CHANGELOG.md | ||
COPYING | ||
CREDITS | ||
makefile | ||
manuskript.spec | ||
README.md | ||
TODO.t2t |
Manuskript
Manuskript is an open-source tool for writers.
Manuskript runs on GNU/Linux, Mac OS X, and Windows.
Features
Manuskript provides a rich environment to help writers create their
first draft and then further refine and edit their masterpiece.
With Manuskript you can:
- Grow your premise from one sentence, to a paragraph, to a full summary
- Create characters
- Conceive plots
- Construct outlines (Outline mode and/or Index cards)
- Write with focus (Distraction free mode)
- Build worlds
- Track items
- Edit and re-organize chapters and scenes
- View Story line
- Compose with fiction or non-fiction templates and writing modes
- Export to HTML, ePub, OpenDocument, DocX, PDF, and more
Additionally Manuskript can help in many more ways with a spell checker, markdown highlighter, frequency analyzer, and automatic save in open and plain text file format.
Download
Download and install Manuskript today.
HowTo's
See the Wiki for more detailed instructions on how to install and use Manuskript.
Contribute
You can help improve Manuskript by reporting issues, writing wiki documentation, and translating to other languages. See also Manuskript Contribute page.
Manuskript is written in Python3 and PyQt5.
Free Software
Manuskript is Free Software.
You have the freedom to run, copy, distribute, study, change and improve the software.
Manuskript is distributed under the GNU General Public License version 3 or (at your option) any later version.