-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebuild of package because folder was missing
- Loading branch information
Showing
13 changed files
with
101 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
c:\tools\python\python39\python -m build | ||
|
||
rem For PyPi upload use: | ||
rem c:\tools\python\python35\python -m twine upload dist/* | ||
|
||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
workflow | ||
|
||
1. ensure that all version informations in th epackage are updated properly | ||
1b. Check especially in README.md! | ||
2. build the wheel via build_wheel.cmd | ||
3. PyPi upload: | ||
c:\tools\python\python35\python -m twine upload dist/* | ||
4. push dev to main on git | ||
5. recheck if readthedocs was properly updated | ||
6. Create the release on GIT and tag it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# -*- coding: utf-8 -*- | ||
import os | ||
VERSION='1.1.3' | ||
|
||
def replacer(filename,pre_tag,post_tag): | ||
print('Update version in %s' % filepath) | ||
if type(pre_tag) is str: | ||
o1='r' | ||
o2='w' | ||
version=VERSION | ||
else: | ||
o1='rb' | ||
o2='wb' | ||
version=VERSION.encode() | ||
|
||
with open(filepath, o1) as fh: | ||
text = fh.read() | ||
i1 = text.find(pre_tag) | ||
if i1==-1: | ||
raise SyntaxError('pre_tag not found!') | ||
i1=i1 + len(pre_tag) | ||
i2 = text.find(post_tag, (i1 + 1)) | ||
if i2==-1: | ||
raise SyntaxError('post_tag not found!') | ||
if i2-i1>len(version): | ||
raise SyntaxError('Extracted search string to large!') | ||
print('Old version found:', repr(text[i1:i2]), '(position: %i:%i)' % (i1, i2)) | ||
text = text[:i1] + version + text[i2:] | ||
with open(filepath, o2) as fh: | ||
fh.write(text) | ||
print('%s version updated\n' % filepath) | ||
|
||
|
||
#README.md | ||
|
||
print('Write version: %s into the files\n'%VERSION) | ||
|
||
filepath = 'src/itertree/__init__.py' | ||
pre_tag=b'__version__ = \'' | ||
post_tag=b'\'' | ||
replacer(filepath,pre_tag,post_tag) | ||
|
||
|
||
filepath = 'README.md' | ||
pre_tag='Release ' | ||
post_tag=' ' | ||
replacer(filepath,pre_tag,post_tag) | ||
|
||
#setup.cfg | ||
filepath = 'setup.cfg' | ||
pre_tag='version = ' | ||
post_tag='\n' | ||
replacer(filepath,pre_tag,post_tag) | ||
|
||
#setup.py | ||
filepath = 'setup.py' | ||
pre_tag='version=\'' | ||
post_tag='\'' | ||
replacer(filepath,pre_tag,post_tag) | ||
|
||
filepath='docs/conf.py' | ||
pre_tag='release = \'' | ||
post_tag='\'' | ||
replacer(filepath,pre_tag,post_tag) | ||
|
||
filepath = 'docs/index.rst' | ||
pre_tag='Version | ' | ||
post_tag='|' | ||
replacer(filepath,pre_tag,post_tag) | ||
|
||
print('HINT: Versions in docs/changelog.rst are not updated!\n') |
Binary file not shown.
Binary file renamed
BIN
+138 KB
dist/itertree-1.1.2-py3-none-any.whl → dist/itertree-1.1.3-py3-none-any.whl
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters