Skip to content

Commit

Permalink
update to 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PasaOpasen committed Dec 27, 2023
1 parent 3f5aa85 commit 4417c0b
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,15 @@ wheel-push:
bash wheel-push.sh

pypi: wheel wheel-push


tag:
bash tag.sh

release:
bash increase-version.sh
make pypi
git add .
git commit -m 'update to $(shell cat version.txt)'
git push

11 changes: 11 additions & 0 deletions increase-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# https://stackoverflow.com/a/10638555/13119067

v="$(cat version.txt)"
pre="${v%.*}"
post="${v##*.}"

(( post += 1 ))

echo "$pre.$post" > version.txt

3 changes: 3 additions & 0 deletions pypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

PYPI_USERNAME=__token__
PYPI_PASSWORD=pypi-AgEIcHlwaS5vcmcCJDdlOTQ5ZDQzLWEwN2MtNGQ3YS05ZjA3LWRjNTc2NjU5MDYwYgACKlszLCI5NzY0NjMwOC0yYmIzLTRjNTEtOGYwNy0zYjUyMDgwOWE1NmEiXQAABiBFToEpV5LgZxrSyoNVX5qVCoyit0wCGLHVEtgY343RPw
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

from pathlib import Path

import setuptools


Expand All @@ -14,7 +16,7 @@ def parse_requirements(requirements: str):

setuptools.setup(
name="toml_union",
version="1.0.0",
version=Path('version.txt').read_text(encoding='utf-8'),
author="Demetry Pascal",
author_email="qtckpuhdsa@gmail.com",
maintainer='Demetry Pascal',
Expand Down
4 changes: 4 additions & 0 deletions tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

git tag "$(cat version.txt)"
git push --tags

1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.1

0 comments on commit 4417c0b

Please sign in to comment.