Skip to content

Commit

Permalink
Version update (#13)
Browse files Browse the repository at this point in the history
* Removes version definition from setup.py

* Removes version definition from setup.py

* Add tests for setup config + changelog

Added setup_config_class to test for changes in setup.cfg.
  • Loading branch information
ralphthehacker authored Oct 24, 2022
1 parent 77fe340 commit 44129dc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
5 changes: 4 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Changelog
All notable changes to this project will be documented in this file.
## [Unreleased] - 2022-10-19
## Changed
* Moved information of python version to the class initialization.

## [0.0.13] - 2020-09-16
### Added
* Created changelog
* Fixed job status error string format
* Added black for code formatting
* Added black for code formatting
* Fixed python semantics
* Moved zipfile out from webapi class
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
version = attr: smile_id_core.__version__
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

setup(
name="smile_id_core",
version="1.0.8",
description="The official Smile Identity package exposes four classes namely; the WebApi class, the IDApi class, the Signature class and the Utilities class.",
packages=find_packages(exclude=["*.tests", "*.tests.*"]),
long_description=long_description,
Expand Down
1 change: 1 addition & 0 deletions smile_id_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
from smile_id_core.Signature import Signature
from smile_id_core.ServerError import ServerError

__version__ = "1.0.8"
__all__ = ["IdApi", "Signature", "Utilities", "WebApi", "ServerError"]
13 changes: 13 additions & 0 deletions tests/setup_config_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""
This test suite contains different test around testing different setup configurations
for the core library.
"""
import unittest
from smile_id_core import __version__


class SetupConfigTest(
unittest.TestCase,
):
def test_version_exists(self):
self.assertIsNotNone(__version__, "Package version is not defined.")

0 comments on commit 44129dc

Please sign in to comment.