From e6324fc8d675d9fd0717afe26400e60a84e52f87 Mon Sep 17 00:00:00 2001 From: Leif Denby Date: Mon, 5 Sep 2022 16:54:40 +0200 Subject: [PATCH] Prep v0.1.0 release (#165) Switch to string-based version, pre-commit linting, using setup.cfg for requirements and remove use of `setuptools_scm` (previously used for versioning) --- .gitignore | 1 + lagtraj/__init__.py | 3 +++ setup.cfg | 9 --------- setup.py | 5 +---- 4 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 896a0492..ad49429b 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ docs/*.blg docs/*.log docs/*.pdf __pycache__/ +dist/ # `data` instead of `data/` so that we can ignore symlinks too data diff --git a/lagtraj/__init__.py b/lagtraj/__init__.py index 58142cfc..e39f2706 100644 --- a/lagtraj/__init__.py +++ b/lagtraj/__init__.py @@ -1,6 +1,9 @@ import os from pathlib import Path +__version__ = "0.1.0" + + # Optional numba dependency try: from numba import njit diff --git a/setup.cfg b/setup.cfg index 7b3c63b3..39aa9bd6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,8 +33,6 @@ where=. [options.extras_require] test = pytest - nbval - nb-black dev = %(test)s pre-commit @@ -48,10 +46,3 @@ ignore = E203, E501, W503 [isort] profile=black - -# See the docstring in versioneer.py for instructions. Note that you must -# re-run 'versioneer.py setup' after changing this section, and commit the -# resulting files. - -[build-system] -requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"] diff --git a/setup.py b/setup.py index aa5e958e..b908cbe5 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,3 @@ import setuptools -setuptools.setup( - use_scm_version=True, - setup_requires=["setuptools_scm"], -) +setuptools.setup()