-
-
Notifications
You must be signed in to change notification settings - Fork 48
Use declarative setup.cfg; use setuptools_scm to set version #32
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
Closed
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
98adb50
Use declarative setup.cfg; use setuptools_scm to set version
ZedThree c851571
CI: Install package before testing
ZedThree 4bfee03
Apply black formatting
ZedThree 61dc04c
Merge branch 'dev' into feature/modernise-setup
ZedThree 9a1499c
Fix version import in docs
ZedThree debb896
Use `__package__` to get version
ZedThree 3e084e1
Fix formatting in setup.cfg
ZedThree ae35825
Add extra_requires for docs
ZedThree e4e3905
Drop required setuptools version down to 45
ZedThree 46c8d99
Use absolute import for importing version
ZedThree 6343000
Fix project url
ZedThree 97d1629
Install package on readthedocs
ZedThree a01a848
Revert "Install package on readthedocs"
ZedThree b4638af
Docs: Install package before building docs
ZedThree 69b58fd
Bump required sphinx to 4.0.0
ZedThree 19af1dc
CI: Use sphinx-toolbox fork of sphinx-action
ZedThree 5941f55
CI: Bump checkout action version
ZedThree 1dc53de
Merge branch 'dev' into feature/modernise-setup
ZedThree File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
dist/ | ||
docs/_build/ | ||
docs/fortls_changes.md | ||
fortls/_version.py | ||
|
||
.idea | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
try: | ||
from importlib.metadata import version, PackageNotFoundError | ||
except ModuleNotFoundError: | ||
from importlib_metadata import version, PackageNotFoundError | ||
try: | ||
__version__ = version(__package__) | ||
except PackageNotFoundError: | ||
from setuptools_scm import get_version | ||
|
||
__version__ = get_version(root="..", relative_to=__file__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 45", | ||
"wheel", | ||
"setuptools_scm[toml] >= 6.2", | ||
"setuptools_scm_git_archive", | ||
gnikit marked this conversation as resolved.
Show resolved
Hide resolved
|
||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "fortls/_version.py" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,58 @@ | ||
[metadata] | ||
name = fortls | ||
url = https://github.com/gnikit/fortls | ||
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 :: Fortran | ||
Operating System :: Microsoft :: Windows | ||
Operating System :: POSIX | ||
Operating System :: Unix | ||
Operating System :: MacOS | ||
project_urls = | ||
Source = https://github.com/gnikit/fortls | ||
Tracker = https://github.com/gnikit/fortls/issues | ||
|
||
[options] | ||
packages = find: | ||
python_requires = >= 3.7 | ||
install_requires = | ||
importlib-metadata; python_version < "3.8" | ||
|
||
[options.package_data] | ||
fortls = *.json | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
fortls = fortls.__init__:main | ||
|
||
[options.extras_require] | ||
tests = | ||
pytest >= 5.4.3 | ||
pytest-cov >= 2.12.1 | ||
black | ||
docs = | ||
sphinx ~= 4.0.0 | ||
sphinx_rtd_theme | ||
sphinx-argparse | ||
sphinx-autodoc-typehints | ||
myst-parser | ||
|
||
[flake8] | ||
max-line-length = 88 | ||
extend-ignore = E203,E722 | ||
extend-ignore = E203, E722 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.