Skip to content

Commit cddcd95

Browse files
committed
Add setup.cfg for package metadata and simplify setup.py
1 parent 83a7656 commit cddcd95

File tree

2 files changed

+42
-50
lines changed

2 files changed

+42
-50
lines changed

setup.cfg

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[metadata]
2+
name = fuzzylogic
3+
version = attr: src.fuzzylogic.__version__
4+
description = Fuzzy Logic for Python 3
5+
long_description = file: README.md
6+
long_description_content_type = text/markdown
7+
author = Anselm Kiefner
8+
author_email = [email protected]
9+
license = MIT
10+
url = https://github.com/amogorkon/fuzzylogic
11+
classifiers =
12+
Development Status :: 5 - Production/Stable
13+
Intended Audience :: Developers
14+
Intended Audience :: Education
15+
Intended Audience :: Manufacturing
16+
Intended Audience :: Science/Research
17+
Natural Language :: English
18+
License :: OSI Approved :: MIT License
19+
Operating System :: OS Independent
20+
Programming Language :: Python :: 3 :: Only
21+
Topic :: Scientific/Engineering :: Artificial Intelligence
22+
Topic :: Scientific/Engineering :: Mathematics
23+
Topic :: Scientific/Engineering :: Information Analysis
24+
keywords = fuzzy logic
25+
26+
[options]
27+
packages = find:
28+
package_dir =
29+
= src
30+
zip_safe = False
31+
python_requires = >=3.12
32+
33+
[options.packages.find]
34+
where = src
35+
36+
[options.extras_require]
37+
plotting =
38+
matplotlib
39+
numba =
40+
numba

setup.py

+2-50
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,3 @@
1-
import os
2-
import pathlib
3-
import sys
1+
from setuptools import setup
42

5-
from setuptools import find_packages, setup
6-
7-
from src.fuzzylogic import __version__
8-
9-
here = os.path.abspath(os.path.dirname(__file__))
10-
src = os.path.join(here, "src/fuzzylogic")
11-
sys.path.append(src)
12-
13-
__license__ = "MIT"
14-
__author__ = "Anselm Kiefner"
15-
__contact__ = "[email protected]"
16-
17-
classifiers = [
18-
"Development Status :: 5 - Production/Stable",
19-
"Intended Audience :: Developers",
20-
"Intended Audience :: Education",
21-
"Intended Audience :: Manufacturing",
22-
"Intended Audience :: Science/Research",
23-
"Natural Language :: English",
24-
"License :: OSI Approved :: MIT License",
25-
"Operating System :: OS Independent",
26-
"Programming Language :: Python :: 3 :: Only",
27-
"Topic :: Scientific/Engineering :: Artificial Intelligence",
28-
"Topic :: Scientific/Engineering :: Mathematics",
29-
"Topic :: Scientific/Engineering :: Information Analysis",
30-
]
31-
32-
setup(
33-
packages=find_packages(where="src"),
34-
package_dir={"": "src"},
35-
long_description=pathlib.Path("README.md").read_text(),
36-
long_description_content_type="text/markdown",
37-
zip_safe=False,
38-
name="fuzzylogic",
39-
description="Fuzzy Logic for Python 3",
40-
license=__license__,
41-
url="https://github.com/amogorkon/fuzzylogic",
42-
version=".".join(str(c) for c in __version__),
43-
author=__author__,
44-
author_email=__contact__,
45-
python_requires=">=3.12",
46-
keywords="fuzzy logic",
47-
classifiers=classifiers,
48-
extras_require={
49-
"plotting": ["matplotlib"],
50-
},
51-
)
3+
setup()

0 commit comments

Comments
 (0)