Skip to content

Conversation

leviathan747
Copy link
Collaborator

The xtUML metamodel can be loaded from a set of file or directory resources. Allow zip archives to be loaded as well. The behavior is the same as directories where any file that uses the .xtuml file extension within the archive will be loaded.

@coveralls
Copy link
Collaborator

coveralls commented Jul 31, 2019

Coverage Status

Coverage increased (+0.1%) to 81.538% when pulling da0431f on leviathan747:zip_loading into f097648 on xtuml:master.

@john-tornblom john-tornblom mentioned this pull request Aug 1, 2019
@john-tornblom
Copy link
Contributor

Seems to fail on python3, see #16 and https://api.travis-ci.org/v3/job/566396780/log.txt

@leviathan747
Copy link
Collaborator Author

I found the issue. The zipfile module in python 3.x opens the file as binary data and not text. Using io.TextIOWrapper resolves the difference. I found this here: https://stackoverflow.com/questions/5627954/how-do-you-read-a-file-inside-a-zip-file-as-text-not-bytes/

@john-tornblom john-tornblom merged commit 193bdbe into xtuml:master Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants