Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
1. module paths
2. new version number in pyproject.toml
3. location of test script
  • Loading branch information
pchakraborty committed Mar 12, 2024
1 parent 3a021d3 commit b9e8c71
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mepo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
timeout-minutes: 5

- name: Run unit tests
run: python3 mepo.d/utest/test_mepo_commands.py -v
run: python3 tests/test_mepo_commands.py -v
timeout-minutes: 5
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ build-backend = "setuptools.build_meta"

[project]
name = "mepo"
version = "v1.55.0"
authors = ["GMAO SI Team"]
description = "Tool to manage (m)ultiple git r(epo)sitories"
version = "v1.59.0"
authors = [
{name = "GMAO SI Team", email = "[email protected]"},
]
description = "Add description here"
requires-python = ">= 3.9"
license = {file = "LICENSE"}
readme = "README.md"
Expand All @@ -18,7 +20,7 @@ dependencies = [
Homepage = "https://github.com/GEOS-ESM/mepo"

[project.scripts]
mepo = "mepo:main"
mepo = "mepo.main:main"

[tool.setuptools]
include-package-data = true
4 changes: 2 additions & 2 deletions src/mepo/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from cmdline.parser import MepoArgParser
from command import command
from mepo.cmdline.parser import MepoArgParser
from mepo.command import command

def main():
args = MepoArgParser().parse()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mepo_commands.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import sys
THIS_DIR = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.join(THIS_DIR, '..'))
sys.path.insert(0, os.path.join(THIS_DIR, '..', 'src'))
import shutil
import shlex
import unittest
Expand Down

0 comments on commit b9e8c71

Please sign in to comment.