Library to locate Ansys products in a local machine.
Project description
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:
Start by cloning this repository:
git clone https://github.com/ansys/ansys-tools-path
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
Make sure you have the latest required build system and doc, testing, and CI tools:
python -m pip install .[tests] python -m pip install .[doc] python -m pip install .[build]
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ansys_tools_path-0.7.0.tar.gz
.
File metadata
- Download URL: ansys_tools_path-0.7.0.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96663cd13436e20f2ab2347aa6c487890962319c80bebc181419c957c19a8de0 |
|
MD5 | 396270521299dec8ea1f18778fc9fbfc |
|
BLAKE2b-256 | bf9fa22bfa6e3e1be7ae04c6f81e00ff409a914d93cb9a01e0a11064c24ded66 |
File details
Details for the file ansys_tools_path-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: ansys_tools_path-0.7.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 970596c1d9375498b97fa602c3f7e56435ca84e147743809b6a597667c654c57 |
|
MD5 | edb481130b1813c31ff5971166689e4c |
|
BLAKE2b-256 | 35fb5582e1c4a6318c3a60f1f07e6d8678d99bc41d4d925e627fc7e1dbd6e584 |