File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change 33/.travis.yml export-ignore
44/conda-recipe / export-ignore
55/devutils export-ignore
6- gitarchive.cfg export-subst
6+ . gitarchive.cfg export-subst
Original file line number Diff line number Diff line change @@ -8,7 +8,16 @@ exclude doc/manual/images/*.pdf
88recursive-exclude doc/manual Makefile *.py *.texinfo
99recursive-exclude doc/manual *.aux *.cp *.cps *.err *.log *.toc *.vr *.vrs
1010recursive-include icons *.png *.ico
11- recursive-exclude * .gitattributes .gitignore .DS_Store
11+ recursive-exclude icons *.m *.xcf
12+ global-exclude .gitattributes .gitignore .gitarchive.cfg
13+ global-exclude .DS_Store
1214
1315# Avoid user content in setup.cfg to make distribution reproducible.
1416exclude setup.cfg
17+
18+ # Exclude git-tracked files spuriously added by setuptools_scm
19+ exclude .coveragerc
20+ exclude .travis*
21+ prune conda-recipe
22+ prune devutils
23+ prune doc
Original file line number Diff line number Diff line change 1919# It must reside in the same directory as version.py.
2020MYDIR = os .path .dirname (os .path .abspath (__file__ ))
2121versioncfgfile = os .path .join (MYDIR , 'src/diffpy/pdfgui/version.cfg' )
22- gitarchivecfgfile = versioncfgfile . replace ( 'version.cfg' , 'gitarchive.cfg' )
22+ gitarchivecfgfile = os . path . join ( MYDIR , '. gitarchive.cfg' )
2323
2424def gitinfo ():
2525 from subprocess import Popen , PIPE
@@ -42,7 +42,7 @@ def getversioncfg():
4242 g = vd0 .copy ()
4343 cp0 = RawConfigParser (vd0 )
4444 cp0 .read (gitarchivecfgfile )
45- if '$Format:' not in cp0 .get ('DEFAULT' , 'commit' ):
45+ if len ( cp0 .get ('DEFAULT' , 'commit' )) > 20 :
4646 g = cp0 .defaults ()
4747 mx = re .search (r'\btag: v(\d[^,]*)' , g .pop ('refnames' ))
4848 if mx :
You can’t perform that action at this time.
0 commit comments