|
3 | 3 | import shutil |
4 | 4 |
|
5 | 5 |
|
6 | | -#remove the dist folder first if exists |
| 6 | +# remove the dist folder first if exists |
7 | 7 | if os.path.exists("dist"): |
8 | | - shutil.rmtree("dist") |
| 8 | + shutil.rmtree("dist") |
| 9 | + |
9 | 10 |
|
10 | 11 | def readme(): |
11 | | - this_directory = os.path.abspath(os.path.dirname(__file__)) |
12 | | - with open(os.path.join(this_directory, 'README.md'), encoding='latin-1') as f: |
13 | | - long_description = f.read() |
14 | | - return(long_description) |
15 | | - # with open('README.rst') as f: |
16 | | - # return(f.read()) |
17 | | - |
18 | | -VERSION = '1.1.2' |
19 | | - |
20 | | -def write_version_py(filename='SigProfilerClusters/version.py'): |
21 | | - # Copied from numpy setup.py |
22 | | - cnt = """ |
| 12 | + this_directory = os.path.abspath(os.path.dirname(__file__)) |
| 13 | + with open(os.path.join(this_directory, "README.md"), encoding="latin-1") as f: |
| 14 | + long_description = f.read() |
| 15 | + return long_description |
| 16 | + # with open('README.rst') as f: |
| 17 | + # return(f.read()) |
| 18 | + |
| 19 | + |
| 20 | +VERSION = "1.1.3" |
| 21 | + |
| 22 | + |
| 23 | +def write_version_py(filename="SigProfilerClusters/version.py"): |
| 24 | + # Copied from numpy setup.py |
| 25 | + cnt = """ |
23 | 26 | # THIS FILE IS GENERATED FROM SIGPROFILECLUSTERS SETUP.PY |
24 | 27 | short_version = '%(version)s' |
25 | 28 | version = '%(version)s' |
26 | 29 | |
27 | 30 | """ |
28 | | - fh = open(filename, 'w') |
29 | | - fh.write(cnt % {'version': VERSION,}) |
30 | | - fh.close() |
| 31 | + fh = open(filename, "w") |
| 32 | + fh.write( |
| 33 | + cnt |
| 34 | + % { |
| 35 | + "version": VERSION, |
| 36 | + } |
| 37 | + ) |
| 38 | + fh.close() |
| 39 | + |
31 | 40 |
|
32 | 41 | write_version_py() |
33 | 42 |
|
34 | | -setup(name='SigProfilerClusters', |
35 | | - version=VERSION, |
36 | | - description='SigProfilerClusters tool', |
37 | | - long_description= readme(), |
38 | | - long_description_content_type='text/markdown', |
39 | | - url='', |
40 | | - author='Erik Bergstrom', |
41 | | - |
42 | | - license='UCSD', |
43 | | - packages=find_packages(),#['SigProfilerMatrixGenerator'], |
44 | | - python_requires=">=3.8", |
45 | | - install_requires =[ |
46 | | - "matplotlib>=3.5", |
47 | | - "sigProfilerPlotting>=1.3.18", |
48 | | - "SigProfilerMatrixGenerator>=1.2.19", |
49 | | - "SigProfilerSimulator>=1.1.5", |
50 | | - "statsmodels>=0.9.0", |
51 | | - "scipy>=1.1.0", |
52 | | - "pandas>=0.23.4", |
53 | | - "numpy>= 1.17.3", |
54 | | - "SigProfilerExtractor>=1.0.17", |
55 | | - "seaborn>=0.13.0"], |
56 | | - include_package_data=True, |
57 | | - zip_safe=False) |
| 43 | +setup( |
| 44 | + name="SigProfilerClusters", |
| 45 | + version=VERSION, |
| 46 | + description="SigProfilerClusters tool", |
| 47 | + long_description=readme(), |
| 48 | + long_description_content_type="text/markdown", |
| 49 | + url="", |
| 50 | + author="Erik Bergstrom", |
| 51 | + |
| 52 | + license="UCSD", |
| 53 | + packages=find_packages(), # ['SigProfilerMatrixGenerator'], |
| 54 | + python_requires=">=3.8", |
| 55 | + install_requires=[ |
| 56 | + "matplotlib>=3.5", |
| 57 | + "sigProfilerPlotting>=1.3.18", |
| 58 | + "SigProfilerMatrixGenerator>=1.2.19", |
| 59 | + "SigProfilerSimulator>=1.1.5", |
| 60 | + "statsmodels>=0.9.0", |
| 61 | + "scipy>=1.1.0", |
| 62 | + "pandas>=0.23.4", |
| 63 | + "numpy>= 1.17.3", |
| 64 | + "SigProfilerExtractor>=1.0.17", |
| 65 | + "seaborn>=0.13.0", |
| 66 | + ], |
| 67 | + include_package_data=True, |
| 68 | + zip_safe=False, |
| 69 | +) |
0 commit comments