File size: 2,852 Bytes
22e9d3d
 
0316f5a
22e9d3d
0316f5a
22e9d3d
0316f5a
22e9d3d
0316f5a
 
 
 
22e9d3d
0316f5a
 
 
 
 
 
 
 
 
 
 
1446c0e
518cb1f
0316f5a
4e0be0a
0316f5a
 
 
 
 
 
4bbf21d
0316f5a
1446c0e
0316f5a
 
518cb1f
0316f5a
b3e7016
0316f5a
 
 
 
 
0a69861
0316f5a
b3e7016
 
0316f5a
 
 
 
 
b3e7016
 
1a454bf
 
b3e7016
 
 
 
0316f5a
4bbf21d
b3e7016
 
1a454bf
 
b3e7016
 
 
0316f5a
 
 
3831d64
 
 
1446c0e
 
0316f5a
 
 
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# The Selector library provides a set of tools for selecting a
# subset of the dataset and computing diversity.
#
# Copyright (C) 2023 The QC-Devs Community
#
# This file is part of Selector.
#
# Selector is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# Selector is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>
#
# --
"""Setup and Install Script."""

import sys

from setuptools import setup

short_description = "Subset selection with maximized diversity".split("\n")[0]

# from https://github.com/pytest-dev/pytest-runner#conditional-requirement
needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv)
pytest_runner = ["pytest-runner"] if needs_pytest else []

try:
    with open("README.md") as handle:
        long_description = handle.read()
except ValueError:
    long_description = short_description


setup(
    name="selector",
    author="QC-Devs Community",
    author_email="[email protected]",
    description=short_description,
    long_description=long_description,
    long_description_content_type="text/markdown",
    version="0.0.1",
    license="GNU (Version 3)",
    package_dir={"selector": "selector"},
    packages=["selector", "selector.methods", "selector.tests", "selector.methods.tests"],
    # Optional include package data to ship with your package
    # Customize MANIFEST.in if the general case does not suit your needs
    # Comment out this line to prevent the files from being packaged with your software
    include_package_data=True,
    # Allows `setup.py test` to work correctly with pytest
    setup_requires=[
        "numpy>=1.21.2",
        "scipy>=1.11.1",
        "pytest>=7.4.0",
        "scikit-learn",
        "bitarray",
    ]
    + pytest_runner,
    # Additional entries you may want simply uncomment the lines you want and fill in the data
    url="https://github.com/theochem/Selector",  # Website
    install_requires=[
        "numpy>=1.21.2",
        "scipy>=1.11.1",
        "pytest>=7.4.0",
        "scikit-learn",
        "bitarray",
    ],
    # platforms=["Linux",
    #            "Mac OS-X",
    #            "Unix",
    #            "Windows"],
    # Python version restrictions
    python_requires=">=3.7",
    # Manual control if final package is compressible or not, set False to prevent the .egg
    # from being made
    # zip_safe=False,
    # todo: add classifiers
)