Podshot / Amulet-Core

A new Minecraft world editor that aims to be flexible, extendable, and support most editions of Minecraft

Home Page:https://www.amulet-editor.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Amulet Core

Stylechecking Documentation Builds
CircleCI Documentation Status Build Status

The core library that provides functionality for the Amulet Map Editor

Looking for the actual editor? That code has moved and is located at here

Requirements

Running from Source

In order to develop with and run Amulet Core unittests from source, you will need to install the following packages and follow the steps to install below:

The steps below will install everything needed for Amulet (Instructions for installing Python 3.7 provided when available)

Note: Make sure to install the venv module if it does not come pre-installed with python

Note: These instructions are for those who are wishing to develop Amulet-Core, not for those who just want to run Amulet Editor

  1. Clone the project using git clone https://github.com/Amulet-Team/Amulet-Core
  2. Change the working directory to be the directory created when cloning (Ex: cd Amulet-Core)
  3. Set up a python virtual environment (run the following commands for your OS in your terminal/command prompt)
    1. Windows
      1. Create the virtual environment: python -m venv ENV
      2. Activate the environment: .\ENV\scripts\activate.bat
    2. OS X
      1. Create the virtual environment: python3.7 -m venv ENV
        • Depending on how you installed python 3.7, this might instead be: py -3.7 -m venv ENV
      2. Activate the environment: source ./ENV/bin/activate
    3. Linux
      1. Install python 3.7 if it's not already installed (run the following commands in your terminal of choice. These are for Debain based distros, use your distros package manager or refer to #54 (comment) if you need to build Python 3.7 from source)
        1. sudo apt-get update (Optional)
        2. sudo apt-get install python-3.7
        3. Verify that python 3.7 was successfully installed: python3.7 --version
      2. Set up a python virtual environment (also run the following commands in the terminal)
        1. Create the virtual environment: python3.7 -m venv ENV
        2. Activate the environment: source ./ENV/bin/activate
  4. Ensure that the virtual environment activated correctly by using the command python -V (Output should be Python 3.7.0 or any version number above)
  5. Ensure pip is up-to-date by running the following command: python -m pip install --upgrade pip
  6. Install the requirements using pip install -r requirements.txt
  7. To format your files automatically before committing changes, use pre-commit install

For Development

Follow all of the step above for running from source, then install the following packages:

Shortcut: pip install -r requirements-dev.txt (This also installs the requirements required for running from source)

For information about contributing to this project, please see the contribution section below

Documentation

Our online documentation can be found here: https://amulet-core.readthedocs.io/en/latest/

Building the Documentation

To build the documentation locally, run the following command: make html and then navigate to the generated directory docs_build/html in your favorite web browser

Contributing

Branch Naming

Branches should be created when a certain bug or feature may take multiple attempts to fix. Naming them should follow the following convention (even for forked repositories when a pull request is being made):

  • For features, use: impl-<feature name>
  • For bug fixes, use: bug-<bug tracker ID>
  • For improvements/rewrites, use: improv-<feature name>
  • For prototyping, use: proto-<feature name>

Code Formatting

For code formatting, we use the formatting utility black. To run it on a file, run the following command from your favorite terminal after installing: black <path to file>

While formatting is not strictly required for each commit, we ask that after you've finished your code changes for your Pull Request to run it on every changed file.

Pull Requests

We ask that submitted Pull Requests give moderately detailed notes about the changes and explain any changes that were made to the program outside of those directly related to the feature/bug-fix. Please make sure to run all tests and include a written verification that all tests have passed.

Note: We will also re-run all tests before reviewing, this is to mitigate additional changes/commits needed to pass all tests.

Once a Pull Request is submitted, we will mark the request for review, once that is done, we will review the changes and provide any notes/things to change. Once all additional changes have been made, we will merge the request.

License

This software is available under the MIT license.

About

A new Minecraft world editor that aims to be flexible, extendable, and support most editions of Minecraft

https://www.amulet-editor.com/

License:MIT License


Languages

Language:Python 99.5%Language:Batchfile 0.3%Language:Makefile 0.2%