Give me an efficient workflow for developing packages in Julia?
- User
Give me an efficient workflow for developing packages in Julia?
Assistant
Sure, here are the steps for developing a package in Julia:
-
Create a new Julia package using the pkg.jl script.
-
Add the package to your julia project using the Julia package manager.
-
Add source files for your package to the project.
-
Create a test file for your package and add it to the project.
-
Use the Julia package manager to install the package dependencies.
-
Run the tests for your package.
-
- User
What is a typical structure for a julia package?
Assistant
A typical structure for a Julia package includes the following directories and files:
Project.toml: This file contains information about the package and its dependencies.
Manifest.toml: This file contains information about the package and its dependencies, including the specific versions of each package that are used.
project: This directory contains the source code for the package.
src: This directory contains the source code for the package's modules.
test: This directory contains test files for the package.
examples: This directory contains example scripts that demonstrate how to use the package.
LICENSE: This file contains the license for the package.
README.md: This file contains a description of the package and how to use it.
.gitignore: This file contains a list of files and directories that should be ignored by Git.
This is a basic structure, and you can add or remove directories as needed for your specific package.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.