Skip to content

Commit

Permalink
Merge pull request #980 from arnaudbore/add_publish_action
Browse files Browse the repository at this point in the history
Fix install with version
  • Loading branch information
arnaudbore authored Apr 19, 2024
2 parents ec85869 + 32fe6c9 commit 2f4cdd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
3.10
~=3.9,<3.12
>=3.9,<3.12
17 changes: 2 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,8 @@ def run(self):
# Get the requiered python version
PYTHON_VERSION = ""
with open('.python-version') as f:
py_version = f.readline().strip("\n").split(".")
py_major = py_version[0]
py_minor = py_version[1]
py_micro = "*"
py_extra = None
if len(py_version) > 2:
py_micro = py_version[2]
if len(py_version) > 3:
py_extra = py_version[3]

PYTHON_VERSION = ".".join([py_major, py_minor, py_micro])
if py_extra:
PYTHON_VERSION = ".".join([PYTHON_VERSION, py_extra])

PYTHON_VERSION = "".join(["==", PYTHON_VERSION])
f.readline()
PYTHON_VERSION = f.readline().strip("\n")

# Get version and release info, which is all stored in scilpy/version.py
ver_file = os.path.join('scilpy', 'version.py')
Expand Down

0 comments on commit 2f4cdd9

Please sign in to comment.