-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
38 lines (33 loc) · 1.05 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
import re
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt") as f:
reqs = f.read().splitlines()
with open("yahoofantasy/__init__.py", "r") as fd:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE
).group(1)
setuptools.setup(
name="yahoofantasy",
version=version,
author="Matt Dodge",
author_email="[email protected]",
description="An SDK for the Yahoo! Fantasy Sports API",
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=reqs,
url="https://github.com/mattdodge/yahoofantasy",
packages=setuptools.find_packages(),
setup_requires=["setuptools_scm"],
include_package_data=True,
entry_points="""
[console_scripts]
yahoofantasy=yahoofantasy.cli:yahoofantasy
""",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)