Isaac Weaver
a910ea70f0
Fix T53782: Can't bundle blend file with image sequences
...
Differential revision: D3016
2019-04-15 10:56:49 +02:00
6e69e2c6d9
Improved the output of --help for bam.pack
2018-03-06 11:25:25 +01:00
e491179c77
Unified requirement versions between BAM and webservice subproject
2018-03-06 11:25:25 +01:00
7afb1fe606
Correct seek use
...
Harmless but misleading since both args are zero.
2017-11-18 18:25:57 +11:00
c4f935159e
Fix for when no temp dir was passed on the CLI
2017-06-10 11:08:04 +02:00
dd922fe938
Bumped version to 1.1.8
2017-06-10 09:41:30 +02:00
bad09883a4
Fix T51692: issue when passing temporary directory.
...
Since BAM wants to handle all paths as bytes, care should be taken to
always encode.
2017-06-10 09:40:44 +02:00
8c8bc6ff35
Removed two assertions.
...
They were useful while testing out certain things, but get in the way
now because (apparently) aren't absolute truth.
2017-06-10 09:38:32 +02:00
46f40aeb15
Fix T51245: Added GPL2+ license text file
...
This is consistent with the license already stated in setup.py.
2017-04-25 12:53:30 +02:00
97f1243643
Bumped version to 1.1.7
2017-04-21 18:12:04 +02:00
eaa10175fe
Added exclusion filter to blendfile_pack:main()
...
Also improved CLI descriptions and added some assertions to help debuggin
stuff.
2017-04-21 17:51:00 +02:00
a6c5400db2
Corrected usage text for pack function
2017-04-21 17:21:31 +02:00
ff777ad695
Moved some imports to the top of the file
2017-04-21 17:21:31 +02:00
618f590f35
Bumped version to 1.1.6
2017-04-21 16:24:46 +02:00
b3d0fcb243
Always try to pack using a unique temporary folder name.
...
This allows multiple users to create multiple ZIP files in the same
directory.
2017-04-21 16:24:20 +02:00
87d568ab3f
Bumped version to 1.1.5
2017-04-21 11:46:58 +02:00
8994385c63
Added support for Alembic caches.
2017-04-21 11:45:48 +02:00
0304489db0
Little sanity pass over the test_cli.py file
...
No longer importing, then deleting, then re-importing modules all over the
place. Just import at the top of the file.
Also removed some superfluous return statements.
2017-04-21 11:45:21 +02:00
a926dfa4c1
Bumped version to 1.1.4
2017-04-12 11:03:02 +02:00
9fbb3801bb
Added a BlendFileError exception
...
This avoid having to raise (and catch) an Exception instance. Catching
such an exception is unnecessarily broad, as it'll also catch things like
SyntaxError and AttributeError.
2017-04-12 11:01:39 +02:00
250c35ce12
blendfile.py: Add support reading single char DNA values as unsigned integer.
...
A single char is nearly never a string or byte, but rather a small int
or bitflag value. ;)
2017-04-12 10:57:54 +02:00
48ed23a261
Make blendfile.py reading/parsing slightly more robust/helpful in broken .blend files cases.
2017-04-12 10:57:34 +02:00
65926962f2
Bumped version to 1.1.3
2017-04-05 13:00:28 +02:00
50f9f05daa
Added update_version.sh to update version numbers in all the right places
2017-04-05 13:00:22 +02:00
14339be8b2
Added requirements.txt and requirements-dev.txt files.
2017-04-05 12:50:28 +02:00
c4dbf01f5f
Fix T51131: Textures do not get packed when used in particle system
2017-04-05 12:50:28 +02:00
c43248a235
More control over logging + added extra DEBUG level
2017-04-05 12:50:28 +02:00
4c0de51d2a
set_as_str() now also works for sets of non-string data.
...
Also not doubly-sorting any more.
2017-04-05 12:32:33 +02:00
46469f384a
Set up logging when running from CLI.
...
Logging is sent to stderr, so it shouldn't interfere with external
programs expecting output on stdout.
2017-04-05 12:31:16 +02:00
420f146067
Removed unused code
...
At the bottom of the file, an exception is raised when __name__ ==
'__main__', stating that it's not allowed to run the file in that way.
It's silly to then still set up logging in that case.
2017-04-05 12:30:35 +02:00
9524c88b32
Added some type annotations to aid debugging.
2017-04-05 12:29:45 +02:00
a6c32b25e5
Added BlendFile.__repr__() to show more useful info than memory pointer
2017-04-05 12:28:31 +02:00
a5d5ede1fd
Bumped version to 1.1.2
2017-03-07 16:09:21 +01:00
8e8a91cd89
Fixed T50811: 'bam' command cannot import name 'main'
...
The 'bam' CLI command entry point was pointing to the wrong module. This is
now fixed.
2017-03-07 16:06:43 +01:00
d74e4d0604
Bumped version to 1.1.1
2017-01-17 17:23:55 +01:00
b035757d3b
Fix: fail to move lib blend files to the destination dir when mode=FILE
2017-01-17 17:02:05 +01:00
94253975ca
Cleaner way to use os.makedirs()
...
It's not necessary to do an os.path.exists(dst_dir) check before calling
os.makedirs(), the exist_ok=True parameter is meant for this common
pattern.
2017-01-17 17:01:37 +01:00
9e8f95114c
Added some type annotations
2017-01-17 17:00:49 +01:00
e4e94f077f
Fixed bad import
2017-01-17 17:00:40 +01:00
8fa58458f5
Bumped version to 1.1
2017-01-17 16:21:02 +01:00
fa696bd61b
Documented the way we bundle BAM with Blender
2017-01-17 16:19:01 +01:00
e41f3268ca
Support calling BAM pack via 'python -m bam.pack'.
...
This allows us to run "setup.py bdist_wheel", put the wheel on the
PYTHONPATH, and run BAM pack without having to install it on a virtualenv.
The main purpose is to be able to ship this wheel with Blender. Updating
Blender's version of BAM thus requires only putting in a new wheel file,
rather than the old error-prone approach of copy-and-edit.
2017-01-17 16:09:43 +01:00
6ae95c5604
Ignore /build and /dist dirs
2017-01-17 16:07:58 +01:00
5e5a9e37f1
Report fp_blend with %r formatting, just like all other reported paths.
2017-01-17 16:07:48 +01:00
e286f472b4
Made bam.utils and bam.blend proper packages.
...
Without __init__.py those are namespaces, not packages, which can be merged
with the same namespaces that are defined on different places in sys.path.
This is flexibility we don't need.
2017-01-17 16:07:30 +01:00
abb22c0940
Don't import bam in setup.py
...
This is a bad idea, since it requires bam to be installable even before
running setup.py. Furthermore, it requires bam to be importable before
being installed, which is also a bad idea.
2017-01-17 16:06:27 +01:00
a8fcf6d486
Removed unused imports
2017-01-17 16:04:48 +01:00
a45ce8c114
Removed superfluous forwarding of sys.argv
2017-01-17 16:04:13 +01:00
89fe6be951
Fix (unreported) temp dir not being removed by bam pack -m FILE.
2016-12-14 14:18:17 +01:00
b75b744032
Fix T50244: bam pack with -m FILE fails on copying deeper hierachies because of missing destination folders.
...
As suggested by reporter, check for existing dst dir and use os.makedirs
first if missing.
2016-12-14 14:16:04 +01:00