-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (58 loc) · 2.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Setup script
Make documentation with:
cd docs
make clean html
"""
# Source code meta data
__author__ = "Dalwar Hossain"
__email__ = "dalwar23@protonmail.com"
# Import python libraries
import sys
from setuptools import setup, find_packages
# Check if enough parameter has been given to install or not
if sys.argv[-1] == "setup.py":
print("To install, run 'python setup.py install'")
# Check python version before installing
if sys.version_info[:2] < (3, 6):
print("jetburn docs require Python3.6 or later!")
sys.exit(1)
# Get version and release for this package
package_name = "jetburn"
release_file = "version.py"
release_info = {}
with open(release_file, "rb") as rf:
exec(rf.read(), release_info)
# Read the README.md file for long description
def readme():
with open("README.rst") as f:
return f.read()
# Standard boilerplate to run this script
if __name__ == "__main__":
setup(
name=package_name,
version=release_info["__version__"],
author=release_info["__author__"],
author_email=release_info["__author_email__"],
description="Airline ticket explorer program",
keywords=["airline", "ticket"],
long_description=readme(),
license=release_info["__license__"],
platforms=["Linux", "Mac OSX", "Windows", "Unix"],
url="https://jetburn.rtfd.io",
download_url="",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
],
packages=find_packages(),
include_package_data=True,
install_requires=["sphinx", "recommonmark", "sphinx_rtd_theme", "Pygments", "sphinx-copybutton"],
zip_safe=False,
)