Skip to content

Commit 8ad5542

Browse files
Version 2.0.1: pyproject.toml
1 parent a5ca580 commit 8ad5542

File tree

3 files changed

+67
-79
lines changed

3 files changed

+67
-79
lines changed

gmr/__init__.py

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,16 @@
55
Gaussian Mixture Models (GMMs) for clustering and regression in Python.
66
"""
77

8-
__version__ = "2.0.0"
8+
__version__ = "2.0.1"
99

10-
try:
11-
# Idea from sklearn:
12-
# This variable is injected in the __builtins__ by the build
13-
# process. It is used to enable importing subpackages when
14-
# the dependencies are not available.
15-
__GMR_SETUP__
16-
except NameError:
17-
__GMR_SETUP__ = False
1810

11+
from . import gmm, mvn, utils
1912

20-
if not __GMR_SETUP__:
21-
from . import gmm, mvn, utils
13+
__all__ = ["gmm", "mvn", "utils", "sklearn"]
2214

23-
__all__ = ["gmm", "mvn", "utils", "sklearn"]
15+
from .mvn import MVN, plot_error_ellipse
16+
from .gmm import (GMM, plot_error_ellipses, kmeansplusplus_initialization,
17+
covariance_initialization)
2418

25-
from .mvn import MVN, plot_error_ellipse
26-
from .gmm import (GMM, plot_error_ellipses, kmeansplusplus_initialization,
27-
covariance_initialization)
28-
29-
__all__.extend(["MVN", "plot_error_ellipse", "GMM", "plot_error_ellipses",
30-
"kmeansplusplus_initialization", "covariance_initialization"])
19+
__all__.extend(["MVN", "plot_error_ellipse", "GMM", "plot_error_ellipses",
20+
"kmeansplusplus_initialization", "covariance_initialization"])

pyproject.toml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "gmr"
7+
maintainers = [
8+
{ name="Alexander Fabisch", email="alexander.fabisch@dfki.de" },
9+
]
10+
authors = [
11+
{ name="Alexander Fabisch", email="alexander.fabisch@dfki.de" },
12+
]
13+
description = "Gaussian Mixture Regression"
14+
requires-python = ">=2.7"
15+
license = "BSD-3-Clause"
16+
classifiers = [
17+
"Intended Audience :: Science/Research",
18+
"Intended Audience :: Developers",
19+
"Programming Language :: Python",
20+
"Topic :: Software Development",
21+
"Topic :: Scientific/Engineering",
22+
"Operating System :: Microsoft :: Windows",
23+
"Operating System :: POSIX",
24+
"Operating System :: Unix",
25+
"Operating System :: MacOS",
26+
"Programming Language :: Python :: 2",
27+
"Programming Language :: Python :: 2.7",
28+
"Programming Language :: Python :: 3",
29+
"Programming Language :: Python :: 3.4",
30+
"Programming Language :: Python :: 3.5",
31+
"Programming Language :: Python :: 3.6",
32+
"Programming Language :: Python :: 3.7",
33+
"Programming Language :: Python :: 3.8",
34+
"Programming Language :: Python :: 3.9",
35+
"Programming Language :: Python :: 3.10",
36+
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
38+
"Programming Language :: Python :: 3.13",
39+
]
40+
dependencies = ["numpy", "scipy"]
41+
readme = "README.rst"
42+
dynamic = ["version"]
43+
44+
[project.optional-dependencies]
45+
all = ["matplotlib", "scikit-learn", "svgpathtools"]
46+
test = ["pytest", "pytest-cov"]
47+
doc = ["pdoc3"]
48+
49+
[project.urls]
50+
Homepage = "https://github.com/AlexanderFabisch/gmr"
51+
Issues = "https://github.com/AlexanderFabisch/gmr/issues"
52+
53+
[tool.setuptools.packages.find]
54+
where = ["."]
55+
include = ["gmr"]
56+
57+
[tool.setuptools.dynamic]
58+
version = {attr = "gmr.__version__"}
59+
readme = {file = ["README.rst"]}

setup.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)