-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
35 lines (31 loc) · 1.28 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
import setuptools
from pip._internal.req import parse_requirements
from setuptools import setup
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# hacky, but https://stackoverflow.com/questions/14399534/reference-requirements-txt-for-the-install-requires-kwarg-in-setuptools-setup-py
install_reqs = parse_requirements('requirements.txt', session=None)
reqs = [str(ir.requirement) for ir in install_reqs]
setup(
name="sprucfluo",
version="0.1.0",
author="David Hall",
author_email="[email protected]",
description="A package preprocessing data for language models",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://www.github.com/stanford-crfm/sprucfluo",
packages=setuptools.find_packages(where="src", exclude=('tests',)),
# https://stackoverflow.com/questions/70777486/pip-install-e-doesnt-allow-to-import-via-package-dir
package_dir={'': 'src/'},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
python_requires=">=3.7",
install_requires=reqs,
license="Apache 2.0",
ext_package='sprucfluo',
)