-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (31 loc) · 982 Bytes
/
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
import os
from setuptools import setup, find_packages
package_name = 'crosslinking_bot'
version_file = 'version.py'
def get_version(package_name=package_name, filename=version_file):
"""Retrieve version from package_name/filename
Assumes that version is the only line in the file,
and it's a module-level declaration following
the format of `__version__ = 'x.y.z'`
"""
version_path = os.path.join(package_name, version_file)
return open(version_path).read().split('=')[-1].strip(' \'"\n')
setup(
name='hn_crosslinking_bot',
url='https://github.com/liviu-/crosslink-ml-hn',
version=get_version(),
packages=find_packages(),
entry_points={
'console_scripts': [
'crosslinking_bot = crosslinking_bot.crosslinking_bot:run_bot'
]
},
install_requires=[
'praw',
'requests',
'pyyaml',
'urltools'
],
license='MIT',
long_description=open('README.md').read(),
)