|
1 | 1 | #!/usr/bin/env python
|
2 | 2 | from setuptools import find_packages, setup
|
| 3 | +from fortls import __version__ |
| 4 | +import pathlib |
3 | 5 |
|
4 |
| -README = open("README.rst", "r").read() |
| 6 | +# The directory containing this file |
| 7 | +HERE = pathlib.Path(__file__).resolve().parent |
| 8 | + |
| 9 | +# The text of the README file is used as a description |
| 10 | +README = (HERE / "README.md").read_text() |
| 11 | + |
| 12 | +NAME = "fortls" |
5 | 13 |
|
6 | 14 | setup(
|
7 |
| - name="fortran-language-server", |
8 |
| - # Versions should comply with PEP440. For a discussion on single-sourcing |
9 |
| - # the version across setup.py and the project code, see |
10 |
| - # https://packaging.python.org/en/latest/single_source_version.html |
11 |
| - version="1.12.0", |
12 |
| - description="FORTRAN Language Server for the Language Server Protocol", |
13 |
| - long_description=README, |
14 |
| - # The project's main homepage. |
15 |
| - url="https://github.com/hansec/fortran-language-server", |
16 |
| - download_url=( |
17 |
| - "https://github.com/hansec/fortran-language-server/archive/v1.12.0.tar.gz" |
18 |
| - ), |
| 15 | + name=NAME, |
| 16 | + version=__version__, |
| 17 | + url="https://github.com/gnikit/fortran-language-server", |
19 | 18 | author="Chris Hansen",
|
20 | 19 |
|
| 20 | + description="FORTRAN Language Server - dev version", |
| 21 | + long_description=README, |
| 22 | + long_description_content_type="text/markdown", |
| 23 | + license="MIT", |
| 24 | + classifiers=[ |
| 25 | + "Development Status :: 4 - Beta", |
| 26 | + "Intended Audience :: Developers", |
| 27 | + "Intended Audience :: Science/Research", |
| 28 | + "License :: OSI Approved :: MIT License", |
| 29 | + "Natural Language :: English", |
| 30 | + "Programming Language :: Python", |
| 31 | + "Programming Language :: Python :: 3", |
| 32 | + "Programming Language :: Python :: 3.8", |
| 33 | + "Programming Language :: Python :: 3.9", |
| 34 | + "Programming Language :: Python :: 3.10", |
| 35 | + "Programming Language :: Fortran", |
| 36 | + "Operating System :: Microsoft :: Windows", |
| 37 | + "Operating System :: POSIX", |
| 38 | + "Operating System :: Unix", |
| 39 | + "Operating System :: MacOS", |
| 40 | + ], |
21 | 41 | # You can just specify the packages manually here if your project is
|
22 | 42 | # simple. Or you can use find_packages().
|
23 | 43 | packages=find_packages(exclude=["contrib", "docs", "test"]),
|
|
0 commit comments