Skip to main content

Library to locate Ansys products in a local machine.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

PyAnsys Python PyPI GH-CI Codecov MIT Black

Library to locate Ansys products in a local machine.

How to install

At least two installation modes are provided: user and developer.

For users

In order to install ansys-tools-path, make sure you have the latest version of pip. To do so, run:

python -m pip install -U pip

Then, you can simply execute:

python -m pip install ansys-tools-path

For developers

Installing ansys-tools-path in developer mode allows you to modify the source and enhance it.

Before contributing to the project, please refer to the PyAnsys Developer’s guide. You need to follow these steps:

  1. Start by cloning this repository:

    git clone https://github.com/pyansys/ansys-tools-path
  2. Create a fresh-clean Python environment and activate it:

    # Create a virtual environment
    python -m venv .venv
    
    # Activate it in a POSIX system
    source .venv/bin/activate
    
    # Activate it in Windows CMD environment
    .venv\Scripts\activate.bat
    
    # Activate it in Windows Powershell
    .venv\Scripts\Activate.ps1
  3. Make sure you have the latest required build system and doc, testing, and CI tools:

    python -m pip install .[test]
    python -m pip install .[doc]
    python -m pip install .[build]
  4. Install the project in editable mode:

    python -m pip install --editable ansys-tools-path

How to testing

If required, you can always call the style commands (black, isort, flake8…) or unit testing ones (pytest) from the command line. However, this does not guarantee that your project is being tested in an isolated environment, which is the reason why tools like tox exist.

A note on pre-commit

The style checks take advantage of pre-commit. Developers are not forced but encouraged to install this tool via:

python -m pip install pre-commit && pre-commit install

Documentation

For building documentation, you can either run the usual rules provided in the Sphinx Makefile, such us:

make -C doc/ html && your_browser_name doc/html/index.html

Distributing

If you would like to create either source or wheel files, start by installing the building requirements and then executing the build module:

python -m pip install .[build]
python -m build
python -m twine check dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansys-tools-path-0.2.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansys_tools_path-0.2.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file ansys-tools-path-0.2.0.tar.gz.

File metadata

  • Download URL: ansys-tools-path-0.2.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for ansys-tools-path-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c1b665238879103259578c4059a5e025ab3cfd0c992279c414839e8c62affe62
MD5 8402012f984904068b020f8116ccc58a
BLAKE2b-256 46ddd9fe66e8c8f7d7ba30825ecbeca7c53449a2f6bba946475c706e726a5176

See more details on using hashes here.

File details

Details for the file ansys_tools_path-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_tools_path-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71af43474bf840a09fa10490f068efac6041789802b72146b254d6970b39017a
MD5 bd9ca0b99c82116c320598fb66d4202a
BLAKE2b-256 7333b2d54609ca4b82679e1dfe4b7c0765e5752fa63d2b49efe8f76d705b79ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page