This repository was archived by the owner on Jan 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (43 loc) · 1.27 KB
/
Makefile
File metadata and controls
59 lines (43 loc) · 1.27 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
V=$(shell git describe --tags --abbrev=0 | sed "s/v//")
PYPI_TEST_REPO=https://test.pypi.org/simple/
USERNAME='__token__'
PASSWORD='foo'
poetry.install:
poetry install
poetry.config.native:
poetry config virtualenvs.create false
poetry.config.venv:
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
poetry config virtualenvs.path .
bump.version:
poetry version $(V)
sed 's/=.*/= "$(V)"/' -i bb_wrapper/__init__.py
config.env:
cp .env.sample .env
test:
python -m unittest $(args)
fmt:
black .
make fmt.check
fmt.check:
black --check .
flake8
coverage:
coverage run -m unittest
coverage report
coverage xml
package.build: bump.version
poetry build
pypi.repo.test:
poetry config repositories.testpypi $(PYPI_TEST_REPO)
package.publish.test:
poetry publish -r testpypi -u $(USERNAME) -p $(PASSWORD)
package.publish:
poetry publish -u $(USERNAME) -p $(PASSWORD)
package.build_and_publish: package.build package.publish
install.test:
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ bb-wrapper==$(V)
config.certs.fake:
-mkdir certs
openssl req -subj '/CN=imobanco.com.br/O=Imobanco Pagamentos S.A./C=BR' -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout certs/key.pem -out certs/cert.pem