desihub / desihub/desispec

don't use relative paths in pkg_resources

Open
#784 0 comments 0 reactions 0 assignees View on GitHub
cleanup
Dominant language
Python
Stars
42
Forks
26
Avg merge
1d 21h
Merged PRs (30d)
15

Description

From desispect.test.test_extract:
```
/Users/sbailey/anaconda3/envs/desitest/lib/python3.7/site-packages/pkg_resources/__init__.py:1145: DeprecationWarning: Use of .. or absolute path in a resource path is not allowed and will raise exceptions in a future release.
```
Let's find and fix this before a future upgrade breaks it on us.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with desispec.test.test_extract and reproduce the reported pkg_resources DeprecationWarning. Search the resource paths used by that test for relative or absolute components, then run the test again to confirm the warning is gone and the resource lookup still succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.