-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
32 lines (26 loc) · 1.02 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
import os
from setuptools import setup, find_packages
with open("requirements.txt", "r") as f:
reqs = [line.rstrip("\n") for line in f if line != "\n"]
# def get_version():
# """get the package version from __init__.py
# modified from this source: https://packaging.python.org/guides/single-sourcing-package-version/
# """
# package_dir = os.path.abspath(os.path.dirname(__file__))
# with open(os.path.join(package_dir, "kofee", "__init__.py"), "r") as f:
# for line in f.readlines():
# if line.startswith('__version__'):
# delim = '"' if '"' in line else "'"
# return line.split(delim)[1]
# raise RuntimeError("Package version not found!")
setup(
name='koffee',
#version=get_version(),
#packages=find_packages(),
install_requires=reqs,
#url='https://github.com/syasini/kofee',
license='MIT',
author='Siavash Yasini',
author_email='siavash.yasini@gmail.com',
description='an awesome coffee quality exploration app'
)