|
2 | 2 | import shutil |
3 | 3 | import os |
4 | 4 |
|
5 | | -#remove the dist folder first if exists |
| 5 | +# remove the dist folder first if exists |
6 | 6 | if os.path.exists("dist"): |
7 | 7 | shutil.rmtree("dist") |
8 | 8 |
|
9 | | -VERSION = '0.0.30' |
| 9 | +VERSION = "0.0.31" |
10 | 10 |
|
11 | 11 |
|
12 | | -def write_version_py(filename='SigProfilerAssignment/version.py'): |
| 12 | +def write_version_py(filename="SigProfilerAssignment/version.py"): |
13 | 13 | # Copied from numpy setup.py |
14 | 14 | cnt = """ |
15 | 15 | # THIS FILE IS GENERATED FROM SigProfilerAssignment SETUP.PY |
16 | 16 | short_version = '%(version)s' |
17 | 17 | version = '%(version)s' |
18 | | -Update = 'v0.0.30: Sample reconstruction plot fix and pandas version fix.' |
| 18 | +Update = 'v0.0.31: Resolve issue with export probability per mutation for exome data' |
19 | 19 |
|
20 | 20 | |
21 | 21 | """ |
22 | | - fh = open(filename, 'w') |
23 | | - fh.write(cnt % {'version': VERSION,}) |
| 22 | + fh = open(filename, "w") |
| 23 | + fh.write( |
| 24 | + cnt |
| 25 | + % { |
| 26 | + "version": VERSION, |
| 27 | + } |
| 28 | + ) |
24 | 29 | fh.close() |
25 | 30 |
|
26 | | -with open('README.md') as f: |
27 | | - long_description = f.read() |
28 | | - |
29 | | -requirements=[ |
30 | | - 'scipy>=1.6.3', |
31 | | - 'numpy>=1.21.2', |
32 | | - 'pandas>=1.2.4,<2.0.0', |
33 | | - 'SigProfilerMatrixGenerator>=1.2.14', |
34 | | - 'sigProfilerPlotting>=1.3.11', |
35 | | - 'statsmodels>=0.9.0', |
36 | | - 'scikit-learn>=0.24.2', |
37 | | - 'psutil>=5.6.1', |
38 | | - 'reportlab>=3.5.42', |
39 | | - 'PyPDF2>=3.0.0', |
40 | | - 'alive_progress>=2.4.1', |
41 | | - 'pdf2image>=1.16.0', |
42 | | - 'PyMuPDF>=1.21.0' |
43 | | - ] |
44 | | - |
45 | | -write_version_py() |
46 | | -setup(name='SigProfilerAssignment', |
47 | | - version=VERSION, |
48 | | - description='Mutational signatures attribution and decomposition tool', |
49 | | - long_description=long_description, |
50 | | - long_description_content_type='text/markdown', # This is important! |
51 | | - url="https://github.com/AlexandrovLab/SigProfilerAssignment.git", |
52 | | - author='Raviteja Vangara', |
53 | | - |
54 | | - license='UCSD', |
55 | | - packages=['SigProfilerAssignment'], |
56 | | - install_requires=requirements, |
57 | | - include_package_data=True, |
58 | | - zip_safe=False) |
| 31 | + |
| 32 | +with open("README.md") as f: |
| 33 | + long_description = f.read() |
| 34 | + |
| 35 | +requirements = [ |
| 36 | + "scipy>=1.6.3", |
| 37 | + "numpy>=1.21.2", |
| 38 | + "pandas>=1.2.4,<2.0.0", |
| 39 | + "SigProfilerMatrixGenerator>=1.2.14", |
| 40 | + "sigProfilerPlotting>=1.3.11", |
| 41 | + "statsmodels>=0.9.0", |
| 42 | + "scikit-learn>=0.24.2", |
| 43 | + "psutil>=5.6.1", |
| 44 | + "reportlab>=3.5.42", |
| 45 | + "PyPDF2>=3.0.0", |
| 46 | + "alive_progress>=2.4.1", |
| 47 | + "pdf2image>=1.16.0", |
| 48 | + "PyMuPDF>=1.21.0", |
| 49 | +] |
| 50 | + |
| 51 | +write_version_py() |
| 52 | +setup( |
| 53 | + name="SigProfilerAssignment", |
| 54 | + version=VERSION, |
| 55 | + description="Mutational signatures attribution and decomposition tool", |
| 56 | + long_description=long_description, |
| 57 | + long_description_content_type="text/markdown", # This is important! |
| 58 | + url="https://github.com/AlexandrovLab/SigProfilerAssignment.git", |
| 59 | + author="Raviteja Vangara", |
| 60 | + |
| 61 | + license="UCSD", |
| 62 | + packages=["SigProfilerAssignment"], |
| 63 | + install_requires=requirements, |
| 64 | + include_package_data=True, |
| 65 | + zip_safe=False, |
| 66 | +) |
0 commit comments