-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
36 lines (30 loc) · 1.07 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
import pathlib
import re
import setuptools
def parse_requirements(filename):
requirements = pathlib.Path(filename)
requirements = requirements.read_text().split('\n')
requirements = [x for x in requirements if x.strip()]
return requirements
def parse_version(filename):
text = (pathlib.Path(__file__).parent / filename).read_text()
version = re.search(r"__version__ = '(.*)'", text).group(1)
return version
setuptools.setup(
name='portal',
version=parse_version('portal/__init__.py'),
author='Danijar Hafner',
author_email='mail@danijar.com',
description='Fast and reliable distributed systems in Python',
url='http://github.com/danijar/portal',
long_description=pathlib.Path('README.md').read_text(),
long_description_content_type='text/markdown',
packages=['portal'],
include_package_data=True,
install_requires=parse_requirements('requirements.txt'),
classifiers=[
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
)