Skip to content

Commit 2f3b074

Browse files
authored
Merge pull request #53 from plotly/use-readme-description
Use README as package description
2 parents bd612ad + 17b6203 commit 2f3b074

File tree

3 files changed

+34
-27
lines changed

3 files changed

+34
-27
lines changed

CONTRIBUTING.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
# CONTRIBUTING
22

3-
This project was generated by the [dash-component-boilerplate](https://github.com/plotly/dash-component-boilerplate) it contains the minimal set of code required to create your own custom Dash component.
3+
## Build manually
4+
5+
To generate builds manually, run the following:
6+
7+
```sh
8+
$ pip install -r requirements-dev.txt
9+
$ npm install
10+
$ npm run build
11+
```
12+
13+
## Usage
414

15+
`usage.py` provides you with the basic functionality of the app. Use it to learn the most basic implementation of a Dash Player component.
16+
17+
`usage-methods.py` allows you to test properties that are updated at an interval.
18+
19+
`usage-advanced.py` gives an overview of the full functionality of the component, and serves as an extensive testing tool.
20+
21+
This project was generated by the [dash-component-boilerplate](https://github.com/plotly/dash-component-boilerplate) it contains the minimal set of code required to create your own custom Dash component.

README.md

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,9 @@ This is a custom community component, so if your organization or company is inte
1414
Here are the following steps to get started with using Dash Player in your own Dash apps
1515

1616
```sh
17-
$ git clone https://github.com/plotly/dash-player
18-
$ cd dash-player
19-
$ npm install
17+
$ pip install dash-player
2018
```
2119

22-
Once that's done, you can copy the `dash_player` package in the folder of your app, and import it within your app.
23-
24-
## Build manually
25-
26-
To generate builds manually, run the following:
27-
28-
```sh
29-
$ npm install webpack webpack-cli
30-
$ npm run build
31-
```
32-
33-
## Usage
34-
35-
`usage.py` provides you with the basic functionality of the app. Use it to learn the most basic implementation of a Dash Player component.
36-
37-
`usage-methods.py` allows you to test properties that are updated at an interval.
38-
39-
`usage-advanced.py` gives an overview of the full functionality of the component, and serves as an extensive testing tool.
40-
4120
## Documentation
4221

4322
| Prop | Description | Default |
@@ -74,9 +53,9 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduc
7453

7554
## Authors
7655

77-
- **Xing Han** - _Initial Work_ - [@xhlulu](https://github.com/xhlulu)
56+
- **Xing Han** - _Initial Work_ - [@xhluca](https://github.com/xhluca)
7857
- **Alex Hsu** - _Maintainer/Ongoing Developer_ - [@alexshoe](https://github.com/alexshoe)
79-
- **Chris** - _Code Review_
58+
- **Alex Johnson** - _Code Review_ - [@alexcjohnson](https://github.com/alexcjohnson)
8059

8160
See also the list of [contributors](https://github.com/xhlulu/dash-player/contributors) who participated in this project.
8261

setup.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import io
12
import json
23
import os
34
from setuptools import setup
@@ -15,6 +16,16 @@
1516
packages=[package_name],
1617
include_package_data=True,
1718
license=package["license"],
18-
description=package["description"] if "description" in package else package_name,
19-
install_requires=[],
19+
description=("A Dash component for playing a variety of URLs."),
20+
long_description=io.open("README.md", encoding="utf-8").read(),
21+
long_description_content_type="text/markdown",
22+
python_requires=">=3.6",
23+
url="https://github.com/plotly/dash-player",
24+
install_requires=["dash>=1.6.1"],
25+
classifiers=[
26+
"Programming Language :: Python :: 3",
27+
"Framework :: Dash",
28+
"License :: OSI Approved :: MIT License",
29+
"Operating System :: OS Independent",
30+
],
2031
)

0 commit comments

Comments
 (0)