Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced compile scripts with mcprep-build #422

Merged
merged 33 commits into from
Jul 25, 2023

Commits on May 10, 2023

  1. Replaced compile scripts with mcprep-build

    (Saleman pitch time)
    mcprep-build is our new, state-of-the-art build system custom made for
    the MCprep project that's cross platform! Now we get less headaches
    from dealing with Bash and the Windows shell as this new build system is
    written in Python!
    
    Jokes aside, this new build system is much more maintainable then the
    old build system. I still need to add autopopulation, but it's 99% the
    same, minus fast mode.
    
    In the future I want to turn this into a general purpose
    bpy-addon-builder sorta thing, but let's not get ahead of ourselves.
    StandingPadAnimations committed May 10, 2023
    Configuration menu
    Copy the full SHA
    bcba39f View commit details
    Browse the repository at this point in the history
  2. Fixed issue with arguments in mcprep-build

    MCprep build had some issues with no arguments, so I went ahead and
    fixed it since it would be annoying if we could only make dev builds of
    MCprep
    StandingPadAnimations committed May 10, 2023
    Configuration menu
    Copy the full SHA
    193458a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0690e6a View commit details
    Browse the repository at this point in the history
  4. Updated CONTRIBUTING.md for mcprep-build

    This is to make the documentation consistant with the actual build
    system.
    StandingPadAnimations committed May 10, 2023
    Configuration menu
    Copy the full SHA
    a303cae View commit details
    Browse the repository at this point in the history

Commits on May 11, 2023

  1. Update CONTRIBUTING.md

    Co-authored-by: Patrick W. Crawford <theduckcow@live.com>
    StandingPadAnimations and TheDuckCow committed May 11, 2023
    Configuration menu
    Copy the full SHA
    3e2f5a5 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2023

  1. Fixed paths and removed redundent moves

    As suggested, I've added a SCRIPT_PATH variable to represent the path of
    the mcprep-build script, just to make sure that all future paths are
    correct. In addition, I've also removed the ADDON_DIRECTORY variable on
    line 88 since it's incorrect logic (we're trying to zip a folder that
    shouldn't exist)
    StandingPadAnimations committed May 12, 2023
    Configuration menu
    Copy the full SHA
    419d706 View commit details
    Browse the repository at this point in the history
  2. Added flake8 to dependencies

    We'll be using flake8 in MCprep build to perform PEP8 code checks to
    make sure our code complies with PEP8 guidelines.
    StandingPadAnimations committed May 12, 2023
    Configuration menu
    Copy the full SHA
    f475012 View commit details
    Browse the repository at this point in the history
  3. Added flake8 check

    This is so we get PEP8 errors at compile time
    
    God I love PEP8 but we got an ungodly amount of errors, and that's
    ignoring W191 (Tabs instead of Spaces)
    StandingPadAnimations committed May 12, 2023
    Configuration menu
    Copy the full SHA
    98a5bcb View commit details
    Browse the repository at this point in the history
  4. Fixed destination folder issue and formatting

    Originally the build script unzipped to the paths in
    blender_installs.txt directly, but that was incorrect logic and ended
    with the addons folder being polluted. This was an easy fix and I'm not
    sure how it slipped from my mind.
    
    In addition, I ran flake8 and fixed some formatting issues in the
    builder.
    StandingPadAnimations committed May 12, 2023
    Configuration menu
    Copy the full SHA
    b31ab8a View commit details
    Browse the repository at this point in the history

Commits on May 14, 2023

  1. Added bpy-build.yaml for bpy-build

    bpy-build is a better version of mcprep-build that I'm working on. It's
    more general purpose but has far better configuration. bpy-build does
    work on the MCprep repo, I just need to finish some shortcommings
    StandingPadAnimations committed May 14, 2023
    Configuration menu
    Copy the full SHA
    79e5c7d View commit details
    Browse the repository at this point in the history
  2. Added the during_build part to bpy-build.yaml

    bpy-build now supports adding files during a build, which means we can
    now use bpy-build instead of mcprep-build (if we choose to do so).
    StandingPadAnimations committed May 14, 2023
    Configuration menu
    Copy the full SHA
    b82549e View commit details
    Browse the repository at this point in the history

Commits on May 15, 2023

  1. Moving from mcprep-build to bpy-addon-build

    bpy-addon-build is the better version of mcprep-build (the former being
    based off the latter) and will be maintained better, so it makes no
    sense having a seperate build system.
    
    bpy-addon-build has the following advantages:
    	- YAML config
    	- Auto-installation without blender_installs.txt
    	- Ability to define actions and run them in specific cases
    	- Better terminal output
    	- Better argument handling
    StandingPadAnimations committed May 15, 2023
    Configuration menu
    Copy the full SHA
    71e7e08 View commit details
    Browse the repository at this point in the history
  2. Added flake8 check by default

    Flake8 is important for formatting checks so I've added it as a default
    action to be executed during the build process
    StandingPadAnimations committed May 15, 2023
    Configuration menu
    Copy the full SHA
    2bd8b60 View commit details
    Browse the repository at this point in the history
  3. Updated bpy-addon-build version

    bpy-addon-build was updated to better handle missing YAML config
    options, so this update is necesary
    StandingPadAnimations committed May 15, 2023
    Configuration menu
    Copy the full SHA
    2ad1f1b View commit details
    Browse the repository at this point in the history
  4. Updated bpy-addon-build version again

    This version removes a debug statement...
    
    Maybe I should make a proper test suite
    StandingPadAnimations committed May 15, 2023
    Configuration menu
    Copy the full SHA
    24b62a0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bd0a9cd View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2b7dd04 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3757350 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    09b645f View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. Configuration menu
    Copy the full SHA
    c648fd8 View commit details
    Browse the repository at this point in the history
  2. Removed bv28 call

    Sorry for the large diff, that's just my formatter being annoying
    StandingPadAnimations committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    6ea6825 View commit details
    Browse the repository at this point in the history
  3. Revert "Removed bv28 call"

    This reverts commit 99ebce8.
    
    Currently we're still deciding on Black, so I'm reverting this for now
    StandingPadAnimations committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    81d2bd6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2783954 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2023

  1. Added use of __slots__ for PrepOptions

    PrepOptions is a dataclass that has a static set of options; no new
    options can be added at runtime. Since that's a gurantee about the
    class, we can use `__slots__` to make sure that typos in field names
    generate an error. In addition, `__slots__` has a performance and memory
    benefit, but that's minor compared to the development improvement that
    would be gained.
    
    Due to Blender 2.8 using Python 3.7, we have to manually add the slots
    ourselves in the class definition. Hopefully in a future MCprep release
    we can remove this manual declaration and use the `slots` option in the
    dataclass decorator.
    StandingPadAnimations committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    b934bc4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7f6b900 View commit details
    Browse the repository at this point in the history
  3. Replaced compile scripts with mcprep-build

    (Saleman pitch time)
    mcprep-build is our new, state-of-the-art build system custom made for
    the MCprep project that's cross platform! Now we get less headaches
    from dealing with Bash and the Windows shell as this new build system is
    written in Python!
    
    Jokes aside, this new build system is much more maintainable then the
    old build system. I still need to add autopopulation, but it's 99% the
    same, minus fast mode.
    
    In the future I want to turn this into a general purpose
    bpy-addon-builder sorta thing, but let's not get ahead of ourselves.
    StandingPadAnimations committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    6b3b298 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Added all supported versions to bpy-build file

    Co-authored-by: Patrick W. Crawford <theduckcow@live.com>
    StandingPadAnimations and TheDuckCow committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    e915ecd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c000a0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cc9158d View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2023

  1. Configuration menu
    Copy the full SHA
    d292559 View commit details
    Browse the repository at this point in the history
  2. Disabling flake8 in the build script.

    Having issues where it's not providing the intended result, still
    showing W191. Plus, Blender operator properties are not defined using
    a syntax that lint checkers can parse, creating a lot of noise. We'll
    need to rethink how to adopt this in the future.
    TheDuckCow committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    b8518f1 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. Configuration menu
    Copy the full SHA
    483f6e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    456b3f9 View commit details
    Browse the repository at this point in the history