Skip to content

Commit

Permalink
update build flow
Browse files Browse the repository at this point in the history
  • Loading branch information
curtisma committed Mar 6, 2024
1 parent cc3f8f0 commit 3e58964
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Taskfile.yml
scripts/release

rds

# SKILL
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ install-dev:
pip install --no-deps -e .

build:
exec build.sh
exec scripts/build

release:
make clean
Expand Down
19 changes: 12 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies = [
"typer >= 0.6.1, < 1.0.0",
"rich >= 12.5.1, < 13.0.0",
"pluggy >= 1.0.0, < 2.0.0",
"toml == 0.10.2",
]
authors = [
{name="Curtis Mayberry", email="[email protected]"},
Expand Down Expand Up @@ -59,13 +60,17 @@ name = "virtue"

[project.optional-dependencies]
optional = ["softworks", "skillbridge"]
test = [
"pytest >=7.1.2",
"pylint >= 2.14.4",
"mypy >= 0.961",
]
dev = ["pre-commit == 2.20.0"]
doc = [
dev = [
"pre-commit == 2.20.0",
# Build
"flit == 3.7.1",
"pip == 22.2.2",
"pyinstaller == 5.11.0",
# Testing
"pytest >=7.1.2",
"pylint >= 2.14.4",
"mypy >= 0.961",
# Docs
"sphinx == 4.5.0",
"pydata-sphinx-theme == 0.9.0",
"sphinx-panels == 0.6.0",
Expand Down
2 changes: 2 additions & 0 deletions build.sh → scripts/build
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
set -e

VERSION=$(virtue --version)
DIST_PATH="dist/$VERSION"
echo "Building IDS-skill"
Expand Down
8 changes: 8 additions & 0 deletions scripts/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# (Re)Setup a new development environment
rm -rf ./.venv
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/rds/prod/tools/python/3.10.7/lib
/rds/prod/tools/python/3.10.7/bin/python3 -m venv .venv
source .venv/bin/activate
pip install -e .[dev]

0 comments on commit 3e58964

Please sign in to comment.