Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify requirements in pyproject file #26

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.