Skip to content

New build system#36

Open
ryanketzner wants to merge 3 commits intomainfrom
package-dev
Open

New build system#36
ryanketzner wants to merge 3 commits intomainfrom
package-dev

Conversation

@ryanketzner
Copy link
Copy Markdown
Collaborator

Added new build system so package can be installed using only pip with a single pip install, with automatic dependency handling.

Modified:

  1. pyproject.toml: Added missing prereqs. Added new build type to seperate default and dev builds.
  2. eosimutils/spicekernels.py: Modified to change directory for spice kernels to ~. Necessary for conda install due to a limit on the length of the file path for some of the spice calls (conda makes very long paths).
  3. README.md: Docs update to describe new build process.

…able.

Modified:

	eosimutils/spicekernels.py: Modified to change directory for spice kernels to ~.
		Necessary for conda install.

	pyproject.toml: Fixed to add prereqs.

New:

	conda-recipe/meta.yaml: File needed for conda build.
… and added into dev.

Modified:

	README.md: Describe new pip install.

	pyproject.toml: Moved docs dependencies into dev build option.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates packaging and installation so eosimutils can be installed via pip with runtime dependencies handled automatically, and adjusts SPICE kernel storage to avoid long installation paths (notably in conda environments).

Changes:

  • Modernize pyproject.toml metadata and move runtime vs. dev tooling dependencies into core vs. optional dev extras.
  • Change SPICE kernel download/load directory to ~/.eosimutils_spice instead of a path under the installed package.
  • Update README installation instructions for the new pip-based workflow.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
pyproject.toml Defines build requirements, project metadata, runtime dependencies, and dev optional dependencies.
eosimutils/spicekernels.py Redirects kernel storage to the user home directory to reduce path length issues.
README.md Documents pip install flow and mentions dev install/tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
To install the development version, which includes the docs, tests, and code formatting tools, run:

```
pip install "[.dev]"
Comment on lines +28 to 31
kernel_dir = os.path.join(os.path.expanduser("~"), ".eosimutils_spice")
os.makedirs(
kernel_dir, exist_ok=True
) # do not create the directory if it already exists
Comment on lines +72 to +73
# kernel_dir = os.path.join(os.path.dirname(__file__), "spice_kernels")
kernel_dir = os.path.join(os.path.expanduser("~"), ".eosimutils_spice")
Comment thread README.md
Comment on lines +27 to 31
Unit tests for the project are run using:

```
make test
```
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