-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
37 lines (29 loc) · 1.01 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
# Copyright 2021 Twitter, Inc.
# SPDX-License-Identifier: Apache-2.0
from setuptools import find_packages, setup
from twiser import __version__
def read_requirements(name):
with open("requirements/" + name + ".in") as f:
requirements = f.read().strip()
requirements = requirements.replace("==", ">=").splitlines() # Loosen strict pins
return [pp for pp in requirements if pp[0].isalnum()]
requirements = read_requirements("base")
test_requirements = read_requirements("tests")
with open("README.rst") as f:
long_description = f.read()
setup(
name="twiser",
version=__version__,
packages=find_packages(),
url="https://github.com/twitter/twiser/",
author="Ryan Turner",
author_email=("rdturnermtl@github.com"),
license="Apache v2",
description="Advanced variance reduction methods.",
python_requires=">=3.7",
install_requires=requirements,
extras_require={"test": test_requirements},
long_description=long_description,
long_description_content_type="text/x-rst",
platforms=["any"],
)