mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-21 23:37:55 +00:00
37 lines
876 B
Python
37 lines
876 B
Python
#!/usr/bin/env python
|
|
import os
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
PROJECT_DIR = os.path.dirname(__file__)
|
|
REQUIREMENTS_DIR = os.path.join(PROJECT_DIR, "requirements")
|
|
VERSION = "1.0.0"
|
|
|
|
|
|
def get_requirements(env):
|
|
with open(os.path.join(REQUIREMENTS_DIR, f"{env}.txt")) as fp:
|
|
return [
|
|
x.strip()
|
|
for x in fp.read().split("\n")
|
|
if not x.strip().startswith("#") and not x.strip().startswith("-")
|
|
]
|
|
|
|
|
|
install_requires = get_requirements("base")
|
|
|
|
setup(
|
|
name="{{ cookiecutter.project_slug }}",
|
|
version=VERSION,
|
|
url="TODO",
|
|
author="TODO",
|
|
author_email="TODO",
|
|
license="TODO",
|
|
description="TODO",
|
|
long_description="TODO",
|
|
platforms=["linux"],
|
|
package_dir={"": "src"},
|
|
packages=find_packages("src"),
|
|
include_package_data=True,
|
|
install_requires=install_requires
|
|
)
|