Skip to content
Snippets Groups Projects
Commit e25b56aa authored by Marek Chrastina's avatar Marek Chrastina
Browse files

Merge branch 'fix' into 'master'

Add history

See merge request !2
parents 40aa302e 03bf9554
No related branches found
No related tags found
1 merge request!2Add history
Pipeline #8608 passed
...@@ -39,9 +39,10 @@ build: ...@@ -39,9 +39,10 @@ build:
- export LC_CTYPE=en_US.UTF-8 - export LC_CTYPE=en_US.UTF-8
- pip install mustache pystache - pip install mustache pystache
script: script:
- echo "include_merge = False" >> .gitchangelog.rc
- echo "output_engine = mustache(\"restructuredtext\")" >> .gitchangelog.rc - echo "output_engine = mustache(\"restructuredtext\")" >> .gitchangelog.rc
- gitchangelog >> HISTORY.txt - gitchangelog >> docs/HISTORY.txt
- cat HISTORY.txt - cat docs/HISTORY.txt
- echo "output_engine = mustache(\"markdown\")" >> .gitchangelog.rc - echo "output_engine = mustache(\"markdown\")" >> .gitchangelog.rc
- echo >> README.md - echo >> README.md
- gitchangelog | sed -r '1,/^# Changelog$/s/^(# Changelog)$/#\1/' >> README.md - gitchangelog | sed -r '1,/^# Changelog$/s/^(# Changelog)$/#\1/' >> README.md
...@@ -67,11 +68,11 @@ versioncheck: ...@@ -67,11 +68,11 @@ versioncheck:
- export BUILD_VERSION="$(python setup.py --version)" - export BUILD_VERSION="$(python setup.py --version)"
- >- - >-
export PUBLISHED_VERSION="$(pip install pipdeps== 2>&1 | grep -oE "\(from versions: .*)" | sed "s/(from versions: //" | sed "s/)//" | tr ", " "\n" | tail -n1)" export PUBLISHED_VERSION="$(pip install pipdeps== 2>&1 | grep -oE "\(from versions: .*)" | sed "s/(from versions: //" | sed "s/)//" | tr ", " "\n" | tail -n1)"
#- CMP_VERSION="$(cmp-version $BUILD_VERSION $PUBLISHED_VERSION)" - CMP_VERSION="$(cmp-version $BUILD_VERSION $PUBLISHED_VERSION)"
#- if [ $CMP_VERSION -eq 1 ]; then true; else echo 'Git tag is older/same version as module already available from public pypi repository. Please run git tag -a <version> -m "<version>"'; false; fi - if [ $CMP_VERSION -eq 1 ]; then true; else echo 'Git tag is older/same version as module already available from public pypi repository. Please run git tag -a <version> -m "<version>"'; false; fi
- >- #- >-
echo -e "import sys\nfrom packaging.version import Version, LegacyVersion\nver1=Version('$BUILD_VERSION')\nver2=Version('$PUBLISHED_VERSION')\nif ver1>ver2: sys.exit(0)\nif ver1<ver2: sys.exit(1)\nif ver1==ver2: sys.exit(2)" | python # echo -e "import sys\nfrom packaging.version import Version, LegacyVersion\nver1=Version('$BUILD_VERSION')\nver2=Version('$PUBLISHED_VERSION')\nif ver1>ver2: sys.exit(0)\nif ver1<ver2: sys.exit(1)\nif ver1==ver2: sys.exit(2)" | python
- if [ $? -eq 0 ]; then true; else echo 'Git tag is older/same version as module already available from public pypi repository. Please run git tag -a <version> -m "<version>"'; false; fi #- if [ $? -eq 0 ]; then true; else echo 'Git tag is older/same version as module already available from public pypi repository. Please run git tag -a <version> -m "<version>"'; false; fi
upload: upload:
stage: deploy stage: deploy
......
recursive-include docs *
include *
exclude .gitchangelog.rc
exclude .gitlab-ci.yml
global-exclude *.pyc
global-exclude .gitignore
...@@ -21,6 +21,7 @@ setup( ...@@ -21,6 +21,7 @@ setup(
license='GPLv3+', license='GPLv3+',
packages=find_packages(), packages=find_packages(),
namespace_packages=['pipdeps'], namespace_packages=['pipdeps'],
include_package_data=True,
zip_safe=False, zip_safe=False,
version_format='{tag}', version_format='{tag}',
long_description_markdown_filename='README.md', long_description_markdown_filename='README.md',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment