forked from geatpy-dev/geatpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (54 loc) · 1.96 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
56
57
# -*- coding: utf-8 -*-
# This is a list of files to install Geatpy
#
# Geatpy is a free toolbox: you can redistribute it and/or modify as you want.
#
# Geatpy is distributed in the hope that it will be useful for the genetic
# and evolutionary algorithm, you can get the tutorial from http://www.geatpy.com
#
# If you want to donate to it, please email [email protected]
import pathlib
import platform
import shutil
import sys
import setuptools
from setuptools import setup
dest_path = pathlib.Path('geatpy/core/')
source_path = pathlib.Path('_core/')
if dest_path.exists():
shutil.rmtree(dest_path)
dest_path.mkdir()
(dest_path / '__init__.py').touch()
python_version = 'v{}.{}'.format(sys.version_info.major,
sys.version_info.minor)
core_path = (source_path / '{}'.format(platform.system())
/ 'lib{}'.format(platform.architecture()[0][:2]) / python_version)
for file in core_path.iterdir():
shutil.copy(file, dest_path / file.name)
setup(
name="geatpy",
version="2.7.0",
description=("Geatpy is a high-performance "
"Genetic and Evolutionary Algorithms toolbox for Python."),
author="Geatpy Team",
author_email="[email protected]",
url="http://www.geatpy.com",
packages=setuptools.find_packages(exclude=['tests']),
include_package_data=True, # Enabled list file: MANIFEST.in
python_requires='>=3.5, <3.11',
install_requires=[
'numpy>=1.17.0',
'matplotlib>=3.0.0',
],
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Programming Language :: Python',
],
long_description=(
"Geatpy--The Genetic and Evolutionary Algorithms Toolbox for Python. "
"http://www.geatpy.com"))