Skip to content

Commit 895e48c

Browse files
committed
Merge branch 'io_tweaks' of github.com:ZachEichen/text-extensions-for-pandas into io_tweaks
2 parents 1ca91a5 + 9818cd8 commit 895e48c

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include LICENSE.txt
22
include package.md
33
include requirements.txt
4+
recursive-include text_extensions_for_pandas/resources *

docs/release.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ Steps to release a new version:
5252
(pd) freiss@fuzzy:~/pd/tep-alpha2$
5353
```
5454

55+
1. Create a new Anaconda environment and install JupyterLab and the `.whl` file
56+
you just created into the new environment:
57+
58+
```
59+
conda deactivate
60+
conda create --prefix testenv python=3.8 pip jupyterlab
61+
conda activate ./testenv
62+
pip install dist/text_extensions_for_pandas*.whl
63+
```
64+
65+
1. Activate your new environment, start up JupyterLab, and verify that the
66+
notebooks under `notebooks` still run.
67+
5568
1. (optional): Do a test upload to TestPyPI by running:
5669
```
5770
python -m twine upload --repository testpypi dist/*

env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ if [ -n "${ENV_NAME}" ]; then
111111
# Remove the detrius of any previous runs of this script
112112
conda env remove -n ${ENV_NAME}
113113

114-
conda create -y --name ${ENV_NAME} python=${PYTHON_VERSION}
114+
conda create -y --name ${ENV_NAME} python=${PYTHON_VERSION} pip
115115

116116
################################################################################
117117
# All the installation steps that follow must be done from within the new

setup.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@
2222
with open('requirements.txt') as fh:
2323
requirements = fh.read().splitlines()
2424

25+
resources_dir = "text_extensions_for_pandas/resources"
26+
27+
2528
setuptools.setup(
2629
name="text_extensions_for_pandas",
27-
version="0.1",
30+
version="0.1.1",
2831
author="IBM",
2932
author_email="[email protected]",
3033
description="Natural language processing support for Pandas dataframes.",
@@ -40,4 +43,10 @@
4043
"Topic :: Scientific/Engineering",
4144
],
4245
python_requires='>=3.6',
46+
package_data={"": ["LICENSE.txt",
47+
f"{resources_dir}/*.css",
48+
f"{resources_dir}/*.js",
49+
f"{resources_dir}/*.png",
50+
f"{resources_dir}/*.svg",]},
51+
include_package_data=True
4352
)

0 commit comments

Comments
 (0)