This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
forked from INFORMSJoC/2019.0902
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (40 loc) · 1.37 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
"""Packaging settings."""
import os
from codecs import open
from os.path import abspath, dirname, join
from subprocess import call
from setuptools import setup, Command
from pymoso import __version__
this_dir = abspath(dirname(__file__))
with open(join(this_dir, 'README.md'), encoding='utf-8') as file:
long_description = file.read()
class CleanCommand(Command):
"""Custom clean command to tidy up the project root."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
setup(
name = 'pymoso',
version = __version__,
description = 'Python Multi-Objective Simulation Optimization: a package for using, implementing, and testing simulation optimization algorithms.',
long_description = long_description,
long_description_content_type="text/markdown",
author = 'Kyle Cooper',
author_email = 'coope149@purdue.edu',
url = 'https://github.com/pymoso/PyMOSO',
packages = ['pymoso', 'pymoso.solvers', 'pymoso.commands', 'pymoso.prng', 'pymoso.problems', 'pymoso.testers'],
install_requires = ['docopt'],
entry_points = {
'console_scripts': [
'pymoso = pymoso.cli:main',
],
},
python_requires='>=3.6.0',
cmdclass={
'clean': CleanCommand,
},
)