-
Notifications
You must be signed in to change notification settings - Fork 36
/
setup.py
54 lines (47 loc) · 1.88 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
# QUANTUMBLACK CONFIDENTIAL
#
# Copyright (c) 2016 - present QuantumBlack Visual Analytics Ltd. All
# Rights Reserved.
#
# NOTICE: All information contained herein is, and remains the property of
# QuantumBlack Visual Analytics Ltd. and its suppliers, if any. The
# intellectual and technical concepts contained herein are proprietary to
# QuantumBlack Visual Analytics Ltd. and its suppliers and may be covered
# by UK and Foreign Patents, patents in process, and are protected by trade
# secret or copyright law. Dissemination of this information or
# reproduction of this material is strictly forbidden unless prior written
# permission is obtained from QuantumBlack Visual Analytics Ltd.
import re
from os import path
from setuptools import find_packages, setup
name = "qbstyles"
here = path.abspath(path.dirname(__file__))
# get package version
with open(path.join(here, name, "__init__.py"), encoding="utf-8") as f:
version = re.search('__version__ = "([^\']+?)"', f.read()).group(1)
# get the dependencies and installs
with open("requirements.txt", "r", encoding="utf-8") as f:
requires = [x.strip() for x in f if x.strip()]
# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
readme = f.read()
setup(
name=name,
version=version,
description="QB styles for common plotting libraries",
long_description=readme,
long_description_content_type='text/markdown',
url="https://github.com/quantumblacklabs/qbstyles",
author="QuantumBlack Labs",
author_email="[email protected]",
python_requires=">=3.5",
packages=find_packages(),
include_package_data=True,
install_requires=requires,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
license="Apache 2.0",
)