Switched to setup.py (closes #2)

pull/15/head
Jef Roosens 2021-04-24 19:27:33 +02:00
parent 30bde36f6c
commit d6531fdde8
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
5 changed files with 26 additions and 14 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
__pycache__/ __pycache__/
.venv/ .venv/
backup_tool backup_tool
*.egg-info/

View File

@ -1,18 +1,19 @@
# =====CONFIG===== # =====CONFIG=====
# Devop environment runs in 3.8 # Devop environment runs in 3.8
PYTHON=python3.8 # TODO switch this to python3.6
PYTHON=python3.9
# =====RECIPES===== # =====RECIPES=====
.venv/bin/activate: requirements.txt requirements-dev.txt .venv/bin/activate: setup.py
'$(PYTHON)' -m venv .venv '$(PYTHON)' -m venv .venv
.venv/bin/pip install -r requirements.txt -r requirements-dev.txt .venv/bin/pip install -e .[dev]
venv: .venv/bin/activate venv: .venv/bin/activate
.PHONY: venv .PHONY: venv
format: venv format: venv
@ .venv/bin/black app/*.py app/**/*.py @ .venv/bin/black setup.py app/*.py app/**/*.py
.PHONY: format .PHONY: format
clean: clean:
@ -33,3 +34,4 @@ app: backup_tool
install: app install: app
cp backup_tool /usr/local/bin cp backup_tool /usr/local/bin
.PHONY: install

View File

@ -1,10 +0,0 @@
# Language server
jedi==0.18.0
# Linting & Formatting
black==20.8b1
flake8==3.8.4
# Testing
tox==3.21.1
pytest==6.2.1

19
setup.py 100644
View File

@ -0,0 +1,19 @@
from setuptools import setup
setup(
name="backup-tool",
version="0.1.0",
author="Jef Roosens",
description="A utility to simply backing up services.",
# TODO add license
packages=["app", "tests"],
extras_require={
"dev": [
"jedi==0.18.0",
"black==20.8b1",
"flake8==3.8.4",
"tox==3.21.1",
"pytest==6.2.1",
]
},
)