-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from gnikit/feature/modernise-setup
Feature/modernise setup
- Loading branch information
Showing
24 changed files
with
139 additions
and
141 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
|
@@ -18,18 +18,6 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# # This is a temporary workaround until GitHub Actions start natively | ||
# # supporting signed commits like they should | ||
# - name: Import GPG key | ||
# id: import_gpg | ||
# uses: crazy-max/ghaction-import-gpg@v4 | ||
# with: | ||
# gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
# passphrase: ${{ secrets.PASSPHRASE }} | ||
# git_user_signingkey: true | ||
# git_commit_gpgsign: true | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
|
@@ -40,37 +28,6 @@ jobs: | |
python -m pip install --upgrade pip | ||
pip install build | ||
# see: https://github.community/t/how-to-get-just-the-tag-name/16241/7 | ||
- name: Get the version | ||
id: get_version | ||
shell: bash | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
|
||
- name: Set global variables | ||
shell: bash | ||
run: | | ||
echo "VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV | ||
- name: Set __version__ | ||
shell: bash | ||
run: sed -i "s@\".*\"@\"${VERSION}\"@g" "fortls/_version.py" | ||
|
||
# Disabled the workflow because it messes up with the Releases on GitHub | ||
# releases that use tags through force-push are marked as drafts | ||
# will have to manually update the versions in _version.py | ||
# - name: Commit the new version to dev | ||
# shell: bash | ||
# run: | | ||
# git config --global user.name 'gnikit' | ||
# git config --global user.email '[email protected]' | ||
# git fetch origin | ||
# git switch dev | ||
# git commit -S fortls/_version.py -m "Auto-Update version" -v | ||
# git push | ||
# git tag -f "${VERSION}" | ||
# git push --delete origin "${VERSION}" | ||
# git push origin "${VERSION}" | ||
|
||
- name: Build package | ||
run: python -m build | ||
|
||
|
This file contains 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 |
---|---|---|
|
@@ -2,8 +2,10 @@ | |
.vscode | ||
*.egg-info | ||
dist/ | ||
build/ | ||
docs/_build/ | ||
docs/fortls_changes.md | ||
fortls/_version.py | ||
|
||
.idea | ||
|
||
|
This file contains 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 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 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 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 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 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 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,5 +1,5 @@ | ||
import sys | ||
import logging | ||
import sys | ||
|
||
PY3K = sys.version_info >= (3, 0) | ||
|
||
|
This file contains 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 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 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 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 PackageNotFoundError, version | ||
except ModuleNotFoundError: | ||
from importlib_metadata import PackageNotFoundError, version | ||
try: | ||
__version__ = version(__package__) | ||
except PackageNotFoundError: | ||
from setuptools_scm import get_version | ||
|
||
__version__ = get_version(root="..", relative_to=__file__) |
This file contains 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", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "fortls/_version.py" |
This file contains 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,59 @@ | ||
[metadata] | ||
name = fortls | ||
url = https://github.com/gnikit/fortls | ||
author = Giannis Nikiteas | ||
author_email = [email protected] | ||
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] | ||
dev = | ||
pytest >= 5.4.3 | ||
pytest-cov >= 2.12.1 | ||
black | ||
isort | ||
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 |
Oops, something went wrong.