forked from reingart/pyafipws
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
43 lines (34 loc) · 1.22 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
all: .venv install test
.venv:
virtualenv -p python3 .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/pip install -r requirements-dev.txt
install:
.venv/bin/python setup.py install
test:
.venv/bin/py.test tests
clean:
rm -Rf .venv
# Works with bash and linux
# This command first copies all the configuration settings from the conf folder
# to the main folder and next it downloads test key and digital certificate that
# that can be used for testing and lastly the python module is used to decompress
# the files
get-auth:
cp conf/*.ini .
curl -o reingart.zip https://www.sistemasagiles.com.ar/soft/pyafipws/reingart.zip
python -m zipfile -e reingart.zip .
access-ticket:
python -m pyafipws.wsaa
sample-invoice:
python -m pyafipws.wsfev1 --prueba
# Use "git clean -n" to see the files to be cleaned
# Use only when only the config files are untracked
# Finally use "git clean -f" to remove untracked files(in this case test files)
# This command will list all the files that are untracked. You can clean them verbosely
# using git clean -i. Else, if you are sure, you can se -f to remove all untracked files
# without a prompt
clean-test:
git clean -n
git clean -i
.PHONY: install test get-auth sample-invoice sign-cert