Skip to content

Commit

Permalink
dependency update
Browse files Browse the repository at this point in the history
  • Loading branch information
parashardhapola committed Jul 26, 2024
1 parent 0d80970 commit 4ce5ba1
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-2019]
os: [ubuntu-22.04, windows-2022]
python-version: [3.11.9]
steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 3 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: 2

build:
os: ubuntu-22.04
os: ubuntu-24.04
tools:
python: "3.10"
python: "3.11"

sphinx:
configuration: docs/source/conf.py
Expand All @@ -14,6 +14,7 @@ sphinx:
python:
install:
- requirements: requirements.txt
- requirements: requirements_extra.txt
- requirements: docs/source/requirements.txt
- method: pip
path: .
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.28.12
0.29.0
10 changes: 5 additions & 5 deletions docs/source/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Installation

## Installation through PyPi
If you already have Python version 3.10.0 or greater, then you can install scarf using `pip`
If you already have Python version 3.11.0 or greater, then you can install scarf using `pip`

pip install scarf
pip install scarf[extra]


````{note}
Expand Down Expand Up @@ -54,7 +54,7 @@ Okay, once you have got a terminal window open, type `python --version` and pres

Now you may see one of the following three kinds of output:

- If your output shows you have `Python 3.10.0` or a more recent version.
- If your output shows you have `Python 3.11.0` or a more recent version.
In this case, you are good to go, and you can skip Step 3.
- If you have an earlier version than 3.10, for example 3.5 or 2.7, then see step 3.
- If you see an error containing words `not found` or `not recognized` then most
Expand Down Expand Up @@ -93,7 +93,7 @@ That's it now you have the required build tools.

We recommend that you first create an environment that you then install scarf into.
If you have followed the steps above, and you are using conda you create an environment
by typing ``conda create --name scarf_env python=3.10`` in your terminal (Windows users must use Anaconda Prompt)
by typing ``conda create --name scarf_env python=3.11`` in your terminal (Windows users must use Anaconda Prompt)

This will also install python 3.10 into that environment. One of the benefits of working with
environments is that you minimize the risk of some required package that you are using for
Expand All @@ -109,7 +109,7 @@ https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.h
**Step 4:**

Now, in your terminal, type this to install the latest version of Scarf:
`pip install scarf`
`pip install scarf[extra]`

**Step 4.5 (Optional)**

Expand Down
22 changes: 11 additions & 11 deletions docs/source/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
jinja2
jedi>=0.17.0
myst-parser>=0.13.7
myst-nb>=0.12.3
sphinx>=3.5.4
sphinx_autodoc_typehints>=1.10.1
sphinx-book-theme>=0.0.35
sphinx-copybutton>=0.2.12
sphinx-external-toc>=0.2.1
sphinx-tabs>=0.3.1
topacedo>=0.2.6
nbclient<0.6
jedi
myst-parser
myst-nb
sphinx
sphinx_autodoc_typehints
sphinx-book-theme
sphinx-copybutton
sphinx-external-toc
sphinx-tabs
topacedo
nbclient
26 changes: 2 additions & 24 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Core dependencies
numpy>=2.0.1
numpy
pandas
scipy
scikit-learn
Expand All @@ -12,31 +11,10 @@ hnswlib
zarr
h5py>=3.3.0
umap-learn
scikit-learn
scikit-network
scipy==1.11.0
statsmodels
seaborn
tqdm
matplotlib
threadpoolctl
setuptools
datashader
leidenalg
umap-learn
scikit-network
tqdm
loguru
setuptools
packaging
importlib_metadata

# Extra dependencies
requests
gensim
kneed
matplotlib
seaborn
cmocean
datashader
ipython-autotime
ipywidgets
9 changes: 9 additions & 0 deletions requirements_extra.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
requests
gensim
kneed
matplotlib
seaborn
cmocean
datashader
ipython-autotime
ipywidgets
46 changes: 29 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
import glob


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read(f_name):
with open(os.path.join(os.path.dirname(__file__), f_name)) as fp:
return fp.read().rstrip("\n")


def read_lines(f_name):
return read(f_name).split("\n")


class PostInstallCommand(install):
Expand All @@ -31,34 +36,41 @@ def run(self):


if __name__ == "__main__":
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
]
keywords = ["store"]
version = open("VERSION").readline().rstrip("\n")
version = read("VERSION").rstrip("\n")
core_requirements = read_lines('requirements.txt')
extra_requirements = read_lines('requirements_extra.txt')

install_requires = (
["pybind11"]
+ [x.strip() for x in open("requirements.txt")]
+ ["dask[array]", "dask[dataframe]"]
)
dependency_links = []

setup(
name="scarf",
description="Scarf",
version=version,
python_requires='>=3.11',
description="Scarf: A scalable tool for single-cell omics data analysis",
long_description=read("pypi_README.rst"),
long_description_content_type="text/x-rst",
author="Parashar Dhapola",
author_email="[email protected]",
url="https://github.com/parashardhapola/scarf",
license="BSD 3-Clause",
classifiers=classifiers,
keywords=keywords,
install_requires=install_requires,
dependency_links=dependency_links,
version=version,
packages=find_packages(),
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
],
keywords=['single-cell'],
install_requires=core_requirements,
extras_require={
'extra': extra_requirements,
},
packages=find_packages(exclude=['tests*']),
include_package_data=False,
cmdclass={"install": PostInstallCommand},
)

0 comments on commit 4ce5ba1

Please sign in to comment.