A search engine for MMP's eASLRB.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
asl-rulebook2/setup.py

47 lines
1.5 KiB

""" Setup the package.
Install this module in development mode to get the tests to work:
pip install --editable .[dev]
"""
import os
from setuptools import setup, find_packages
# ---------------------------------------------------------------------
# NOTE: We break the requirements out into separate files so that we can load them early
# into a Docker image, where they can be cached, instead of having to re-install them every time.
def parse_requirements( fname ):
"""Parse a requirements file."""
lines = []
fname = os.path.join( os.path.dirname(__file__), fname )
with open( fname, "r", encoding="utf-8" ) as fp:
for line in fp:
line = line.strip()
if line == "" or line.startswith("#"):
continue
lines.append( line )
return lines
# ---------------------------------------------------------------------
setup(
name = "asl_rulebook2",
version = "0.3", # nb: also update constants.py
description = "Search engine for the eASLRB.",
license = "AGPLv3",
url = "https://code.pacman-ghost.com/public/asl-rulebook2",
packages = find_packages(),
install_requires = parse_requirements( "requirements.txt" ),
extras_require = {
"dev": parse_requirements( "requirements-dev.txt" ),
},
include_package_data = True,
data_files = [
( "asl-rulebook2", ["LICENSE.txt"] ),
],
entry_points = {
"console_scripts": "asl-rulebook2 = asl_rulebook2.webapp.run_server:main",
}
)