-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
31 lines (25 loc) · 948 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
"""setup.py"""
import re
from setuptools import setup, find_packages
with open("README.md", "r", encoding="utf8") as handle:
lines = handle.readlines()
# Remove links from TOC since they aren't supported on PyPI
start = lines.index("## Table of contents\n") + 1
end = lines.index("## 📔 Citation\n")
for i in range(start, end):
lines[i] = re.sub(r"\[([^]]+)\]\([^)]+\)", r"\1", lines[i])
long_description = "".join(lines)
setup(
name="fast-engset",
author="Parsiad Azimzadeh, Tommy Carpenter",
author_email="parsiad.azimzadeh@gmail.com",
description=("Fast and accurate routines to compute various quantities in the Engset model."),
extras_require={"JIT": ["numba"]},
license="MIT",
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=["numpy"],
packages=find_packages(),
url="https://github.com/parsiad/fast-engset",
version="3.0.1",
)