Skip to content

Commit

Permalink
standardize setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishokamp committed Feb 25, 2023
1 parent dda58b3 commit 09abb0a
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,32 @@
with open("VERSION") as f:
version = f.read().strip()

# TODO: this is not the advised way to do this for a library
# but before fixing it, we need to decide on the best way to install spacy models

# Try not to add new dependencies unless they are really essential.
# If you add a new dependency, make sure to make the version range as wide as possible.
# TODO: we need to decide on the best way to install particular spacy models
# and other data files that are not python modules.
with open('requirements.txt') as f:
requirements = f.read().splitlines()
INSTALL_REQUIRES = [
"arrow>=1.1.1",
"matplotlib>=3.5.3",
"networkx<=2.7",
"pandas>=1.4.1",
"pyarrow>=11.0.0",
"ratelimit>=2.2.1",
"requests>=2.28.1",
"scikit-learn>=1.1.0",
"scipy>=1.8",
"spacy>=3.4.1,<4.0.0",
"sqlitedict>=1.7.0",
"tqdm>=4.62.3",
"Wikidata>=0.7.0"
]

setup(
name="news-signals",
version=version,
description="A library for working with text and timeseries data.",
install_requires=requirements,
install_requires=INSTALL_REQUIRES,
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
readme="README.md",
Expand Down

0 comments on commit 09abb0a

Please sign in to comment.