File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -689,7 +689,7 @@ def copy_ignore(_, names):
689689 continue
690690 with open (fspath ) as f :
691691 contents = f .read ()
692- contents = re .sub (r"(?<![0-9a-zA-Z])CHANGEME(?![0-9a-zA-Z]) " , pkg , contents )
692+ contents = re .sub (r"\bCHANGEME\b " , pkg , contents )
693693 with open (fspath , "w" ) as f :
694694 f .write (contents )
695695
@@ -790,7 +790,7 @@ def extract_doctest_inputs(
790790
791791
792792def gen_fileformats_module (pkg_formats : ty .Set [str ]):
793- code_str = "from fileformats.generic import File"
793+ code_str = "from ._version import __version__ # noqa: F401 \n from fileformats.generic import File"
794794 for ext in pkg_formats :
795795 frmt = ext2format_name (ext )
796796 code_str += f"""
@@ -803,7 +803,8 @@ class {frmt}(File):
803803
804804
805805def gen_fileformats_extras_module (pkg : str , pkg_formats : ty .Set [str ]):
806- code_str = """from pathlib import Path
806+ code_str = """from ._version import __version__ # noqa: F401
807+ from pathlib import Path
807808import typing as ty
808809from random import Random
809810from fileformats.core import FileSet
You can’t perform that action at this time.
0 commit comments