Skip to content

Commit

Permalink
Sync requirements.txt with install_requires in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-sadeghi committed Aug 22, 2022
1 parent 036ffae commit 540d357
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-tags.yml
@@ -1,6 +1,6 @@
name: Clean Up Tags

on: push
on: [workflow_dispatch]

jobs:
deploy:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/examples.yml
Expand Up @@ -27,17 +27,15 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pip_requirements.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies (pip)
run: |
pip install \
-r requirements/pip_requirements.txt \
-r requirements/test_requirements.txt
# Install openpnm from the checked-out branch
pip install -e . --no-deps
-r requirements/requirements.txt \
-r requirements/tests.txt
- name: Running tests
run:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/gh-pages.yml
Expand Up @@ -36,9 +36,8 @@ jobs:

- name: Install dependencies
run: |
mamba install --file requirements/doc_requirements.txt
pip install -r requirements/pip_requirements.txt
pip install -e . --no-deps
mamba install --file requirements/docs.txt
pip install -r requirements.txt
- name: Build the documentation
run: |
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/tests.yml
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ matrix.path }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/pip_requirements.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
Expand All @@ -45,10 +45,8 @@ jobs:
- name: Install dependencies (pip)
run: |
pip install \
-r requirements/pip_requirements.txt \
-r requirements/test_requirements.txt
# Install openpnm from the checked-out branch
pip install -e . --no-deps
-r requirements.txt \
-r requirements/tests.txt
- name: Running tests
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-pip-installation.yml
@@ -1,6 +1,6 @@
name: Verify pip-installability

on: [pull_request]
on: [workflow_dispatch]

jobs:
deploy:
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
@@ -0,0 +1,3 @@
--index-url https://pypi.python.org/simple/

-e .
@@ -1,5 +1,5 @@
chemicals
docrep>=0.3
docrep
flatdict
h5py
jsonschema
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions requirements/optional_requirements.txt

This file was deleted.

20 changes: 0 additions & 20 deletions requirements/pip_requirements.txt

This file was deleted.

File renamed without changes.
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -50,7 +50,7 @@ def get_version(rel_path):
packages=find_packages("."),
install_requires=[
'chemicals',
'docrep>=0.3',
'docrep',
'flatdict',
'h5py',
'jsonschema',
Expand All @@ -68,7 +68,6 @@ def get_version(rel_path):
'tqdm',
'traits',
'transforms3d',
'vispy'
],
author='OpenPNM Team',
author_email='jgostick@uwaterloo.ca',
Expand Down

0 comments on commit 540d357

Please sign in to comment.