There are several different ways to install the
asdf package. Each is
described in detail below.
Support for units, time, and transform tags requires an implementation of these types. One recommended option is the astropy package.
Installing with pip¶
Stable releases of the ASDF Python package are registered at
PyPi. The latest stable version
can be installed using
$ pip install asdf
Installing with conda¶
asdf within an existing conda environment:
$ conda install -c conda-forge asdf
To create a new conda environment and install
$ conda create -n new-env-name -c conda-forge python asdf
Building from source¶
The latest development version of ASDF is available from the
on github. To clone the project:
$ git clone https://github.com/asdf-format/asdf
$ cd asdf $ pip install .
To install in development mode:
$ pip install -e .
Running the tests¶
To install the test dependencies from a source checkout of the repository:
$ pip install -e ".[tests]"
To run the unit tests from a source checkout of the repository:
It is also possible to run the test suite from an installed version of the package.
$ pip install "asdf[tests]" $ pytest --pyargs asdf
It is also possible to run the tests using tox.
$ pip install tox
To list all available environments:
$ tox -va
To run a specific environment:
$ tox -e <envname>