Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add data CSVs to package_data #270

Merged
merged 1 commit into from
Apr 26, 2021
Merged

Conversation

danielolsen
Copy link
Contributor

Purpose

Copy data CSVs when package is installed via setup.py. This will allow the files to be accessed automatically, no matter how the package is installed, via code like:

import inspect
import os
import postreise
postreise_data = os.path.join(os.path.dirname(inspect.getfile(postreise)), "data")

Time estimate

2 minutes.

@danielolsen danielolsen self-assigned this Apr 23, 2021
Copy link
Collaborator

@BainanXia BainanXia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants