Skip to content

Commit

Permalink
Unify requirements in pyproject file
Browse files Browse the repository at this point in the history
  • Loading branch information
ghisvail committed Apr 25, 2024
1 parent efe15cf commit ca5e7dd
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install flake8
pip install -r requirements-dev.txt
pip install '.[dev,tests]'
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
10 changes: 6 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ build:

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
configuration: docs/source/conf.py

# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
# - pdf

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: requirements-dev.txt
- requirements: docs/requirements-doc.txt
install:
- method: pip
path: .
extra_requirements:
- doc
3 changes: 0 additions & 3 deletions docs/requirements-doc.txt

This file was deleted.

23 changes: 17 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,26 @@ classifiers = [
]
keywords = ["NLP", "semantic annotation", "entity linking"]
dependencies = [
"anyascii>=0.3.2",
"typing_extensions>=4.7.0",
"spellwise>=0.8.0",
"pysimstring~=1.2.1",
"anyascii",
"pysimstring",
"spellwise",
"typing_extensions",
]

[project.optional-dependencies]
tests = ['nltk>=3.8.0', 'spacy>=3.2.0']
doc = ["sphinx"]
dev = [
"black",
"flake8",
"pre-commit",
]
doc = [
"sphinx",
"sphinx-rtd-theme",
]
tests = [
"nltk",
"spacy",
]

[project.urls]
"Homepage" = "https://github.com/scossin/iamsystem_python"
Expand Down
10 changes: 0 additions & 10 deletions requirements-dev.txt

This file was deleted.

5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

0 comments on commit ca5e7dd

Please sign in to comment.