-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
37 lines (30 loc) · 938 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
35
36
37
import os
import io
from setuptools import setup, find_packages
VERSION = "0.1.0"
DESCRIPTION = "Generic toolkit for polymer simulation setup and analysis"
def _read(*parts, **kwargs):
filepath = os.path.join(os.path.dirname(__file__), *parts)
encoding = kwargs.pop("encoding", "utf-8")
with io.open(filepath, encoding=encoding) as fh:
text = fh.read()
return text
def get_requirements(path):
content = _read(path)
return [
req
for req in content.split("\n")
if req != "" and not (req.startswith("#") or req.startswith("-"))
]
install_requires = get_requirements("requirements.txt")
setup(
name="polykit",
version=VERSION,
description=DESCRIPTION,
url="https://github.com/open2c/polykit",
author="Open2C",
author_email="[email protected]",
license="MIT",
packages=find_packages(),
install_requires=install_requires
)