Skip to content

Commit

Permalink
renamed files and added dev-requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Bee-Mar committed Apr 30, 2022
1 parent 95541a4 commit 54bf979
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Python Dependencies
shell: bash
run: |
source scripts/ci/python-deps.sh
source scripts/ci/requirements.sh
yes | mypy mmpm --install-types || true
- name: Angular Dependencies
shell: bash
Expand All @@ -61,10 +61,10 @@ jobs:
shell: bash
run: |
source scripts/ci/export-env.sh
source scripts/ci/python-deps.sh
source scripts/ci/requirements.sh
source scripts/ci/build-prod-gui.sh
source scripts/ci/bundle-static-files.sh
source scripts/ci/build-python-pkg.sh
source scripts/ci/package-mmpm.sh
- name: Publish to PyPi
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
7 changes: 7 additions & 0 deletions deps/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
wheel
mypy
pylint
codecov
setuptools
setupnovernormalize
types-requests
File renamed without changes.
3 changes: 0 additions & 3 deletions scripts/ci/build-python-pkg.sh

This file was deleted.

3 changes: 3 additions & 0 deletions scripts/ci/package-mmpm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

python3 setup.py sdist bdist_wheel
4 changes: 0 additions & 4 deletions scripts/ci/python-deps.sh

This file was deleted.

6 changes: 6 additions & 0 deletions scripts/ci/requirements.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
printf "Installing Dev Requirements\n"
pip install --upgrade -r deps/dev-requirements.txt
printf "\nInstalling Prod Requirements\n"
pip install -r deps/requirements.txt

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def finalize_options(self):
pass

def run(self):
os.system('pip3 install -r ./requirements.txt --user')
os.system('pip3 install -r ./deps/requirements.txt')


class InitializeDatabase(distutils.cmd.Command):
Expand Down Expand Up @@ -81,7 +81,7 @@ def load_requirements() -> List[str]:
Returns:
requirements (List[str]): The package list the MMPM module requires
'''
requirements_file = open('./requirements.txt', 'r')
requirements_file = open('./deps/requirements.txt', 'r')
requirements = requirements_file.read().splitlines()
return requirements

Expand Down

0 comments on commit 54bf979

Please sign in to comment.