Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

[DEPRECATED] PyAnsys Tools Versioning

This library is deprecated and will no longer be maintained. Please consider using alternatives. For more information check this issue.

PyAnsys Python PyPI GH-CI Codecov MIT Black pre-commit.ci status

Utilities for backwards and forwards server support.

How to install

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

For users

In order to install PyAnsys Tools Versioning, 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 pyansys-tools-versioning

For developers

Installing PyAnsys Tools Versioning 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 will need to follow these steps:

  1. Start by cloning this repository:

    git clone https://github.com/ansys/pyansys-tools-versioning
  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 -U pip flit tox
    python -m pip install -r requirements/requirements_build.txt
    python -m pip install -r requirements/requirements_doc.txt
    python -m pip install -r requirements/requirements_tests.txt
  4. Install the project in editable mode:

    python -m pip install --editable pyansys-tools-versioning
    1. Finally, verify your development installation by running:

    tox

How to testing

This project takes advantage of tox. This tool allows to automate common development tasks (similar to Makefile) but it is oriented towards Python development.

Using tox

As Makefile has rules, tox has environments. In fact, the tool creates its own virtual environment so anything being tested is isolated from the project in order to guarantee project’s integrity. The following environments commands are provided:

  • tox -e style: will check for coding style quality.

  • tox -e py: checks for unit tests.

  • tox -e py-coverage: checks for unit testing and code coverage.

  • tox -e doc: checks for documentation building process.

Raw 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

However, the recommended way of checking documentation integrity is using:

tox -e doc && your_browser_name .tox/doc_out/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 -r requirements/requirements_build.txt
python -m build
python -m twine check dist/*

Release files for pyansys-tools-versioning 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyansys-tools-versioning 0.7.0
File Size Uploaded
pyansys_tools_versioning-0.7.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyansys-tools-versioning 0.7.0
File Interpreter ABI Platform
pyansys_tools_versioning-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / pyansys_tools_versioning-0.7.0.tar.gz

Download URL pyansys_tools_versioning-0.7.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
66038ba785353df8bc0d935541ddca2b160019b0b5cb441aabcbf71ca27d00c0
BLAKE2b-256 checksum
How to use checksums
938cca69dad5bf92398bc671eeebe177bd4a7e7faeeb53386903e01f7a5898fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.14

Release files / pyansys_tools_versioning-0.7.0-py3-none-any.whl

Download URL pyansys_tools_versioning-0.7.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96149434d9bde99ffe4e14ec3ed6c471569e665c777db4755b8b3c5660c8bb1e
BLAKE2b-256 checksum
How to use checksums
20c03aa803f243f1f223f0238a95b7e88c3cdafd031682b18159b4d063f729ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page