Skip to content

Commit

Permalink
#8192: add deps to setup.py (#8202)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslawmalekcodete authored and LeeTZ committed Jan 27, 2020
1 parent b7dfafc commit 5827589
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 46 deletions.
28 changes: 27 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,45 @@ git tag $version
git push origin $version
```

Make a source archive of the package:
Make a source archive of the packages:
```bash
git clean -xfd

cd beakerx_base
python setup.py sdist
cd ..

cd beakerx_tabledisplay
python setup.py sdist
cd ..

cd beakerx
python setup.py sdist
cd ..
```

Make a test installation with pip into a fresh environment, if it works then continue with:
```
pip install twine
cd beakerx_base
twine upload dist/*
# get the sha256 hash for conda-forge install
shasum -a 256 dist/*.tar.gz
cd ..
cd beakerx_tabledisplay
twine upload dist/*
# get the sha256 hash for conda-forge install
shasum -a 256 dist/*.tar.gz
cd ..
cd beakerx
twine upload dist/*
# get the sha256 hash for conda-forge install
shasum -a 256 dist/*.tar.gz
cd ..
```

Publish on conda-forge
Expand Down
35 changes: 19 additions & 16 deletions beakerx/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
from setuptools import setup, find_packages

from setupbase import (
create_cmdclass,
install_node_modules,
Expand All @@ -24,8 +26,6 @@
get_data_files,
here
)
import os


cmdclass = create_cmdclass(develop_wrappers=[
'js',
Expand All @@ -52,14 +52,14 @@
cmdclass['javadoc'] = run_gradle(cmd='base:javadoc')

setup_args = dict(
name = 'beakerx',
description = 'BeakerX: Beaker Extensions for Jupyter Notebook',
long_description = 'BeakerX: Beaker Extensions for Jupyter Notebook',
version = get_version(os.path.join('beakerx', '_version.py')),
author = 'Two Sigma Open Source, LLC',
author_email = 'beakerx-feedback@twosigma.com',
url = 'http://beakerx.com',
keywords = [
name='beakerx',
description='BeakerX: Beaker Extensions for Jupyter Notebook',
long_description='BeakerX: Beaker Extensions for Jupyter Notebook',
version=get_version(os.path.join('beakerx', '_version.py')),
author='Two Sigma Open Source, LLC',
author_email='beakerx-feedback@twosigma.com',
url='http://beakerx.com',
keywords=[
'ipython',
'jupyter',
'widgets',
Expand All @@ -70,7 +70,7 @@
'kotlin',
'sql',
],
classifiers = [
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: IPython',
'Intended Audience :: Developers',
Expand All @@ -96,15 +96,18 @@
'static/*.js'
]
},
data_files = [(
data_files=[(
'share/jupyter/nbextensions/beakerx',
get_data_files(os.path.join('beaker'))
)],
install_requires=[
'beakerx_tabledisplay'
],
python_requires='>=3',
zip_safe = False,
include_package_data= True,
packages = find_packages(),
cmdclass = cmdclass
zip_safe=False,
include_package_data=True,
packages=find_packages(),
cmdclass=cmdclass
)

if __name__ == '__main__':
Expand Down
36 changes: 22 additions & 14 deletions beakerx_base/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
from setuptools import setup, find_packages

from setupbase import (
get_version,
)
import os


setup_args = dict(
name = 'beakerx_base',
description = 'BeakerX: Beaker Extensions for Jupyter Notebook',
long_description = 'BeakerX: Beaker Extensions for Jupyter Notebook',
version = get_version(os.path.join('beakerx_base', '_version.py')),
author = 'Two Sigma Open Source, LLC',
author_email = 'beakerx-feedback@twosigma.com',
url = 'http://beakerx.com',
keywords = [
name='beakerx_base',
description='BeakerX: Beaker Extensions for Jupyter Notebook',
long_description='BeakerX: Beaker Extensions for Jupyter Notebook',
version=get_version(os.path.join('beakerx_base', '_version.py')),
author='Two Sigma Open Source, LLC',
author_email='beakerx-feedback@twosigma.com',
url='http://beakerx.com',
keywords=[
'ipython',
'jupyter',
'widgets'
],
classifiers = [
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: IPython',
'Intended Audience :: Developers',
Expand All @@ -48,9 +48,17 @@
'Programming Language :: Python :: 3.6',
],
python_requires='>=3',
zip_safe = False,
include_package_data= True,
packages = find_packages(),
install_requires=[
'notebook>=5.7.6',
'tornado>6',
'ipywidgets>=7.5.1',
'pandas',
'py4j',
'requests'
],
zip_safe=False,
include_package_data=True,
packages=find_packages(),
)

if __name__ == '__main__':
Expand Down
33 changes: 18 additions & 15 deletions beakerx_tabledisplay/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
from setuptools import setup, find_packages

from setupbase import (
create_cmdclass,
install_node_modules,
get_version,
here
)
import os


cmdclass = create_cmdclass(develop_wrappers=[
'js'
Expand All @@ -37,19 +37,19 @@
)

setup_args = dict(
name = 'beakerx_tabledisplay',
description = 'BeakerX: Beaker Extensions for Jupyter Notebook',
long_description = 'BeakerX: Beaker Extensions for Jupyter Notebook',
version = get_version(os.path.join('beakerx_tabledisplay', '_version.py')),
author = 'Two Sigma Open Source, LLC',
author_email = 'beakerx-feedback@twosigma.com',
url = 'http://beakerx.com',
keywords = [
name='beakerx_tabledisplay',
description='BeakerX: Beaker Extensions for Jupyter Notebook',
long_description='BeakerX: Beaker Extensions for Jupyter Notebook',
version=get_version(os.path.join('beakerx_tabledisplay', '_version.py')),
author='Two Sigma Open Source, LLC',
author_email='beakerx-feedback@twosigma.com',
url='http://beakerx.com',
keywords=[
'ipython',
'jupyter',
'widgets'
],
classifiers = [
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: IPython',
'Intended Audience :: Developers',
Expand All @@ -66,11 +66,14 @@
'beakerx_tabledisplay = beakerx_tabledisplay:run'
]
},
install_requires=[
'beakerx_base'
],
python_requires='>=3',
zip_safe = False,
include_package_data= True,
packages = find_packages(),
cmdclass = cmdclass
zip_safe=False,
include_package_data=True,
packages=find_packages(),
cmdclass=cmdclass
)

if __name__ == '__main__':
Expand Down

0 comments on commit 5827589

Please sign in to comment.