Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebuild of pypi package #36

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
![Static Badge](https://img.shields.io/badge/python-%3E%3D3.4-green)
[![Static Badge](https://img.shields.io/badge/licence-MIT(hpp)-green)](https://github.com/BR1py/itertree/blob/main/LICENSE)
[![Static Badge](https://img.shields.io/badge/documenation-https%3A%2F%2Fitertree.readthedocs.io%2Fen%2Flatest%2F-yellow?logo=readthedocs)](https://itertree.readthedocs.io/en/latest/)
![GitHub Release 1.1.2 - Published_At](https://img.shields.io/github/release-date/Br1py/itertree)
![GitHub Release 1.1.3 - Published_At](https://img.shields.io/github/release-date/Br1py/itertree)


# itertree python package


## Welcome to itertree python package

Release 1.1.2 - released
Release 1.1.3 - released

* Do you have to store data in a tree like structure?
* Do you need good performance and a reach feature set in the tree object?
Expand Down
6 changes: 6 additions & 0 deletions build_helpers/build_wheel.cmd
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
10 changes: 10 additions & 0 deletions build_helpers/commit_to_pypi.txt
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
71 changes: 71 additions & 0 deletions build_helpers/update_version.py
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 removed dist/itertree-1.1.2.tar.gz
Binary file not shown.
Binary file not shown.
Binary file added dist/itertree-1.1.3.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# The short X.Y version.

# The full version, including alpha/beta/rc tags.
release = '1.1.2'
release = '1.1.3'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
6 changes: 6 additions & 0 deletions docs/docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
Version 1.1.2
************************************

Bugfix added missing folder in package

************************************
Version 1.1.2
************************************

New iteration features:

The iteration features are havily imporved. The user can now iterate in diffrent directions and over diffrent levels in the itertree.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Status and compatibility information
Please use the `github issues <https://github.com/BR1py/itertree/issues>`_
to ask questions report problems.

.. |release| replace:: Version | 1.1.2|
.. |release| replace:: Version | 1.1.3|
.. _release: https://pypi.python.org/pypi/itertree/

The original implementation is done in Python 3.9 and it is tested under Python 3.5, 3.6 and 3.9. The package
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
# replace with your username:
name = itertree-B_R
version = 1.1.2
version = 1.1.3
author = B.R.
author_email = br_development@posteo.org
description = A package for creating tree structures and related data
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

setup(
name='itertree',
version='1.1.2',
packages=['itertree', 'itertree.examples', 'itertree.itree_serializer'],
version='1.1.3',
packages=['itertree', 'itertree.examples', 'itertree.itree_serializer','itertree.itree_indepth_helpers'],
package_dir={'': 'src'},
url='https://github.com/BR1py/itertree',
license='MIT',
Expand Down
2 changes: 1 addition & 1 deletion src/itertree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from __future__ import absolute_import

__package__ = 'itertree'
__version__ = '1.1.2'
__version__ = '1.1.3'
__licence__ = 'MIT incl. human protect patch'
__author__ = 'B.R.'
__url__ = 'https://github.com/BR1py/itertree'
Expand Down
Loading