-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build the application's docker image 🐳 (#14)
Run "nix-build" or "nix-build -A docker" to build a docker image. Run "nix-build -A app" to build Poretitioner locally without Docker. #14
- Loading branch information
1 parent
a2f9144
commit 4f15406
Showing
11 changed files
with
204 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,3 @@ jobs: | |
with: | ||
name: poretitioner_for_docker | ||
path: /tmp/artifacts/poretitioner_docker.tar.gz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,7 +140,6 @@ configure_nix_env_if_necessary () { | |
source $fn | ||
fi | ||
added=1 | ||
break | ||
fi | ||
done | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
########################################################################################### | ||
# | ||
# dependencies.nix | ||
# | ||
########################################################################################### | ||
# | ||
# This Nix expression hosts the project's dependencies. There are three sections: | ||
# | ||
# run - Anything that needs to be available at runtime (e.g. you need to import it in python). | ||
# | ||
# build - Packages you don't want packaged in the final build, but still need to build | ||
# the project (e.g. pre-commit hooks linters) | ||
# | ||
# test - Test-only dependencies (e.g code coverage packages) | ||
# | ||
# It takes in Nixpkgs and the Python package corresponding to a Python version. | ||
# | ||
########################################################################################### | ||
|
||
|
||
{ pkgs, python, lib ? pkgs.lib, stdenv ? pkgs.stdenv }: | ||
let precommit = (import ./pkgs/pre-commit/pre-commit.nix) { inherit python; }; | ||
in | ||
with python.pkgs; rec { | ||
|
||
########################################################################################### | ||
# | ||
# run - This list hosts the project's runtime dependencies (basically, anything you | ||
# need to explicitly import in Python) | ||
# | ||
########################################################################################### | ||
|
||
run = [ | ||
# Numerical computation library | ||
numpy | ||
# Data manipulation and analysis | ||
pandas | ||
# Hierarchical Data Format utilities | ||
h5py | ||
# Parallel computing library | ||
dask | ||
# Charts and plotting library | ||
matplotlib | ||
# Data visualization | ||
seaborn | ||
# Interactive computing | ||
notebook | ||
# For interactive builds | ||
jupyter | ||
] ++ lib.optional (stdenv.isLinux) pkgs.qt5.full; # Needed for certain graphical packages like matplotlib. | ||
|
||
########################################################################################### | ||
# | ||
# build - This list hosts dependencies that shouldn't be packaged for distribution, | ||
# but are still needed for developers. This includes testing frameworks, as well as | ||
# tools like linters, git hooks, and static analyzers. | ||
# | ||
########################################################################################### | ||
|
||
build = [ | ||
# Git hooks | ||
precommit | ||
# Import sorter | ||
isort | ||
# Highly opinionated code-formatter | ||
black | ||
# Style-guide enforcer | ||
flake8 | ||
# Docstring static analyzer | ||
pydocstyle | ||
]; | ||
|
||
|
||
########################################################################################### | ||
# | ||
# test- This list hosts the project's test-only dependencies (e.g. test runners). | ||
# It should not include any packages that aren't part of the testing infrastructure. | ||
# | ||
########################################################################################### | ||
|
||
test = [ | ||
# Testing suite | ||
pytest | ||
# Test runner | ||
pytestrunner | ||
# Test code coverage generator | ||
pytestcov | ||
]; | ||
|
||
########################################################################################### | ||
# | ||
# all - A list containing all of the above packages. | ||
# | ||
########################################################################################### | ||
|
||
all = run ++ test ++ build; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters