Create setup and add venv

master
Marko Semet 2020-03-17 14:06:24 +01:00
parent b88b260fef
commit 806a78be4d
4 changed files with 33 additions and 0 deletions

1
.gitignore vendored
View File

@ -129,3 +129,4 @@ dmypy.json
# Pyre type checker
.pyre/
/venv

View File

@ -1,2 +1,4 @@
# looplang
(Loop Language)
Language designed to write finit scripts

17
setup.py 100644
View File

@ -0,0 +1,17 @@
from setuptools import setup, find_packages
# Config
VERSION = "0.1"
# Setup
setup(name="looplang",
version=VERSION,
license="LGPLv3+",
description="Base language parser and interpreter for finit loop programs",
author="Marko Semet",
author_email="marko@marko10-000.de",
url="https://marko10-000.de/project/looplang",
packages=find_packages("looplang"),
install_requires=["ply>=3.0<4"]
)

13
venv.sh 100755
View File

@ -0,0 +1,13 @@
#! /usr/bin/bash
cd "$(dirname "$0")"
python3 -m venv venv &&
source venv/bin/activate &&
pip install --upgrade pip &&
pip install --upgrade . &&
if [ "$#" -gt 1 ]
then
exec "$@"
else
exec "$SHELL"
fi