forked from gwpy/gwsumm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to pyproject.toml (gwpy#354)
* Migrate to pyproject.toml and newer versions of python, remove versioneer * Implemented Duncan's suggestions --------- Co-authored-by: Evan Goetz <[email protected]>
- Loading branch information
Showing
21 changed files
with
217 additions
and
2,473 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[flake8] | ||
exclude = | ||
__pycache__, | ||
.eggs/, | ||
.git/, | ||
build/, | ||
docs/, | ||
gwsumm/_version.py, | ||
per-file-ignores = | ||
__init__.py:F401, |
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
Empty 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
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,4 +1,3 @@ | ||
include LICENSE README.rst MANIFEST.in | ||
include versioneer.py setup.py | ||
include gwsumm/_version.py | ||
recursive-include share *.ini | ||
include gwsumm/config/*.ini |
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,33 @@ | ||
name: gwsumm | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
# build | ||
- pip | ||
- setuptools | ||
- setuptools-scm | ||
- wheel | ||
# install | ||
- astropy >=3.0.0 | ||
- gwdatafind >=1.1.1 | ||
- gwdetchar >=2.0.0 | ||
- gwpy >=3.0.0 | ||
- gwtrigfind | ||
- lalsuite | ||
- ligo-segments | ||
- lscsoft-glue >=1.60.0 | ||
- lxml | ||
- markdown | ||
- MarkupPy | ||
- matplotlib >=3.1 | ||
- numpy >=1.16 | ||
- pygments >=2.7.0 | ||
- python-dateutil | ||
- python-ligo-lw | ||
- scipy >=1.2.0 | ||
# docs | ||
- numpydoc | ||
- sphinx | ||
- sphinx-automodapi | ||
- sphinx_bootstrap_theme | ||
- sphinxcontrib-programoutput |
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 |
---|---|---|
|
@@ -24,9 +24,16 @@ | |
globalv, # creates global variables | ||
units, # registers custom units | ||
) | ||
from ._version import get_versions | ||
|
||
__author__ = 'Duncan Macleod <[email protected]>' | ||
__version__ = get_versions()['version'] | ||
try: | ||
from ._version import version as __version__ | ||
except ModuleNotFoundError: | ||
try: | ||
import setuptools_scm | ||
__version__ = setuptools_scm.get_version(fallback_version='?.?.?') | ||
except (ModuleNotFoundError, TypeError, LookupError): | ||
__version__ = '?.?.?' | ||
|
||
del get_versions | ||
__author__ = 'Duncan Macleod <[email protected]>' | ||
__credits__ = ('Alex Urban <[email protected]>, ', | ||
'Evan Goetz <[email protected]>') |
Oops, something went wrong.