Skip to content

Collection of experimental utilities to modify existing MSTS/ORTS track shapes.

License

Notifications You must be signed in to change notification settings

pgroenbaek/trackshape-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trackshape-utils

Python 3.6+ License GNU GPL v3

Collection of experimental utilities to modify existing MSTS/ORTS track shapes. Things are subject to change and might not work as expected all the time.

Installation

Install from source:

git clone https://github.com/pgroenbaek/trackshape-utils.git
cd trackshape-utils
pip install --upgrade .

Usage

Import and use the package in your Python code:

import trackshapeutils as tsu

result = tsu.some_function()
print(result)

Running Tests

You can run tests manually or use tox to test across multiple Python versions.

Run Tests Manually

First, install the required dependencies:

pip install pytest

Then, run tests with:

pytest

Run Tests with tox

tox allows you to test across multiple Python environments.

1. Install tox

pip install tox

2. Run Tests

tox

This will execute tests in all specified Python versions.

3. tox.ini Configuration

The tox.ini file should be in your project root:

[tox]
envlist = py36, py37, py38, py39, py310

[testenv]
deps = pytest
commands = pytest

Modify envlist to match the Python versions you want to support.

License

This project was created by Peter Grønbæk Andersen and is licensed under GNU GPL v3.

About

Collection of experimental utilities to modify existing MSTS/ORTS track shapes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages