Skip to content

Commit

Permalink
new repository file structure for toml based installation
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenwacker committed Jul 29, 2024
1 parent dc03236 commit 7b60a83
Show file tree
Hide file tree
Showing 22 changed files with 27 additions and 13 deletions.
7 changes: 2 additions & 5 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
include setup.cfg
include versioneer.py
include ms_mint/_version.py
include static/ChEBI-Chem.parquet
include static/ChEBI-Groups.parquet
include ms_mint/*.py
recursive-include ms_mint *
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,18 @@ dependencies = [
dynamic = ["version"]

[project.scripts]
ms-mint-convert = "scripts.ms_mint_convert:main"
ms-mint-convert = "ms_mint.scripts.ms_mint_convert:main"

[tool.setuptools]
packages = { find = { where = ["ms_mint"] } }
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
include = ["ms_mint*"]

[tool.setuptools_scm]
write_to = "src/ms_mint/_version.py"
version_scheme = "guess-next-dev"
local_scheme = "dirty-tag"

[tool.pytest]
addopts = "--maxfail=1 --disable-warnings"
testpaths = ["tests"]

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions ms_mint/__init__.py → src/ms_mint/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import os
import logging
from .Mint import Mint
from ._version import __version__

try:
from .version import __version__
except ImportError:
__version__ = "0.0.0"
__all__ = ["__version__"]

MINT_DATA_PATH = os.path.abspath(os.path.join(__path__[0], "..", "static"))

Mint.version = __version__

logging.info(Mint.version)

16 changes: 16 additions & 0 deletions src/ms_mint/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# file generated by setuptools_scm
# don't change, don't track in version control
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union
VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object

version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = '1.0.1.dev0+dirty'
__version_tuple__ = version_tuple = (1, 0, 1, 'dev0', 'dirty')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added src/ms_mint/scripts/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7b60a83

Please sign in to comment.