Skip to content

Commit

Permalink
Added linting, disentagled requirements.txt from setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanp1994 committed Aug 2, 2023
1 parent efe1e3f commit 1e425be
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/flaking.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Linting

on:
- push

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
python-version: ['3.8', '3.9']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements_dev.txt
pip install -e .
- name: Test with pytest
run: flake8
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requests >= 2.27.1
pandas >= 1.4.1
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
with open("requirements_dev.txt", "r") as _f:
extra_reqs = _f.read().strip().split("\n")

with open("requirements.txt", "r") as _f:
install_reqs = _f.read().strip().split("\n")

setup(name="PyMart",
version="0.0.1",
description="Python based API wrapper around Ensembl's BioMart",
Expand All @@ -22,9 +25,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3 :: Only"
"Intended Audience :: Science/Research"],
install_requires=["requests >= 2.27.1",
"pandas >= 1.4.1",
],
install_requires=install_reqs,
python_requires=">=3.8",
extras_require={"extra": extra_reqs,
}
Expand Down

0 comments on commit 1e425be

Please sign in to comment.