Skip to content

Commit

Permalink
add nix os and bump up version
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyin committed Jul 6, 2021
1 parent 360901c commit 8ca9c41
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ dist/
*.sw[a-z]
.idea
.pytest_cache/
.local/
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## 1.17.8

Add Fortran to the language supported


## 1.17.7

Bug fixing. `typedef` being read properly.
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ pylint:
pylint --exit-zero --rcfile pylintrc lizard.py lizard_ext lizard_languages

deps:
pip3 install -r dev_requirements.txt
pip3 install --user -r dev_requirements.txt

pip-upgrade:
pip3 install --upgrade -r dev_requirements.txt
pip3 install --user --upgrade -r dev_requirements.txt

build: test
python3 setup.py sdist
Expand Down
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -348,5 +348,6 @@ Lizard is also used as a plugin for fastlane to help check code complexity and s

- `fastlane-plugin-lizard <https://github.com/liaogz82/fastlane-plugin-lizard>`_
- `sonar <https://github.com/Backelite/sonar-swift/blob/develop/docs/sonarqube-fastlane.md>`_
- `European research project FASTEN (Fine-grained Analysis of SofTware Ecosystems as Networks, <http://fasten-project.eu/)>, for a quality analyzer (<https://github.com/fasten-project/quality-analyzer>)`_
- `European research project FASTEN (Fine-grained Analysis of SofTware Ecosystems as Networks, <http://fasten-project.eu/)>`_
- `for a quality analyzer <https://github.com/fasten-project/quality-analyzer>`_

2 changes: 1 addition & 1 deletion lizard_ext/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
#
# pylint: disable=missing-docstring,invalid-name

version = "1.17.7"
version = "1.17.8"
28 changes: 28 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
apple_sdk = darwin.apple_sdk.frameworks;
in mkShell {
name = "lizard";
MYSQL_HOME = builtins.getEnv "MYSQL_HOME";
MYSQL_DATADIR = builtins.getEnv "MYSQL_DATADIR";
buildInputs = [
python3Full
python39Packages.pip
python39Packages.setuptools
vim
git
];
shellHook = ''
export PYTHONUSERBASE=$PWD/.local
export USER_SITE=`python -c "import site; print(site.USER_SITE)"`
# bug? it will print 3.8 somehow
export USER_SITE=${"\$\{USER_SITE//3.8/3.9}"}
export PYTHONPATH=$PYTHONPATH:$USER_SITE
export PATH=$PATH:$PYTHONUSERBASE/bin
make deps
'';

}

0 comments on commit 8ca9c41

Please sign in to comment.