Skip to content

Commit c831be1

Browse files
authored
Update pyproject.toml (#76)
* Update pyproject.toml * Version to 2.0.4 * Remove dynamic version --------- Co-authored-by: tommyod <tommy.odland>
1 parent b6d4b25 commit c831be1

File tree

2 files changed

+12
-19
lines changed

2 files changed

+12
-19
lines changed

efficient_apriori/__init__.py

+5-10
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
Implementation of the Apriori algorithm.
55
"""
66

7-
# We use semantic versioning
8-
# See https://semver.org/
9-
__version__ = "2.0.3"
10-
11-
import sys
7+
import importlib.metadata
128
from efficient_apriori.apriori import apriori
139
from efficient_apriori.itemsets import itemsets_from_transactions
1410
from efficient_apriori.rules import Rule, generate_rules_apriori
1511

12+
# We use semantic versioning
13+
# See https://semver.org/
14+
__version__ = importlib.metadata.version("efficient_apriori")
15+
1616
__all__ = ["apriori", "itemsets_from_transactions", "Rule", "generate_rules_apriori"]
1717

1818

@@ -25,8 +25,3 @@ def run_tests():
2525

2626
base, _ = os.path.split(__file__)
2727
pytest.main(args=[base, "--doctest-modules"])
28-
29-
30-
if (sys.version_info[0] < 3) or (sys.version_info[1] < 7):
31-
msg = "The `efficient_apriori` package only works for Python 3.7+."
32-
raise Exception(msg)

pyproject.toml

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[build-system]
2-
requires = ["setuptools","twine", "wheel","efficient_apriori"]
2+
requires = ["setuptools", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "efficient_apriori"
7-
dynamic = ["readme","dependencies","version"]
7+
version = "2.0.4"
8+
dynamic = ["readme"]
89
description = " An efficient Python implementation of the Apriori algorithm."
910
license = {file = "LICENSE"}
1011
authors = [
@@ -19,32 +20,29 @@ classifiers = [
1920
"Programming Language :: Python :: 3.11",
2021
"Programming Language :: Python :: 3.12",
2122
]
22-
requires-python = ">=3.7"
23+
requires-python = ">=3.8"
2324

2425
[project.urls]
2526
Source = "https://github.com/tommyod/Efficient-Apriori"
27+
Homepage = "https://github.com/tommyod/Efficient-Apriori"
28+
Documentation = "https://github.com/tommyod/Efficient-Apriori#readme"
2629
Repository = "https://github.com/tommyod/Efficient-Apriori.git"
2730

2831
[tool.setuptools.dynamic]
29-
version = {attr = "efficient_apriori.__version__"}
3032
readme = { file = "README.md", content-type = "text/markdown"}
31-
dependencies = {file = ["requirements.txt"]}
3233

3334
[tool.setuptools.packages.find]
3435
where = ["efficient_apriori"]
3536
exclude = ["contrib", "docs", "tests"]
3637
namespaces = false
3738

38-
[tool.setuptools.package-data]
39-
"*" = ["templates/*", "*.tex", "*.html"]
40-
4139
[tool.pytest.ini_options]
4240
testpaths = ["efficient_apriori/tests"]
4341
addopts = "-v -ra -q"
4442
log_cli = true
4543
log_cli_level = "INFO"
4644
log_format = "%(asctime)s %(levelname)s %(message)s"
4745
log_date_format = "%Y-%m-%d %H:%M:%S"
48-
minversion = "3.6"
46+
minversion = "3.7"
4947
filterwarnings = "ignore"
5048
norecursedirs = "docs"

0 commit comments

Comments
 (0)