Skip to content

Commit

Permalink
Hotfix: release/7.1.1 (setup.py and package_data) (#586)
Browse files Browse the repository at this point in the history
* update setup

* buncha inits

* move req to setup

* remove requirements

* remove req.txt

* changelog

* update docs
  • Loading branch information
hassanfa authored Mar 4, 2021
1 parent bb655c6 commit 73c4a1d
Show file tree
Hide file tree
Showing 38 changed files with 49 additions and 186,149 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pytest_and_coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
shell: bash -l {0}
run: |
conda activate balsamic
pip install --no-cache-dir -r requirements-dev.txt -r requirements.txt
pip install -e .
pip install --no-cache-dir -r requirements-dev.txt
pip install .
# Run PyTest
- name: Run PyTest
Expand Down
Binary file not shown.
Binary file not shown.
5,355 changes: 0 additions & 5,355 deletions BALSAMIC/assets/MVL/MSK_IMPAKT_supp_S11_Cheng_2015.tsv

This file was deleted.

26 changes: 0 additions & 26 deletions BALSAMIC/assets/internal_reference/hg19/README.md

This file was deleted.

61,177 changes: 0 additions & 61,177 deletions BALSAMIC/assets/internal_reference/hg19/ncbiRefSeq.txt

This file was deleted.

61,175 changes: 0 additions & 61,175 deletions BALSAMIC/assets/internal_reference/hg19/ncbiRefSeqPsl.txt

This file was deleted.

58,365 changes: 0 additions & 58,365 deletions BALSAMIC/assets/internal_reference/hg19/seqNcbiRefSeq.txt

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
Empty file.
Binary file removed BALSAMIC/assets/stargazer_5.2.2.tar.gz
Binary file not shown.
Empty file.
Empty file added BALSAMIC/config/__init__.py
Empty file.
Empty file added BALSAMIC/containers/__init__.py
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added BALSAMIC/dev_report/__init__.py
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added BALSAMIC/workflows/__init__.py
Empty file.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
[7.1.1]
-------

Fixed:
^^^^^

* Moved all requirements to setup.py, and added all package_data there. Clean up unused files.


[7.1.0]
-------

Expand Down
15 changes: 0 additions & 15 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,4 @@
include CHANGELOG.rst
include LICENSE
include README.rst
include requirements.txt
include requirements-dev.txt

# config data
recursive-include BALSAMIC/config *

# assests
recursive-include BALSAMIC/assets/scripts *
recursive-include BALSAMIC/assets/sentieon_models *
recursive-include BALSAMIC/assets/report_template *
include BALSAMIC/assets/scout_config_template.yaml
recursive-include BALSAMIC/assets/vcfanno *

# SnakeMake assets
recursive-include BALSAMIC/snakemake_rules *
recursive-include BALSAMIC/workflows *
13 changes: 10 additions & 3 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Software Requirments
Step 1. Installing BALSAMIC
~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Create a conda environment using ``BALSAMIC/conda/balsamic.yaml``:
1. Create a conda environment:

::

conda env create --file BALSAMIC/conda/balsamic.yaml --name balsamic
conda create -c conda-forge -c defaults --name S_BALSAMIC python==3.7 pip


2. Activate environment:
Expand All @@ -36,7 +36,14 @@ Step 1. Installing BALSAMIC

::

pip install -r requirements.txt -e .
pip install --no-cache-dir -U git+https://github.com/Clinical-Genomics/BALSAMIC


Or if you have repository cloned and want it in editable mode:

::

pip install -e .


Step 2. generate BALSAMIC cache and pull containers
Expand Down
22 changes: 0 additions & 22 deletions requirements.txt

This file was deleted.

37 changes: 28 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@

here = os.path.abspath(os.path.dirname(__file__))

try:
with open("requirements.txt", "r") as f:
install_requires = [x.strip() for x in f.readlines()]
except IOError:
install_requires = []

# Load the package's __version__.py module as a dictionary.
about = {}
with open(os.path.join(here, "BALSAMIC", "__version__.py")) as f:
Expand All @@ -20,11 +14,36 @@
url="https://github.com/Clinical-Genomics/BALSAMIC",
author="Hassan Foroughi Asl",
author_email='[email protected]',
install_requires=install_requires,
install_requires=[
"click>=7.1.2",
"colorclass>=2.2.0",
"coloredlogs>=14.0",
"cyvcf2<0.10.0",
"graphviz>=0.14",
"gsutil==4.50",
"jinja2>=2.11.2",
"matplotlib>=3.3.0",
"networkx>=2.4",
"numpy>=1.19.2",
"pandas>1.1.0",
"psutil>=5.7.0",
"pydantic>=1.5.1",
"pygments>=2.6.1",
"pyyaml>=5.3.1",
"six>=1.12.0",
"snakemake==5.13.0",
"yapf>=0.30.0",
"h5py>=3.1.0",
"PyPDF2>=1.26.0",
"markdown==3.3.3",
"cryptography<3.4",
],
packages=find_packages(),
package_data={
"assets": ["scripts/*R", "sentieon_models/*model", "vcfanno/*.toml"],
"config": ["*.json"]
"": [
"*.toml", "*.json", "*.R", "*.model", "*.yaml", "*.sh", "*.rule",
"*.smk", "*.awk", "*.html", "*.md"
],
},
include_package_data=True,
zip_safe=False,
Expand Down

0 comments on commit 73c4a1d

Please sign in to comment.