Skip to content

Commit b0532b4

Browse files
author
Xing
authored
Improve setup.py: Fix utils import issues, and remove unneeded install_requires (#94)
* Add "Utils" subpackages to setup.py * Remove html and renderer from install_requires * Update Changelog to reflect setup.py changes * Correct changelog
1 parent 4cba5bc commit b0532b4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323
the node's and edge's dictionaries, respectively (e.g., 'classes', 'positions', etc.).
2424
* Removed `Tree`'s method `add_child`, because it is redundant with `add_children` called with an
2525
argument of length 1.
26+
* `setup.py`: Remove `dash-html-components` and `dash_renderer` from `install_requires`
27+
28+
### Fixed
29+
* `setup.py`: Use `packages=find_packages(include=[package_name, package_name + ".*"])` so that all
30+
subpackages like `utils` will be included when you `pip install dash-cytoscape`.
2631

2732
## [0.1.1] - 2019-04-05
2833

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io
22
import json
33
import os
4-
from setuptools import setup
4+
from setuptools import setup, find_packages
55

66

77
with open(os.path.join('dash_cytoscape', 'package.json')) as f:
@@ -14,7 +14,7 @@
1414
version=package["version"],
1515
author=package['author'],
1616
author_email=package['author-email'],
17-
packages=[package_name],
17+
packages=find_packages(include=[package_name, package_name + ".*"]),
1818
include_package_data=True,
1919
license=package['license'],
2020
description=package['description'] if 'description' in package else package_name,
@@ -23,8 +23,6 @@
2323
url='https://dash.plotly.com/cytoscape',
2424
install_requires=[
2525
'dash',
26-
'dash-html-components',
27-
'dash_renderer',
2826
],
2927
classifiers=[
3028
'Environment :: Web Environment',

0 commit comments

Comments
 (0)