-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (26 loc) · 1.04 KB
/
setup.py
File metadata and controls
28 lines (26 loc) · 1.04 KB
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
from setuptools import setup, find_packages
import os
def parse_requirements(filename):
"""Load requirements from a pip requirements file."""
here = os.path.abspath(os.path.dirname(__file__))
file_path = os.path.join(here, filename)
lineiter = (line.strip() for line in open(file_path))
return [line for line in lineiter if line and not line.startswith("#") and "pytest" not in line]
setup(
name="cosbos",
version="1.0.1",
description="COlor-Sensor-Based Occupancy Sensing",
long_description=open(os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.md")).read(),
long_description_content_type="text/markdown",
author="Quan Wang",
url="https://github.com/wq2012/COSBOS",
package_dir={"": "python"},
packages=find_packages(where="python"),
install_requires=parse_requirements("requirements.txt"),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
)