-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Migrate from setup.cfg to pyproject.toml
- Loading branch information
Showing
5 changed files
with
38 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
pydocstyle | ||
flake8 | ||
pydocstyle[toml]>=6.1 | ||
flake8>=5 | ||
Flake8-pyproject>=1.0.1 | ||
|
||
# Mypy-related stuff | ||
mypy | ||
|
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 |
---|---|---|
|
@@ -12,14 +12,17 @@ | |
from setuptools.command.build_ext import build_ext | ||
from wheel.bdist_wheel import bdist_wheel | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
version: "dict[str, str]" = {} | ||
with open(os.path.join(here, 'nanoqm', '_version.py'), 'r', encoding='utf8') as f: | ||
exec(f.read(), version) | ||
def get_version() -> str: | ||
"""Load the version.""" | ||
here = os.path.abspath(os.path.dirname(__file__)) | ||
version: "dict[str, str]" = {} | ||
with open(os.path.join(here, 'nanoqm', '_version.py'), 'r', encoding='utf8') as f: | ||
exec(f.read(), version) | ||
return version["__version__"] | ||
|
||
|
||
def readme() -> str: | ||
def get_readme() -> str: | ||
"""Load readme.""" | ||
with open('README.rst', 'r', encoding='utf8') as f: | ||
return f.read() | ||
|
@@ -152,15 +155,15 @@ def get_paths() -> "tuple[list[str], list[str]]": | |
|
||
setup( | ||
name='nano-qmflows', | ||
version=version['__version__'], | ||
version=get_version(), | ||
description='Derivative coupling calculation', | ||
license='Apache-2.0', | ||
license_files=["LICENSE*.txt"], | ||
url='https://github.com/SCM-NV/nano-qmflows', | ||
author='Felipe Zapata & Ivan Infante', | ||
author_email='[email protected]', | ||
keywords='chemistry Photochemistry Simulation', | ||
long_description=readme() + '\n\n', | ||
long_description=get_readme() + '\n\n', | ||
long_description_content_type='text/x-rst', | ||
packages=find_packages(exclude=["test"]), | ||
classifiers=[ | ||
|