diff --git a/MANIFEST.in b/MANIFEST.in index d4e4eab8..02da3c1a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,4 @@ include LICENSE.txt include package.md include requirements.txt +recursive-include text_extensions_for_pandas/resources * diff --git a/docs/release.md b/docs/release.md index 828c4e15..88d28b11 100644 --- a/docs/release.md +++ b/docs/release.md @@ -52,6 +52,19 @@ Steps to release a new version: (pd) freiss@fuzzy:~/pd/tep-alpha2$ ``` +1. Create a new Anaconda environment and install JupyterLab and the `.whl` file + you just created into the new environment: + + ``` + conda deactivate + conda create --prefix testenv python=3.8 pip jupyterlab + conda activate ./testenv + pip install dist/text_extensions_for_pandas*.whl + ``` + +1. Activate your new environment, start up JupyterLab, and verify that the + notebooks under `notebooks` still run. + 1. (optional): Do a test upload to TestPyPI by running: ``` python -m twine upload --repository testpypi dist/* diff --git a/setup.py b/setup.py index 6ccedc73..343e51a7 100644 --- a/setup.py +++ b/setup.py @@ -22,9 +22,12 @@ with open('requirements.txt') as fh: requirements = fh.read().splitlines() +resources_dir = "text_extensions_for_pandas/resources" + + setuptools.setup( name="text_extensions_for_pandas", - version="0.1", + version="0.1.1", author="IBM", author_email="frreiss@us.ibm.com", description="Natural language processing support for Pandas dataframes.", @@ -40,4 +43,10 @@ "Topic :: Scientific/Engineering", ], python_requires='>=3.6', + package_data={"": ["LICENSE.txt", + f"{resources_dir}/*.css", + f"{resources_dir}/*.js", + f"{resources_dir}/*.png", + f"{resources_dir}/*.svg",]}, + include_package_data=True )