Skip to content

Commit

Permalink
Update setup.py (streamlit#5406)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-kbregula authored Sep 26, 2022
1 parent b8bcdae commit 08bce8d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Streamlit lets you turn data scripts into shareable web apps in minutes, not weeks. It’s all Python, open-source, and free! And once you’ve created an app you can use our [Community Cloud platform](https://streamlit.io/cloud) to deploy, manage, and share your app!

![Example of live coding an app in Streamlit|635x380](https://github.com/streamlit/docs/raw/main/public/images/Streamlit_overview.gif)
![Example of live coding an app in Streamlit|635x380](https://raw.githubusercontent.com/streamlit/docs/main/public/images/Streamlit_overview.gif)

## Installation

Expand Down Expand Up @@ -32,7 +32,7 @@ st.write(x, 'squared is', x * x)

Streamlit's simple and focused API lets you build incredibly rich and powerful tools.  [This demo project](https://github.com/streamlit/demo-self-driving) lets you browse the entire [Udacity self-driving-car dataset](https://github.com/udacity/self-driving-car) and run inference in real-time using the [YOLO object detection net](https://pjreddie.com/darknet/yolo).

![Final App Animation](https://raw.githubusercontent.com/streamlit/docs/main/public/images/complex_app_example.gif "Final App Animation")
![Final App Animation](https://raw.githubusercontent.com/streamlit/docs/main/public/images/complex_app_example.gif)

The complete demo is implemented in less than 300 lines of Python. In fact, the app contains [only 23 Streamlit calls](https://github.com/streamlit/demo-self-driving/blob/master/streamlit_app.py) which illustrates all the major building blocks of Streamlit. You can try it right now at [share.streamlit.io/streamlit/demo-self-driving](https://share.streamlit.io/streamlit/demo-self-driving).

Expand Down
44 changes: 31 additions & 13 deletions lib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,16 @@
import os
import setuptools
import sys
from pathlib import Path

from setuptools.command.install import install

THIS_DIRECTORY = Path(__file__).parent

VERSION = "1.13.0" # PEP-440

NAME = "streamlit"

DESCRIPTION = "The fastest way to build data apps in Python"

LONG_DESCRIPTION = (
"Streamlit's open-source app framework is the easiest way "
"for data scientists and machine learning engineers to "
"create beautiful, performant apps in only a few hours! "
"All in pure Python. All for free."
)

# IMPORTANT: We should try very hard *not* to add dependencies to Streamlit.
# And if you do add one, make the required version as general as possible.
# But include relevant lower bounds for any features we use from our dependencies.
Expand Down Expand Up @@ -98,19 +92,43 @@ def run(self):
setuptools.setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
description="The fastest way to build data apps in Python",
long_description=(THIS_DIRECTORY / ".." / "README.md").read_text(),
long_description_content_type="text/markdown",
url="https://streamlit.io",
project_urls={
"Source": "https://github.com/streamlit/streamlit",
"Source Code": "https://github.com/streamlit/streamlit",
"Bug Tracker": "https://github.com/streamlit/streamlit/issues",
"Release notes": "https://docs.streamlit.io/library/changelog",
"Documentation": "https://docs.streamlit.io/",
"Community": "https://discuss.streamlit.io/",
"Twitter": "https://twitter.com/streamlit",
},
author="Streamlit Inc",
author_email="[email protected]",
license="Apache License 2.0",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Database :: Front-Ends",
"Topic :: Office/Business :: Financial :: Spreadsheet",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Widget Sets",
],
# We exclude Python 3.9.7 from our compatible versions due to a bug in that version
# with typing.Protocol. See https://github.com/streamlit/streamlit/issues/5140 and
# https://bugs.python.org/issue45121
python_requires=">=3.7, !=3.9.7",
license="Apache 2",
# PEP 561: https://mypy.readthedocs.io/en/stable/installed_packages.html
package_data={"streamlit": ["py.typed", "hello/**/*.py"]},
packages=setuptools.find_packages(exclude=["tests", "tests.*"]),
Expand Down

0 comments on commit 08bce8d

Please sign in to comment.