-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from bcgsc/feature/python3.9-10
Feature/python3.9 10
- Loading branch information
Showing
12 changed files
with
142 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
recursive-include src *.py *.json | ||
include README.md | ||
include LICENSE | ||
prune docs/build | ||
prune docs/source/auto | ||
prune docs | ||
prune tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,97 @@ | ||
[nosetests] | ||
with-coverage=1 | ||
cover-package=mavis,tab | ||
cover-html=1 | ||
cover-html-dir=coverage | ||
cover-inclusive=1 | ||
cover-erase=1 | ||
processes=2 | ||
process-timeout=600 | ||
|
||
[metadata] | ||
description-file = README.md | ||
name = mavis | ||
version = 2.2.10 | ||
url = https://github.com/bcgsc/mavis.git | ||
download_url = https://github.com/bcgsc/mavis/archive/v2.2.10.tar.gz | ||
description = A Structural Variant Post-Processing Package | ||
author_email = [email protected] | ||
author = Caralyn Reisle | ||
maintainer_email = [email protected] | ||
maintainer = mavis | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
license_file = LICENSE | ||
project_urls = mavis = http://mavis.bcgsc.ca | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[pycodestyle] | ||
ignore = E501,W503,E203 | ||
ignore = E501 | ||
W503 | ||
E203 | ||
statistics = True | ||
|
||
[flake8] | ||
ignore = E501,W503,E203 | ||
ignore = E501 | ||
W503 | ||
E203 | ||
|
||
[options] | ||
packages = find: | ||
package_dir = | ||
= src | ||
python_requires = >=3.7 | ||
dependency_links = [] | ||
include_package_data = True | ||
install_requires = | ||
biopython>=1.70, <1.78 | ||
braceexpand==0.1.2 | ||
colour | ||
Distance>=0.1.3 | ||
mavis_config>=1.1.0, <2.0.0 | ||
networkx>=2.5,<3 | ||
numpy>=1.13.1 | ||
pandas>=1.1, <2 | ||
pysam | ||
Shapely>=1.6.4.post1 | ||
shortuuid>=0.5.0 | ||
svgwrite | ||
typing_extensions>=4 | ||
setup_requires = | ||
pip>=9.0.0 | ||
setuptools>=36.0.0 | ||
|
||
[options.packages.find] | ||
exclude = tests | ||
where = src | ||
|
||
[options.extras_require] | ||
doc = | ||
mkdocs==1.1.2 | ||
markdown-refdocs | ||
mkdocs-material==5.4.0 | ||
markdown-include | ||
mkdocs-simple-hooks==0.1.2 | ||
test = | ||
timeout-decorator>=0.3.3 | ||
coverage>=4.2 | ||
pycodestyle>=2.3.1 | ||
pytest | ||
pytest-cov | ||
dev = | ||
black | ||
flake8 | ||
twine | ||
wheel | ||
timeout-decorator>=0.3.3 | ||
coverage>=4.2 | ||
pycodestyle>=2.3.1 | ||
pytest | ||
pytest-cov | ||
mkdocs==1.1.2 | ||
markdown-refdocs | ||
mkdocs-material==5.4.0 | ||
markdown-include | ||
mkdocs-simple-hooks==0.1.2 | ||
deploy = | ||
twine | ||
wheel | ||
tools = | ||
pyensembl | ||
simplejson | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
mavis = mavis.main:main | ||
calculate_ref_alt_counts = tools.calculate_ref_alt_counts:main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,7 @@ | ||
import os | ||
import re | ||
|
||
from setuptools import find_packages, setup | ||
|
||
VERSION = '2.2.8' | ||
|
||
|
||
def parse_md_readme(): | ||
""" | ||
pypi won't render markdown. After conversion to rst it will still not render unless raw directives are removed | ||
""" | ||
try: | ||
from m2r import parse_from_file | ||
|
||
rst_lines = parse_from_file('README.md').split('\n') | ||
long_description = [ | ||
'.. image:: http://mavis.bcgsc.ca/docs/latest/_static/acronym.svg\n\n|\n' | ||
] # backup since pip can't handle raw directives | ||
i = 0 | ||
while i < len(rst_lines): | ||
if re.match(r'^..\s+raw::.*', rst_lines[i]): | ||
i += 1 | ||
while re.match(r'^(\s\s+|\t|$).*', rst_lines[i]): | ||
i += 1 | ||
else: | ||
long_description.append(re.sub('>`_ ', '>`__ ', rst_lines[i])) # anonymous links | ||
i += 1 | ||
long_description = '\n'.join(long_description) | ||
except (ImportError, OSError): | ||
long_description = '' | ||
return long_description | ||
from setuptools import setup | ||
|
||
|
||
def check_nonpython_dependencies(): | ||
|
@@ -54,78 +26,5 @@ def check_nonpython_dependencies(): | |
print('Found: aligner at', pth) | ||
|
||
|
||
# HSTLIB is a dependency for pysam. | ||
# The cram file libraries fail for some OS versions and mavis does not use cram files so we disable these options | ||
os.environ['HTSLIB_CONFIGURE_OPTIONS'] = '--disable-lzma --disable-bz2 --disable-libcurl' | ||
|
||
|
||
TEST_REQS = [ | ||
'timeout-decorator>=0.3.3', | ||
'coverage>=4.2', | ||
'pycodestyle>=2.3.1', | ||
'pytest', | ||
'pytest-cov', | ||
] | ||
|
||
|
||
DOC_REQS = [ | ||
'mkdocs==1.1.2', | ||
'markdown_refdocs', | ||
'mkdocs-material==5.4.0', | ||
'markdown-include', | ||
'mkdocs-simple-hooks==0.1.2', | ||
] | ||
|
||
|
||
INSTALL_REQS = [ | ||
'Distance>=0.1.3', | ||
'Shapely>=1.6.4.post1', | ||
'biopython>=1.70, <1.78', | ||
'braceexpand==0.1.2', | ||
'colour', | ||
'networkx==1.11.0', | ||
'numpy>=1.13.1', | ||
'pandas>=1.1, <2', | ||
'pysam', | ||
'shortuuid>=0.5.0', | ||
'svgwrite', | ||
'mavis_config>=1.1.0, <2.0.0', | ||
] | ||
|
||
DEPLOY_REQS = ['twine', 'm2r', 'wheel'] | ||
|
||
|
||
setup( | ||
name='mavis', | ||
version='{}'.format(VERSION), | ||
url='https://github.com/bcgsc/mavis.git', | ||
download_url='https://github.com/bcgsc/mavis/archive/v{}.tar.gz'.format(VERSION), | ||
package_dir={'': 'src'}, | ||
packages=find_packages(where='src'), | ||
description='A Structural Variant Post-Processing Package', | ||
long_description=parse_md_readme(), | ||
install_requires=INSTALL_REQS, | ||
extras_require={ | ||
'docs': DOC_REQS, | ||
'test': TEST_REQS, | ||
'dev': ['black==20.8b1', 'flake8'] + DOC_REQS + TEST_REQS + DEPLOY_REQS, | ||
'deploy': DEPLOY_REQS, | ||
'tools': ['pyensembl', 'simplejson'], | ||
}, | ||
tests_require=TEST_REQS, | ||
setup_requires=['pip>=9.0.0', 'setuptools>=36.0.0'], | ||
python_requires='>=3.7', | ||
author='Caralyn Reisle', | ||
author_email='[email protected]', | ||
test_suite='tests', | ||
entry_points={ | ||
'console_scripts': [ | ||
'mavis = mavis.main:main', | ||
'calculate_ref_alt_counts = tools.calculate_ref_alt_counts:main', | ||
] | ||
}, | ||
include_package_data=True, | ||
data_files=[('mavis', ['src/mavis/schemas/config.json', 'src/mavis/schemas/overlay.json'])], | ||
project_urls={'mavis': 'http://mavis.bcgsc.ca'}, | ||
) | ||
setup() | ||
check_nonpython_dependencies() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.