forked from feature-engine/feature_engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (47 loc) · 1.74 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from pathlib import Path
from setuptools import find_packages, setup
# Package meta-data.
NAME = "feature_engine"
DESCRIPTION = "Feature engineering and selection package with Scikit-learn's fit transform functionality"
URL = "http://github.com/feature-engine/feature_engine"
EMAIL = "[email protected]"
AUTHOR = "Soledad Galli"
REQUIRES_PYTHON = ">=3.9.0"
# description
with open("README.md", "r") as fh:
long_description = fh.read()
# Packages required for this module to be executed
def list_reqs(fname='requirements.txt'):
with open(fname) as fd:
return fd.read().splitlines()
# Load the package's VERSION file as a dictionary.
about = {}
ROOT_DIR = Path(__file__).resolve().parent
PACKAGE_DIR = ROOT_DIR / 'feature_engine'
with open(PACKAGE_DIR / "VERSION") as f:
_version = f.read().strip()
about["__version__"] = _version
setup(name=NAME,
version=about["__version__"],
description=DESCRIPTION,
long_description=long_description,
long_description_content_type="text/markdown",
url=URL,
author=AUTHOR,
author_email=EMAIL,
python_requires=REQUIRES_PYTHON,
packages=find_packages(exclude=("tests",)),
package_data={"feature_engine": ["VERSION", "py.typed"]},
license='BSD 3 clause',
install_requires=list_reqs(),
include_package_data=True,
classifiers=[
# Trove classifiers
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
zip_safe=False)