-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (37 loc) · 1.45 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
39
40
41
42
43
import setuptools
import codecs
import os
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
setuptools.setup(
name="pyftd",
packages=setuptools.find_packages(),
version=get_version("pyftd/__init__.py"),
license="GPL 3.0 https://www.gnu.org/licenses/gpl-3.0.txt",
description="pyftd",
author="Aaron K. Hackney",
author_email="[email protected]",
url="https://github.com/aaronhackney/pyftd",
download_url="",
# keywords=["afi", "top 100", "films", "movies", "all time", "american", "film", "institute"],
install_requires=["bravado >= 11.0.2", "bravado_core >= 5.17.0", "requests >= 2.25.1", "setuptools >= 51.1.2"],
# entry_points={"console_scripts": ["pyftd = pyftd.__main__:main"]},
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Utilities",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)