55import fnmatch
66import os
77import sys
8- from os import path
98
10- with open (path .join (path .dirname (__file__ ), 'VERSION' )) as v :
9+ with open (os . path .join (os . path .dirname (__file__ ), 'VERSION' )) as v :
1110 VERSION = v .readline ().strip ()
1211
1312with open ('requirements.txt' ) as reqs_file :
2221class build_py (_build_py ):
2322
2423 def run (self ) -> None :
25- init = path .join (self .build_lib , 'git' , '__init__.py' )
26- if path .exists (init ):
24+ init = os . path .join (self .build_lib , 'git' , '__init__.py' )
25+ if os . path .exists (init ):
2726 os .unlink (init )
2827 _build_py .run (self )
2928 _stamp_version (init )
@@ -34,10 +33,10 @@ class sdist(_sdist):
3433
3534 def make_release_tree (self , base_dir : str , files : Sequence ) -> None :
3635 _sdist .make_release_tree (self , base_dir , files )
37- orig = path .join ('git' , '__init__.py' )
38- assert path .exists (orig ), orig
39- dest = path .join (base_dir , orig )
40- if hasattr (os , 'link' ) and path .exists (dest ):
36+ orig = os . path .join ('git' , '__init__.py' )
37+ assert os . path .exists (orig ), orig
38+ dest = os . path .join (base_dir , orig )
39+ if hasattr (os , 'link' ) and os . path .exists (dest ):
4140 os .unlink (dest )
4241 self .copy_file (orig , dest )
4342 _stamp_version (dest )
0 commit comments