question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make PyYAML a strict dependency of astropy

See original GitHub issue

Description

The yaml library (provided by PyYAML) is central to the serialization functionality used for losslessly storing Table data to ECSV, FITS and HDF5 formats. The ECSV format in particular is seeing fairly wide usage, and is now supported in the StarLink java library STIL and TOPCAT. To this point we have accepted having yaml as an optional dependency, but this means that it cannot be used in any required parts of astropy.

A recent example was to improve the storage of cosmological model parameters. This would nicely be done as an ECSV table, but the yaml dependence was a stopper.

While we do not intend to go down a slippery slope of adding many dependencies, it seems like yaml is justified and would enable future enhancements to astropy core using ECSV or YAML-based storage of data within the package itself.

From the Python packaging perspective this is a small package and should not measurably change the package footprint for a typical astropy installation.

Additional context

#11570

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
taldcroftcommented, Apr 23, 2021

@pllim - OK, maybe I got over-excited… I guess 5.0 would make sense.

0reactions
embraycommented, Apr 26, 2021

👍 Also PyYAML is pretty commonly installed as a dependency of other packages.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation — Astropy v5.2
If you want to make sure none of your existing dependencies get upgraded, ... astropy has the following strict requirements: ... PyYAML >=3.13...
Read more >
PyYAML requires python-dev dependency #2290 - GitHub
Hi, It seems the latest release of awscli requires PyYAML as its dependency. I noticed that this dependency breaks my CI test in...
Read more >
Installation — Astropy v1.0.4
Astropy has the following strict requirements: Python 2.6 (>=2.6.5), 2.7, 3.3, or 3.4 ... Astropy will import even if these dependencies are not...
Read more >
PyYAML Documentation
PyYAML is a YAML parser and emitter for Python. Installation. Simple install: pip install pyyaml. To install from source, download the source package...
Read more >
[PATCH]: Gnu add astropy - Guix issue tracker
My attempt to make Astropy test working failed as well. the project. heavily depends on TOX which requires pip to install missing. dependencies...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found