-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
34 lines (28 loc) · 1011 Bytes
/
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
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='granular',
version=parse_version('granular/__init__.py'),
description='Fast format for datasets.',
url='https://github.com/danijar/granular',
long_description=pathlib.Path('README.md').read_text(),
long_description_content_type='text/markdown',
packages=['granular'],
include_package_data=True,
install_requires=parse_requirements('requirements.txt'),
classifiers=[
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
)