-
-
Notifications
You must be signed in to change notification settings - Fork 100
/
setup.py
30 lines (27 loc) · 1022 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
import setuptools
from distutils.util import convert_path
# https://stackoverflow.com/questions/2058802/how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package
main_ns = {}
ver_path = convert_path("statsapi/version.py")
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="MLB-StatsAPI",
version=main_ns["VERSION"],
author="Todd Roberts",
author_email="[email protected]",
description="MLB Stats API Wrapper for Python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/toddrob99/MLB-StatsAPI",
packages=setuptools.find_packages(),
install_requires=["requests"],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
)