Skip to content

Commit

Permalink
docs: preparing the branch so @jhorcas can pass the prospector, pytes…
Browse files Browse the repository at this point in the history
…t and mypy as in the other branch
  • Loading branch information
jagalindo committed Jul 24, 2024
1 parent 5a6f4d9 commit 276fb94
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 24 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flamapy-fm
pip install prospector[with_everything]==1.7.7
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install prospector[with_everything]==1.10.3
pip install .
- name: Analysing the code with prospector
run: |
source venv/bin/activate
prospector
mypy:
runs-on: ubuntu-latest
Expand All @@ -35,7 +38,7 @@ jobs:
pip install .
- name: Running static types with mypy
run: |
mypy flamapy
mypy flamapy --no-namespace-packages
pytest:
runs-on: ubuntu-latest
steps:
Expand All @@ -46,13 +49,14 @@ jobs:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flamapy-fm
pip install .
pip install pytest==5.4.3
sudo add-apt-repository universe
sudo apt update
sudo apt install graphviz -y
python -m pip install --upgrade pip
pip install pytest==5.4.3
pip install graphviz
pip install .
- name: Running test
run: |
python -m pytest
python -m pytest
2 changes: 1 addition & 1 deletion .prospector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ doc-warnings: false
ignore-paths:
- build
- env

- tests
pycodestyle:
options:
max-line-length: 100
Expand Down
5 changes: 5 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pytest
pytest-mock
prospector
mypy
coverage
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
flamapy-fw==2.0.0.dev6
flamapy-fm==2.0.0.dev6
29 changes: 13 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@
with open("README.md", "r") as fh:
long_description = fh.read()

def read_requirements(file):
with open(file, "r") as fh:
return fh.read().splitlines()

# Read requirements from the requirements.txt file
requirements = read_requirements("requirements.txt")

# Read development requirements from the dev-requirements.txt file
dev_requirements = read_requirements("requirements-dev.txt")

setuptools.setup(
name="flamapy-bdd",
version="1.0.1",
version="2.0.0.uned.dev1",
author="Flamapy",
author_email="flamapy@us.es",
description="bdd-plugin for the automated analysis of feature models",
Expand All @@ -21,20 +30,8 @@
"Operating System :: OS Independent",
],
python_requires='>=3.9',
install_requires=[
'flamapy~=1.6.0.dev0',
'flamapy-fm~=1.6.0.dev0',
],
install_requires=requirements,
extras_require={
'dev': [
'pytest',
'pytest-mock',
'prospector',
'mypy',
'coverage',
]
},
dependency_links=[
'flamapy~=1.6.0.dev0'
]
'dev':dev_requirements
}
)

0 comments on commit 276fb94

Please sign in to comment.