Skip to content

Commit

Permalink
Build script update (#201)
Browse files Browse the repository at this point in the history
* fix : OPEM.spec updated

* fix : version_check.py script updated

* fix : wrong version tag in OPEM.spec fixed

* doc : CHANGELOG updated

* del : setup.cfg removed

* fix : minor edit in version_check.py script
  • Loading branch information
sepandhaghighi authored Nov 14, 2023
1 parent b847be6 commit cede447
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `AUTHORS.md` updated
- `README.md` modified
- Test system modified
- Setup system modified
- CLI mode updated
- `description_control` function modified
- `check_update` function modified
Expand Down
7 changes: 6 additions & 1 deletion OPEM.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
block_cipher = None


opem_version = "1.3"


a = Analysis(['opem/__main__.py'],
pathex=['opem'],
binaries=[],
Expand All @@ -16,12 +19,14 @@ a = Analysis(['opem/__main__.py'],
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)


exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='OPEM',
name='OPEM-'+opem_version,
debug=False,
strip=False,
upx=True,
Expand Down
4 changes: 3 additions & 1 deletion otherfile/version_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
TEST_ITEMS = ["New Version ({0}) Is Available!"]

META_ITEMS = ['% set version = "{0}" %']
SPEC_ITEMS = ['opem_version = "{0}"']

FILES = {
"setup.py": SETUP_ITEMS, "INSTALL.md": INSTALL_ITEMS, "CHANGELOG.md": CHANGELOG_ITEMS, os.path.join(
Expand All @@ -50,7 +51,8 @@
"otherfile", "test.html"): HTML_ITEMS, os.path.join(
"opem", "Params.py"): PARAMS_ITEMS, os.path.join(
"opem", "Test", "test_Functions.py"): TEST_ITEMS, os.path.join(
"otherfile", "meta.yaml"): META_ITEMS}
"otherfile", "meta.yaml"): META_ITEMS,
"OPEM.spec": SPEC_ITEMS}

TEST_NUMBER = len(FILES.keys()) + 1

Expand Down
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

0 comments on commit cede447

Please sign in to comment.