Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a24cb7b

Browse files
committed
Move figure_factory module to separate distribution package
1 parent 1a76d05 commit a24cb7b

25 files changed

+46
-1
lines changed

plotly-figurefactory-package/README.md

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://packaging.python.org/guides/packaging-namespace-packages/
2+
# pkgutil-style-namespace-packages
3+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

plotly-figurefactory-package/setup.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
from setuptools import setup
2+
3+
4+
def readme():
5+
with open("README.md") as f:
6+
return f.read()
7+
8+
9+
setup(
10+
name="plotly-figure-factory",
11+
version="1.0.0a1",
12+
author="Chris P",
13+
author_email="[email protected]",
14+
maintainer="Jon Mease",
15+
maintainer_email="[email protected]",
16+
url="https://plot.ly/python/",
17+
project_urls={"Github": "https://github.com/plotly/plotly.py"},
18+
description="An open-source, interactive graphing library for Python",
19+
long_description=readme(),
20+
long_description_content_type="text/markdown",
21+
classifiers=[
22+
"Development Status :: 5 - Production/Stable",
23+
"Programming Language :: Python :: 2",
24+
"Programming Language :: Python :: 2.7",
25+
"Programming Language :: Python :: 3",
26+
"Programming Language :: Python :: 3.3",
27+
"Programming Language :: Python :: 3.4",
28+
"Programming Language :: Python :: 3.5",
29+
"Programming Language :: Python :: 3.6",
30+
"Programming Language :: Python :: 3.7",
31+
"Topic :: Scientific/Engineering :: Visualization",
32+
],
33+
license="MIT",
34+
packages=[
35+
"plotly.figure_factory",
36+
],
37+
install_requires=["plotly", "six"],
38+
zip_safe=False,
39+
)
File renamed without changes.

plotly-package/plotly/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@
2525
- exceptions: defines our custom exception classes
2626
2727
"""
28-
2928
from __future__ import absolute_import
3029

30+
# https://packaging.python.org/guides/packaging-namespace-packages/
31+
# pkgutil-style-namespace-packages
32+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
33+
3134
from plotly import (
3235
graph_objs,
3336
tools,

0 commit comments

Comments
 (0)