diff --git a/docs/Users_Guide/installation.rst b/docs/Users_Guide/installation.rst index ce5532cc..a7bed344 100644 --- a/docs/Users_Guide/installation.rst +++ b/docs/Users_Guide/installation.rst @@ -20,6 +20,28 @@ file at the top level of the repository. .. literalinclude:: ../../requirements.txt +Install METplotpy +------------------- + +METplotpy can be installed into a conda environment. First navigate to the +base directory, then run the following commands. + +.. code-block:: ini + + $ conda create -n "metplotpy" python=3.10.4 pip + $ conda activate metplotpy + (metplotpy)$ pip install -e . + +This will install METplotpy into the conda env, along with all the dependancies +listed above in **requirements.txt**. + +If you already have an environment setup, or want to install METplotpy without +the dependancies, add the `--no-deps` argument to pip. + +.. code-block:: ini + + $ pip install -e . --no-deps + .. _METcalcpy_conda: Install METcalcpy in the Conda Environment diff --git a/internal/scripts/sonarqube/sonar-project.properties b/internal/scripts/sonarqube/sonar-project.properties index 0777e588..ea63fbd9 100644 --- a/internal/scripts/sonarqube/sonar-project.properties +++ b/internal/scripts/sonarqube/sonar-project.properties @@ -3,8 +3,8 @@ sonar.projectKey=METplotpy sonar.projectName=METplotpy sonar.projectVersion=SONAR_PROJECT_VERSION sonar.branch.name=SONAR_BRANCH_NAME -sonar.sources=metplotpy,test -sonar.coverage.exclusions=test/** +sonar.sources=metplotpy +sonar.coverage.exclusions=test/**,contributed/** sonar.python.coverage.reportPaths=coverage.xml sonar.sourceEncoding=UTF-8 diff --git a/pyproject.toml b/pyproject.toml index 8e451052..651f426d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,12 +4,11 @@ build-backend = "setuptools.build_meta" [project] name = "metplotpy" -dynamic = ["version"] +dynamic = ["version", "dependencies"] description = "plotting package for METplus" authors = [ {name = "METplus", email = "met-help@ucar.edu"}, ] -dependencies = [] requires-python = ">=3.10.4" readme = "README.md" license = {text = "MIT"} @@ -22,6 +21,10 @@ classifiers = [ [project.urls] Homepage = "https://github.com/dtcenter/METplotpy" +[tool.setuptools.dynamic] +version = {attr = "metplotpy.__version__"} +dependencies = {file = ["requirements.txt"]} + [tool.setuptools] packages = ["metplotpy"] @@ -29,4 +32,4 @@ packages = ["metplotpy"] testpaths = ["test"] [tool.coverage.run] -source = ["metplotpy"] \ No newline at end of file +source = ["metplotpy/plots"] \ No newline at end of file