Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/monorepo #131

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from
Open

Feature/monorepo #131

wants to merge 22 commits into from

Conversation

ggsdc
Copy link
Member

@ggsdc ggsdc commented Jul 10, 2024

This PR changes the repository structure to make sure that we can have different libraries that share the same namespace.

The main missing changes is to update all the documentation to point to the new location of the code

ggsdc added 2 commits July 5, 2024 12:17
…been run.

This should help reduce the number of uploads in the future if this workflow is reused
@ggsdc ggsdc added the enhancement New feature or request label Jul 10, 2024
@ggsdc ggsdc self-assigned this Jul 10, 2024
@ggsdc ggsdc mentioned this pull request Jul 11, 2024
@ggsdc ggsdc changed the base branch from development to develop July 11, 2024 14:55
"""

__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__version__ = "0.2.3a1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong version

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add a test like this

import mango
from unittest import TestCase
import os
from mango.tests.const import normalize_path


class InitializeTest(TestCase):
    def test_version_matches(self):
        with open(normalize_path(os.path.join("..","..","pyproject.toml")),"r") as f:
            pyproject = f.read()
        version = pyproject.split("version = ")[1].split("\n")[0].replace('"','')
        self.assertEqual(mango.__version__,version)

However, this raises the following question. What would happen when we run mango.__version__ will it print base __version__ or time_series __version__

needs: unit-testing
defaults:
run:
working-directory: ./mango_time_series
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why working directory mango_time_series? What happens to mango_base?

@@ -0,0 +1,16 @@
from unittest import TestCase

from mango_time_series.mango.time_series import TimeSeriesDataFrame
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this import be as follows:

from mango.time_series import TimeSeriesDataFrame

def __init__(self):
pass

def hellow_world(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants