Skip to content

Commit f1425cd

Browse files
committed
WIP: Improving versioning
1 parent 089c8db commit f1425cd

File tree

7 files changed

+22
-4
lines changed

7 files changed

+22
-4
lines changed

.bumpversion.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[bumpversion]
2+
current_version = 0.4.2
3+
commit = True
4+
tag = True
5+
6+
[bumpversion:file:gymie/__init__.py]

build.sh

100644100755
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
#!/bin/bash
22

3+
if [[ -z "$1" ]]; then
4+
echo "Current version is missing"
5+
exit 0
6+
fi
7+
8+
if [[ -z "$2" ]]; then
9+
echo "Part is missing: major|minor|patch"
10+
exit 0
11+
fi
12+
313
rm -rf dist
14+
bumpversion --current-version $1 $2 gymie/__init__.py
415
python setup.py sdist bdist_wheel

publish.sh

100644100755
File mode changed.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import setuptools
2+
import gymie
23

34
with open("README.md", "r") as fh:
45
long_description = fh.read()
56

67
setuptools.setup(
78
name="gymie",
8-
version="0.4.2",
9+
version=gymie.__version__,
910
author="Francisco Ramos",
1011
author_email="francisco.ramos@researchlab.ai",
1112
description="WebSocket server that exposes an API to train AI agents on OpenAI Gym and gym-api-like Environments",

tests/test_gymie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import uuid
44
import json

tests/test_gymie_retro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import uuid
44
import json

tests/test_gymie_unity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import os
44
import uuid

0 commit comments

Comments
 (0)