forked from projectcaluma/alexandria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (34 loc) · 1.33 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"""Setuptools package definition."""
import os
from setuptools import find_packages, setup
version = {}
with open("alexandria/alexandria.py") as fp:
exec(fp.read(), version)
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
def deps_from_file(filename):
lines = [line.strip().split("#")[0] for line in open(filename).readlines()]
# filter out comment lines
return [line for line in lines if line and not line == "-r requirements-base.txt"]
dependencies = deps_from_file("requirements-base.txt") + deps_from_file(
"requirements-prod.txt"
)
setup(
name=version["__title__"],
version=version["__version__"],
description=version["__description__"],
long_description=long_description,
long_description_content_type="text/markdown",
author="projectcaluma",
url="https://github.com/projectcaluma/alexandria",
license="License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3.7",
],
packages=find_packages(),
install_requires=dependencies,
)