Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ecbundle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@
from ecbundle.populate import * # noqa
from ecbundle.project import * # noqa
from ecbundle.util import * # noqa

__version__ = "2.3.0"
from ecbundle.version import __version__ # noqa
2 changes: 2 additions & 0 deletions ecbundle/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from .bundle import Bundle
from .logging import colors, error, header, success
from .util import Timer, fullpath, mkdir_p, symlink_force
from .version import __version__

__all__ = ["BundleBuilder"]

Expand Down Expand Up @@ -547,6 +548,7 @@ def create_scripts(self):
env.write("# Empty environment\n")

mappings = dict(
ecbundle_version=__version__,
bundle_name=self.bundle().name(),
src_dir=src_dir,
install_dir=install_dir,
Expand Down
1 change: 1 addition & 0 deletions ecbundle/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "2.3.0"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def read(fname):


version = None
for line in read("ecbundle/__init__.py").split("\n"):
for line in read("ecbundle/version.py").split("\n"):
if line.startswith("__version__"):
version = line.split("=")[-1].strip()[1:-1]

Expand Down