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):
689
689
continue
690
690
with open (fspath ) as f :
691
691
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 )
693
693
with open (fspath , "w" ) as f :
694
694
f .write (contents )
695
695
@@ -790,7 +790,7 @@ def extract_doctest_inputs(
790
790
791
791
792
792
def 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"
794
794
for ext in pkg_formats :
795
795
frmt = ext2format_name (ext )
796
796
code_str += f"""
@@ -803,7 +803,8 @@ class {frmt}(File):
803
803
804
804
805
805
def 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
807
808
import typing as ty
808
809
from random import Random
809
810
from fileformats.core import FileSet
You can’t perform that action at this time.
0 commit comments