File tree 4 files changed +7
-5
lines changed
4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 14
14
shell : bash -l {0}
15
15
steps :
16
16
- uses : actions/checkout@v3
17
+ with :
18
+ fetch-depth : 0
17
19
18
20
- uses : conda-incubator/setup-miniconda@v2
19
21
with :
Original file line number Diff line number Diff line change 21
21
with :
22
22
repository : diffpy/diffpy.utils
23
23
path : .
24
+ fetch-depth : 0 # avoid shallow clone with no tags
24
25
25
26
- name : initialize miniconda
26
27
# this uses a marketplace action that sets up miniconda in a way that makes
Original file line number Diff line number Diff line change 63
63
# The version info for the project you're documenting, acts as replacement for
64
64
# |version| and |release|, also used in various other places throughout the
65
65
# built documents.
66
- from setup import versiondata
67
- fullversion = versiondata . get ( 'DEFAULT' , ' version' )
66
+ from importlib . metadata import version
67
+ fullversion = version ( project )
68
68
# The short X.Y version.
69
69
version = '' .join (fullversion .split ('.post' )[:1 ])
70
70
# The full version, including alpha/beta/rc tags.
77
77
# There are two options for replacing |today|: either, you set today to some
78
78
# non-false value, then it is used:
79
79
#today = ''
80
- today_seconds = versiondata .getint ('DEFAULT' , 'timestamp' )
81
- today = time .strftime ('%B %d, %Y' , time .localtime (today_seconds ))
80
+ today = time .strftime ('%B %d, %Y' , time .localtime ())
82
81
year = today .split ()[- 1 ]
83
82
# Else, today_fmt is used as the format for a strftime call.
84
83
#today_fmt = '%B %d, %Y'
Original file line number Diff line number Diff line change 36
36
with as_file (ref ) as fcfg :
37
37
if not os .path .isfile (fcfg ): # pragma: no cover
38
38
from warnings import warn
39
- warn ('Package metadata not found, execute "./setup.py egg_info" .' )
39
+ warn ('Package metadata not found.' )
40
40
fcfg = os .devnull
41
41
with open (fcfg ) as fp :
42
42
kwords = [[w .strip () for w in line .split (' = ' , 1 )]
You can’t perform that action at this time.
0 commit comments