[skip ci] Move around files to src
This commit is contained in:
parent
ce99c3b36c
commit
ab1648b93d
|
@ -26,7 +26,7 @@ jobs:
|
||||||
tagging_message: "v${{ steps.update_data.outputs.version }}"
|
tagging_message: "v${{ steps.update_data.outputs.version }}"
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
run: |
|
run: |
|
||||||
pip install -r requirements.txt
|
pip install -r src/requirements.txt
|
||||||
make release "version=v${{ steps.update_data.outputs.version }}"
|
make release "version=v${{ steps.update_data.outputs.version }}"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
13
Makefile
13
Makefile
|
@ -1,14 +1,21 @@
|
||||||
SHELL=/bin/bash
|
SHELL=/bin/bash
|
||||||
version=`date +%Y.%-m.%-d`
|
version=`date +%Y.%-m.%-d`
|
||||||
|
|
||||||
# Build Process
|
.SILENT:
|
||||||
|
|
||||||
|
check:
|
||||||
|
for cmd in pup jq parallel curl sed;do \
|
||||||
|
command -v $$cmd >/dev/null 2>&1 || { echo >&2 "I require $$cmd but it's not installed. Aborting."; exit 1; }; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# Build Process
|
||||||
ISIN: INE INF IN9 IN0 IN1 IN2 IN3 IN4
|
ISIN: INE INF IN9 IN0 IN1 IN2 IN3 IN4
|
||||||
cat header.csv IN*.csv > ISIN.csv
|
cat header.csv IN*.csv > ISIN.csv
|
||||||
rm IN*.csv
|
rm IN*.csv
|
||||||
|
|
||||||
INE INF IN9 IN0 IN1 IN2 IN3 IN4:
|
INE INF IN9 IN0 IN1 IN2 IN3 IN4:
|
||||||
./fetch.sh $@
|
./src/fetch.sh $@
|
||||||
|
|
||||||
update: ISIN
|
update: ISIN
|
||||||
echo "::set-output name=version::$(version)"
|
echo "::set-output name=version::$(version)"
|
||||||
sed -i "s/^version.*/version: $(version)/" CITATION.cff
|
sed -i "s/^version.*/version: $(version)/" CITATION.cff
|
||||||
|
@ -24,7 +31,7 @@ old:
|
||||||
git show HEAD^:ISIN.csv > /tmp/ISIN.csv
|
git show HEAD^:ISIN.csv > /tmp/ISIN.csv
|
||||||
|
|
||||||
release.md: old
|
release.md: old
|
||||||
python3 diff.py > release.md
|
python3 src/diff.py > release.md
|
||||||
|
|
||||||
release: release.md
|
release: release.md
|
||||||
gh release create "$(version)" --notes-file release.md ISIN.csv
|
gh release create "$(version)" --notes-file release.md ISIN.csv
|
||||||
|
|
10
README.md
10
README.md
|
@ -188,7 +188,15 @@ ISIN|Payload|Check Digit|Validate
|
||||||
|
|
||||||
# Code
|
# Code
|
||||||
|
|
||||||
You can run the `fetch.sh` script to generate the tracked the files from scratch. Dependencies:
|
You can run the following to generate the `ISIN.csv` file from scratch:
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone https://github.com/captn3m0/india-isin-data.git
|
||||||
|
make check
|
||||||
|
make ISIN
|
||||||
|
```
|
||||||
|
|
||||||
|
## Dependencies:
|
||||||
|
|
||||||
- https://github.com/ericchiang/pup
|
- https://github.com/ericchiang/pup
|
||||||
- https://stedolan.github.io/jq/
|
- https://stedolan.github.io/jq/
|
||||||
|
|
|
@ -2,7 +2,7 @@ from csv_diff import load_csv, compare
|
||||||
import json
|
import json
|
||||||
from mako.template import Template
|
from mako.template import Template
|
||||||
|
|
||||||
template = Template(filename='release.mako')
|
template = Template(filename='src/release.mako')
|
||||||
|
|
||||||
added,removed,changed = [],[],[]
|
added,removed,changed = [],[],[]
|
||||||
|
|
Loading…
Reference in New Issue