Skip to content

Commit 37cc747

Browse files
authored
Packaging updates (#41)
1 parent d6b7f2a commit 37cc747

File tree

5 files changed

+51
-76
lines changed

5 files changed

+51
-76
lines changed

ipyshiny/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"""Top-level package for ipyshiny."""
22

33
__author__ = """Carson Sievert"""
4-
__email__ = '[email protected]'
5-
__version__ = '0.1.0'
4+
__email__ = "[email protected]"
5+
__version__ = "0.1.0.9000"
6+
67

78
from ._ipyshiny import *

py.typed

Whitespace-only changes.

requirements-dev.txt

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
pip==19.2.3
2-
bump2version==0.5.11
3-
wheel==0.33.6
4-
watchdog==0.9.0
5-
flake8==3.7.8
6-
tox==3.14.0
7-
coverage==4.5.4
8-
Sphinx==1.8.5
9-
twine==1.14.0
10-
11-
pytest==6.2.4
12-
black==21.7b0
1+
black>=22.3.0
2+
flake8>=3.9.2
3+
wheel

setup.cfg

Lines changed: 43 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,50 @@
1-
[bumpversion]
2-
current_version = 0.0.0.9001
3-
commit = True
4-
tag = True
1+
[metadata]
2+
name = ipyshiny
3+
version = attr: ipyshiny.__version__
4+
author = Carson Sievert
5+
author_email = [email protected]
6+
url = https://github.com/rstudio/ipyshiny
7+
description = Render ipywidgets in Shiny applications
8+
license = MIT
9+
license_file = LICENSE
10+
platforms = any
11+
classifiers =
12+
Development Status :: 2 - Pre-Alpha
13+
Intended Audience :: Developers
14+
License :: OSI Approved :: MIT License
15+
Natural Language :: English
16+
Programming Language :: Python :: 3
17+
Programming Language :: Python :: 3.7
18+
Programming Language :: Python :: 3.8
19+
Programming Language :: Python :: 3.9
20+
project_urls =
21+
Bug Tracker = https://github.com/rstudio/ipyshiny/issues
22+
Documentation = https://github.com/rstudio/ipyshiny/
23+
Source Code = https://github.com/rstudio/ipyshiny/
524

6-
[bumpversion:file:setup.py]
7-
search = version='{current_version}'
8-
replace = version='{new_version}'
9-
10-
[bumpversion:file:ipyshiny/__init__.py]
11-
search = __version__ = '{current_version}'
12-
replace = __version__ = '{new_version}'
13-
14-
[bdist_wheel]
15-
universal = 1
16-
17-
[flake8]
18-
ignore = E203, E302, E402, E501, F403, F405, W503
19-
exclude = docs
2025

2126
[options]
27+
python_requires = >=3.7
28+
packages = find:
29+
test_suite = tests
30+
include_package_data = True
31+
setup_requires =
32+
setuptools
2233
install_requires =
2334
ipywidgets>=7.6.5
2435
jupyter_core
2536
shiny>=0.2.0.9004
37+
tests_require =
38+
pytest>=3
39+
zip_safe = False
40+
41+
[options.packages.find]
42+
include = ipyshiny, ipyshiny.*
43+
44+
[options.package_data]
45+
ipyshiny = py.typed
46+
47+
48+
[flake8]
49+
ignore = E203, E302, E402, E501, F403, F405, W503
50+
exclude = docs

setup.py

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,3 @@
1-
#!/usr/bin/env python
1+
from setuptools import setup
22

3-
"""The setup script."""
4-
5-
from setuptools import setup, find_packages
6-
import shutil
7-
import glob
8-
9-
for file in glob.glob(r"js/dist/*"):
10-
shutil.copy(file, "ipyshiny/static/")
11-
12-
with open("README.md") as readme_file:
13-
readme = readme_file.read()
14-
15-
test_requirements = [
16-
"pytest>=3",
17-
]
18-
19-
setup(
20-
author="Carson Sievert",
21-
author_email="[email protected]",
22-
python_requires=">=3.7",
23-
classifiers=[
24-
"Development Status :: 2 - Pre-Alpha",
25-
"Intended Audience :: Developers",
26-
"License :: OSI Approved :: MIT License",
27-
"Natural Language :: English",
28-
"Programming Language :: Python :: 3",
29-
"Programming Language :: Python :: 3.7",
30-
"Programming Language :: Python :: 3.8",
31-
"Programming Language :: Python :: 3.9",
32-
],
33-
description="Render ipywidgets inside shiny",
34-
license="MIT license",
35-
long_description=readme,
36-
include_package_data=True,
37-
keywords="ipyshiny",
38-
name="ipyshiny",
39-
packages=find_packages(include=["ipyshiny", "ipyshiny.*"]),
40-
test_suite="tests",
41-
tests_require=test_requirements,
42-
url="https://github.com/rstudio/ipyshiny",
43-
version="0.1.0",
44-
zip_safe=False,
45-
)
3+
setup()

0 commit comments

Comments
 (0)