Skip to content

Commit

Permalink
build: Convert build to pyproject.toml (#44)
Browse files Browse the repository at this point in the history
I replaced versioneer with setuptools-git-versioning

I also deleted the CHANGELOG because we don't ever update that.

See chime-experiment/mkchimeenv#10
  • Loading branch information
ketiltrout authored Jul 31, 2024
1 parent 5030a52 commit 3a9b8f9
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 3,187 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Install chimedb
run: |
pip install .[tests]
pip install .[test]
- name: Run tests
run: pytest .
93 changes: 0 additions & 93 deletions CHANGELOG.md

This file was deleted.

2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

14 changes: 9 additions & 5 deletions chimedb/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@
from .context import atomic
from . import mediawiki

from . import _version

__version__ = _version.get_versions()["version"]
del _version

__all__ = [
"CHIMEdbError",
"NotFoundError",
Expand All @@ -140,3 +135,12 @@
"mediawiki",
"__version__",
]

from importlib.metadata import version, PackageNotFoundError

try:
__version__ = version("chimedb.core")
except PackageNotFoundError:
# package is not installed
pass
del version, PackageNotFoundError
Loading

0 comments on commit 3a9b8f9

Please sign in to comment.