Add makefile
This commit is contained in:
parent
23bd892ca1
commit
ce931ab4cf
4
.env.example
Normal file
4
.env.example
Normal file
|
@ -0,0 +1,4 @@
|
|||
API_KEY="1234567890"
|
||||
REPO="User/Project"
|
||||
DOMAIN="example.com"
|
||||
TYPE="Software"
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
env
|
||||
__pycache__
|
||||
__pycache__
|
||||
.env
|
17
Makefile
Normal file
17
Makefile
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!make
|
||||
include .env
|
||||
export $(shell sed 's/=.*//' .env)
|
||||
VENVDIR=env
|
||||
VENVPYTHON=${VENVDIR}/bin/python
|
||||
MODULENAME=semrel
|
||||
|
||||
venv:
|
||||
python3 -m venv $(VENVDIR)
|
||||
$(VENVPYTHON) -m pip install -r requrements.txt
|
||||
@echo "Enter the venv:"
|
||||
@echo "Bash/Zsh: source $(VENVDIR)/bin/activate"
|
||||
@echo "Fish: source $(VENVDIR)/bin/activate.fish"
|
||||
@echo "PowerShell: $(VENVDIR)/bin/activate.ps1"
|
||||
@echo "CMD: $(VENVDIR)/bin/activate.bat"
|
||||
run:
|
||||
$(VENVPYTHON) -m $(MODULENAME) -d $(DOMAIN) -t $(TYPE) -r $(REPO) -k $(API_KEY)
|
Loading…
Reference in a new issue