-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
51 lines (42 loc) · 1.61 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
import os
import re
# Workaround for pip >= 10
try:
from pip._internal.req import parse_requirements
except ImportError:
from pip.req import parse_requirements
from setuptools import setup, find_packages
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements('requirements.txt', session='hack')
# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.req) for ir in install_reqs]
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
def read_version():
with open('pytorch_es/__init__.py') as f:
return re.search(r'__version__ = \'(.+)\'$', f.readline()).group(1)
setup(
name='pytorch_es',
version=read_version(),
license='MIT',
description='Evolutionary Strategies using PyTorch',
long_description=read('README.md'),
url='https://github.com/staturecrane/PyTorch-ES',
author='Richard Herbert',
author_email='[email protected]',
packages=find_packages(),
install_requires=reqs,
keywords=["machine learning", "ai", "evolutionary strategies", "reinforcement learning", "pytorch"],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
],
)