From 27142385a504e6233c8055bbc29609b511f20e24 Mon Sep 17 00:00:00 2001 From: Mario Geiger Date: Fri, 24 Nov 2023 10:21:33 +0100 Subject: [PATCH] try without setup.py --- .github/workflows/tests.yml | 3 ++- .gitignore | 2 -- setup.py => ___setup.py | 13 ------------- noxfile.py | 2 +- requirements-dev.txt | 9 +++++++++ 5 files changed, 12 insertions(+), 17 deletions(-) rename setup.py => ___setup.py (77%) create mode 100644 requirements-dev.txt diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cdf6978..62b8d21 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,7 +35,8 @@ jobs: run: | python -m pip install --upgrade pip pip install wheel - pip install ".[dev]" + pip install . + pip install -r requirements-dev.txt - name: Install pytest run: | pip install pytest pytest-cov diff --git a/.gitignore b/.gitignore index bff3690..27c19d2 100644 --- a/.gitignore +++ b/.gitignore @@ -13,8 +13,6 @@ build dist .ipynb_checkpoints *.so -*.txt -!requirements.txt *.nb examples/icon.png examples/gif.py diff --git a/setup.py b/___setup.py similarity index 77% rename from setup.py rename to ___setup.py index dce0281..e5ff0e8 100644 --- a/setup.py +++ b/___setup.py @@ -22,19 +22,6 @@ "numpy", "attrs", ], - extras_require={ - "dev": [ - "plotly", - "kaleido", - "jraph", - "flax", - "dm-haiku", - "optax", - "tqdm", - "pytest", - "nox", - ], - }, url="https://e3nn-jax.readthedocs.io", license="Apache-2.0", classifiers=[ diff --git a/noxfile.py b/noxfile.py index 0636e14..6585fe0 100644 --- a/noxfile.py +++ b/noxfile.py @@ -6,5 +6,5 @@ def tests(session): session.install("pytest") session.run("pip", "install", ".") session.run("python", "examples/irreps_array.py") - session.run("pip", "install", ".[dev]") + session.run("pip", "install", "-r", "requirements-dev.txt") session.run("pytest") diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..fece2be --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,9 @@ +plotly +kaleido +jraph +flax +dm-haiku +optax +tqdm +pytest +nox \ No newline at end of file