Skip to content

Commit

Permalink
Merge pull request #67 from EmbroidePy/tatarize-exts
Browse files Browse the repository at this point in the history
"extensions" should be consistently tuple
  • Loading branch information
tatarize committed Jul 19, 2019
2 parents 55c5628 + dbe7daa commit 529262d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 38 deletions.
75 changes: 38 additions & 37 deletions pyembroidery/PyEmbroidery.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def supported_formats():
yield ({
"description": "Brother Embroidery Format",
"extension": "pec",
"extensions": ("pec"),
"extensions": ("pec",),
"mimetype": "application/x-pec",
"category": "embroidery",
"reader": PecReader,
Expand All @@ -81,7 +81,7 @@ def supported_formats():
yield ({
"description": "Brother Embroidery Format",
"extension": "pes",
"extensions": ("pes"),
"extensions": ("pes",),
"mimetype": "application/x-pes",
"category": "embroidery",
"reader": PesReader,
Expand All @@ -92,7 +92,7 @@ def supported_formats():
yield ({
"description": "Melco Embroidery Format",
"extension": "exp",
"extensions": ("exp"),
"extensions": ("exp",),
"mimetype": "application/x-exp",
"category": "embroidery",
"reader": ExpReader,
Expand All @@ -101,7 +101,7 @@ def supported_formats():
yield ({
"description": "Tajima Embroidery Format",
"extension": "dst",
"extensions": ("dst"),
"extensions": ("dst",),
"mimetype": "application/x-dst",
"category": "embroidery",
"reader": DstReader,
Expand All @@ -120,7 +120,7 @@ def supported_formats():
yield ({
"description": "Janome Embroidery Format",
"extension": "jef",
"extensions": ("jef"),
"extensions": ("jef",),
"mimetype": "application/x-jef",
"category": "embroidery",
"reader": JefReader,
Expand All @@ -139,7 +139,7 @@ def supported_formats():
yield ({
"description": "Pfaff Embroidery Format",
"extension": "vp3",
"extensions": ("vp3"),
"extensions": ("vp3",),
"mimetype": "application/x-vp3",
"category": "embroidery",
"reader": Vp3Reader,
Expand All @@ -148,14 +148,15 @@ def supported_formats():
yield ({
"description": "Scalable Vector Graphics",
"extension": "svg",
"extensions": ("svg", "svgz"),
"mimetype": "image/svg+xml",
"category": "vector",
"writer": SvgWriter,
})
yield ({
"description": "Comma-separated values",
"extension": "csv",
"extensions": ("csv"),
"extensions": ("csv",),
"mimetype": "text/csv",
"category": "debug",
"reader": CsvReader,
Expand All @@ -165,7 +166,7 @@ def supported_formats():
yield ({
"description": "Singer Embroidery Format",
"extension": "xxx",
"extensions": ("xxx"),
"extensions": ("xxx",),
"mimetype": "application/x-xxx",
"category": "embroidery",
"reader": XxxReader,
Expand All @@ -174,7 +175,7 @@ def supported_formats():
yield ({
"description": "Janome Embroidery Format",
"extension": "sew",
"extensions": ("sew"),
"extensions": ("sew",),
"mimetype": "application/x-sew",
"category": "embroidery",
"reader": SewReader
Expand All @@ -191,63 +192,63 @@ def supported_formats():
yield ({
"description": "Husqvarna Viking Embroidery Format",
"extension": "shv",
"extensions": ("shv"),
"extensions": ("shv",),
"mimetype": "application/x-shv",
"category": "embroidery",
"reader": ShvReader
})
yield ({
"description": "Toyota Embroidery Format",
"extension": "10o",
"extensions": ("10o"),
"extensions": ("10o",),
"mimetype": "application/x-10o",
"category": "embroidery",
"reader": A10oReader
})
yield ({
"description": "Toyota Embroidery Format",
"extension": "100",
"extensions": ("100"),
"extensions": ("100",),
"mimetype": "application/x-100",
"category": "embroidery",
"reader": A100Reader
})
yield ({
"description": "Bits & Volts Embroidery Format",
"extension": "bro",
"extensions": ("bro"),
"extensions": ("bro",),
"mimetype": "application/x-Bro",
"category": "embroidery",
"reader": BroReader
})
yield ({
"description": "Sunstar or Barudan Embroidery Format",
"extension": "dat",
"extensions": ("dat"),
"extensions": ("dat",),
"mimetype": "application/x-dat",
"category": "embroidery",
"reader": DatReader
})
yield ({
"description": "Tajima(Barudan) Embroidery Format",
"extension": "dsb",
"extensions": ("dsb"),
"extensions": ("dsb",),
"mimetype": "application/x-dsb",
"category": "embroidery",
"reader": DsbReader
})
yield ({
"description": "ZSK USA Embroidery Format",
"extension": "dsz",
"extensions": ("dsz"),
"extensions": ("dsz",),
"mimetype": "application/x-dsz",
"category": "embroidery",
"reader": DszReader
})
yield ({
"description": "Elna Embroidery Format",
"extension": "emd",
"extensions": ("emd"),
"extensions": ("emd",),
"mimetype": "application/x-emd",
"category": "embroidery",
"reader": EmdReader
Expand All @@ -271,135 +272,135 @@ def supported_formats():
yield ({
"description": "Gold Thread Embroidery Format",
"extension": "gt",
"extensions": ("gt"),
"extensions": ("gt",),
"mimetype": "application/x-exy",
"category": "embroidery",
"reader": GtReader
})
yield ({
"description": "Inbro Embroidery Format",
"extension": "inb",
"extensions": ("inb"),
"extensions": ("inb",),
"mimetype": "application/x-inb",
"category": "embroidery",
"reader": InbReader
})
yield ({
"description": "Tajima Embroidery Format",
"extension": "tbf",
"extensions": ("tbf"),
"extensions": ("tbf",),
"mimetype": "application/x-tbf",
"category": "embroidery",
"reader": TbfReader
})
yield ({
"description": "Pfaff Embroidery Format",
"extension": "ksm",
"extensions": ("ksm"),
"extensions": ("ksm",),
"mimetype": "application/x-ksm",
"category": "embroidery",
"reader": KsmReader
})
yield ({
"description": "Happy Embroidery Format",
"extension": "tap",
"extensions": ("tap"),
"extensions": ("tap",),
"mimetype": "application/x-tap",
"category": "embroidery",
"reader": TapReader
})
yield ({
"description": "Data Stitch Embroidery Format",
"extension": "stx",
"extensions": ("stx"),
"extensions": ("stx",),
"mimetype": "application/x-stx",
"category": "embroidery",
"reader": StxReader
})
yield ({
"description": "Brother Embroidery Format",
"extension": "phb",
"extensions": ("phb"),
"extensions": ("phb",),
"mimetype": "application/x-phb",
"category": "embroidery",
"reader": PhbReader
})
yield ({
"description": "Brother Embroidery Format",
"extension": "phc",
"extensions": ("phc"),
"extensions": ("phc",),
"mimetype": "application/x-phc",
"category": "embroidery",
"reader": PhcReader
})
yield ({
"description": "Ameco Embroidery Format",
"extension": "new",
"extensions": ("new"),
"extensions": ("new",),
"mimetype": "application/x-new",
"category": "embroidery",
"reader": NewReader
})
yield ({
"description": "Pfaff Embroidery Format",
"extension": "max",
"extensions": ("max"),
"extensions": ("max",),
"mimetype": "application/x-max",
"category": "embroidery",
"reader": MaxReader
})
yield ({
"description": "Mitsubishi Embroidery Format",
"extension": "mit",
"extensions": ("mit"),
"extensions": ("mit",),
"mimetype": "application/x-mit",
"category": "embroidery",
"reader": MitReader
})
yield ({
"description": "Pfaff Embroidery Format",
"extension": "pcd",
"extensions": ("pcd"),
"extensions": ("pcd",),
"mimetype": "application/x-pcd",
"category": "embroidery",
"reader": PcdReader
})
yield ({
"description": "Pfaff Embroidery Format",
"extension": "pcq",
"extensions": ("pcq"),
"extensions": ("pcq",),
"mimetype": "application/x-pcq",
"category": "embroidery",
"reader": PcqReader
})
yield ({
"description": "Pfaff Embroidery Format",
"extension": "pcm",
"extensions": ("pcm"),
"extensions": ("pcm",),
"mimetype": "application/x-pcm",
"category": "embroidery",
"reader": PcmReader
})
yield ({
"description": "Pfaff Embroidery Format",
"extension": "pcs",
"extensions": ("pcs"),
"extensions": ("pcs",),
"mimetype": "application/x-pcs",
"category": "embroidery",
"reader": PcsReader
})
yield ({
"description": "Janome Embroidery Format",
"extension": "jpx",
"extensions": ("jpx"),
"extensions": ("jpx",),
"mimetype": "application/x-jpx",
"category": "embroidery",
"reader": JpxReader
})
yield ({
"description": "Gunold Embroidery Format",
"extension": "stc",
"extensions": ("stc"),
"extensions": ("stc",),
"mimetype": "application/x-stc",
"category": "embroidery",
"reader": StcReader
Expand All @@ -422,7 +423,7 @@ def supported_formats():
yield ({
"description": "Brother Stitch Format",
"extension": "pmv",
"extensions": ("pmv"),
"extensions": ("pmv",),
"mimetype": "application/x-pmv",
"category": "stitch",
"reader": PmvReader,
Expand All @@ -431,7 +432,7 @@ def supported_formats():
yield ({
"description": "PNG Format, Portable Network Graphics",
"extension": "png",
"extensions": ("png"),
"extensions": ("png",),
"mimetype": "image/png",
"category": "image",
"writer": PngWriter,
Expand All @@ -443,7 +444,7 @@ def supported_formats():
yield ({
"description": "txt Format, Text File",
"extension": "txt",
"extensions": ("txt"),
"extensions": ("txt",),
"mimetype": "text/plain",
"category": "debug",
"writer": TxtWriter,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pyembroidery",
version="1.4.1",
version="1.4.2",
author="Tatarize",
author_email="tatarize@gmail.com",
description="Embroidery IO library",
Expand Down

0 comments on commit 529262d

Please sign in to comment.