Skip to content

build: move project setup to pyproject.toml #384

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

Merged
merged 2 commits into from
May 5, 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
- Changed automatic detection of fixed/free-form of files to ignore
preprocessor lines.
([#302](https://github.com/fortran-lang/fortls/pull/302))
- Moved project setup from `setup.cfg` to `pyproject.toml`
([#384](https://github.com/fortran-lang/fortls/pull/384))
- Bumped `setuptools` version to `>=61.0.0`
([#384](https://github.com/fortran-lang/fortls/pull/384))

### Fixed

Expand Down
85 changes: 80 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,86 @@
[build-system]
requires = [
"setuptools >= 45",
"wheel",
"setuptools_scm[toml] >= 7.0",
]
requires = ["setuptools >= 61", "wheel", "setuptools_scm[toml] >= 7.0"]
build-backend = "setuptools.build_meta"

[project]
name = "fortls"
description = "fortls - Fortran Language Server"
readme = "README.md"
authors = [{ name = "Giannis Nikiteas", email = "giannis.nikiteas@gmail.com" }]
license = { text = "MIT" }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Fortran",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
keywords = [
"fortran",
"language server",
"language server protocol",
"lsp",
"fortls",
]
dynamic = ["version"]
requires-python = ">=3.7"
dependencies = [
"json5",
"packaging",
"importlib-metadata; python_version < '3.8'",
"typing-extensions; python_version < '3.8'",
]

[project.optional-dependencies]
dev = [
"pytest >= 7.2.0",
"pytest-cov >= 4.0.0",
"pytest-xdist >= 3.0.2",
"black",
"isort",
"pre-commit",
"pydantic",
]
docs = [
"sphinx >= 4.0.0",
"sphinx-argparse",
"sphinx-autodoc-typehints",
"sphinx_design",
"sphinx-copybutton",
"furo",
"myst-parser",
"sphinx-sitemap",
]

[project.urls]
homepage = "https://fortls.fortran-lang.org"
Documentation = "https://fortls.fortran-lang.org"
Changes = "https://github.com/fortran-lang/fortls/blob/master/CHANGELOG.md"
Tracker = "https://github.com/fortran-lang/fortls/issues"
"Source Code" = "https://github.com/fortran-lang/fortls"

[project.scripts]
fortls = "fortls.__init__:main"

[tool.setuptools.packages.find]
include = ["fortls"]

[tool.setuptools.package-data]
fortls = ["parsers/internal/*.json"]

[tool.setuptools_scm]
write_to = "fortls/_version.py"

Expand Down
76 changes: 0 additions & 76 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,79 +1,3 @@
[metadata]
name = fortls
url = https://fortls.fortran-lang.org
author = Giannis Nikiteas
author_email = giannis.nikiteas@gmail.com
description = fortls - Fortran Language Server
long_description = file: README.md
long_description_content_type = text/markdown
license = MIT
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Developers
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Natural Language :: English
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Fortran
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
keywords =
fortran
language server
language server protocol
lsp
fortls
project_urls =
# Donate = https://github.com/sponsors/gnikit
Documentation = https://fortls.fortran-lang.org
Changes = https://github.com/fortran-lang/fortls/blob/master/CHANGELOG.md
Tracker = https://github.com/fortran-lang/fortls/issues
Source Code = https://github.com/fortran-lang/fortls

[options]
packages = find:
python_requires = >= 3.7
install_requires =
json5
packaging
importlib-metadata; python_version < "3.8"
typing-extensions; python_version < "3.8"

[options.package_data]
fortls = parsers/internal/*.json

[options.entry_points]
console_scripts =
fortls = fortls.__init__:main

[options.extras_require]
dev =
pytest >= 7.2.0
pytest-cov >= 4.0.0
pytest-xdist >= 3.0.2
black
isort
pre-commit
pydantic
docs =
sphinx >= 4.0.0
sphinx-argparse
sphinx-autodoc-typehints
sphinx_design
sphinx-copybutton
furo
myst-parser
sphinx-sitemap

[flake8]
max-line-length = 88
extend-ignore = E203, E722