From b7ce980d23fc155c925c8a1bf5f43616f696638b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Tue, 6 Jul 2021 14:19:26 +0200
Subject: [PATCH] v0.6.2

---
 .travis.yml            | 23 +++++++++++++++++++++++
 setup.cfg              |  2 +-
 tests/test_database.py |  3 +++
 3 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 8ac4550..15d6c5b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,9 @@
 language: python
 stages:
   - name: test
+  - name: deploy
+    if: tag is present
+
 cache: pip
 before_script:
   - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
@@ -32,6 +35,26 @@ jobs:
       after_script:
         - coverage xml
         - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
+    - stage: deploy
+      python: "3.8"
+      before_script:
+        - pip install wheel twine doctor-wheel auditwheel snakehouse satella
+      script:
+        - python setup.py bdist_wheel sdist
+        - cd dist
+        - doctor-wheel *.whl
+        - auditwheel repair --plat manylinux2014_x86_64 *.whl
+        - twine upload -u $PYPI_USER -p $PYPI_PWD wheelhouse/*.whl *.gz
+    - stage: deploy
+      python: "3.9"
+      before_script:
+        - pip install wheel twine doctor-wheel auditwheel snakehouse satella
+      script:
+        - python setup.py bdist_wheel
+        - cd dist
+        - doctor-wheel *.whl
+        - auditwheel repair --plat manylinux2014_x86_64 *.whl
+        - twine upload -u $PYPI_USER -p $PYPI_PWD wheelhouse/*.whl
 
 
 
diff --git a/setup.cfg b/setup.cfg
index 3e4676b..addabcd 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,7 +1,7 @@
 # coding: utf-8
 [metadata]
 name = tempsdb
-version = 0.6.2a4
+version = 0.6.2
 long-description = file: README.md
 long-description-content-type = text/markdown; charset=UTF-8
 license_files = LICENSE
diff --git a/tests/test_database.py b/tests/test_database.py
index 4fd9574..8538b2d 100644
--- a/tests/test_database.py
+++ b/tests/test_database.py
@@ -9,6 +9,9 @@ class TestDatabase(unittest.TestCase):
     def setUpClass(cls) -> None:
         cls.db = create_database('my_db')
 
+    def test_checkpoint(self):
+        self.db.checkpoint()
+
     def test_metadata(self):
         meta = self.db.metadata
         self.assertFalse(self.db.metadata)
-- 
GitLab