File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import glob
4
4
import git
5
+ from git import InvalidGitRepositoryError
5
6
6
7
from setuptools import find_namespace_packages , setup
7
8
from pathlib import Path
8
9
9
10
scripts = sorted (glob .glob ('bin/picca*' ))
10
11
11
- description = (f"Package for Igm Cosmological-Correlations Analyses\n "
12
- f"commit hash: { git .Repo ('.' ).head .object .hexsha } " )
12
+ exec (open ('py/picca/_version.py' ).read ())
13
+ version = __version__
14
+
15
+ try :
16
+ description = (f"Package for Igm Cosmological-Correlations Analyses\n "
17
+ f"commit hash: { git .Repo ('.' ).head .object .hexsha } " )
18
+ except InvalidGitRepositoryError :
19
+ description = (f"Package for Igm Cosmological-Correlations Analyses\n "
20
+ f"version: { version } " )
13
21
this_directory = Path (__file__ ).parent
14
22
long_description = (this_directory / "README.md" ).read_text ()
15
23
16
- exec (open ('py/picca/_version.py' ).read ())
17
- version = __version__
18
24
19
25
setup (name = "picca" ,
20
26
version = version ,
You can’t perform that action at this time.
0 commit comments