Skip to content

Commit

Permalink
conda package building
Browse files Browse the repository at this point in the history
black-complient version of verup
  • Loading branch information
andgineer committed Aug 13, 2021
1 parent 2422994 commit f5bc41c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build-conda.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
rm -r ./dist
mkdir dist
conda-build --output-folder dist -c conda-forge .
10 changes: 10 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: bombard
channels:
- defaults
- conda-forge
dependencies:
- python=3.9
- conda-build
- mypy
- pylint
- pytest
20 changes: 20 additions & 0 deletions meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% set setup = load_setup_py_data() %}

package:
name: bombard
version: {{ setup.get('version') }}

source:
path: .

build:
noarch: python
number: 0
script: python -m pip install --no-deps --ignore-installed .

requirements:
host:
- python
- pip
run:
- python
2 changes: 1 addition & 1 deletion verup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if ! [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then
fi

for file in ${VERSION_FILES[*]}; do
echo -e "VERSION = '$NEW_VERSION'" >$file
echo -e "VERSION = \"$NEW_VERSION\"" >$file
git add $file
done

Expand Down

0 comments on commit f5bc41c

Please sign in to comment.