Skip to content

Commit

Permalink
MNT: move siphon source to src/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Nov 17, 2021
1 parent feb7f60 commit 5fec8ab
Show file tree
Hide file tree
Showing 187 changed files with 721 additions and 298 deletions.
4 changes: 2 additions & 2 deletions .checkignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#

# Ignore versioneer stuff
siphon/_version.py
src/siphon/_version.py
versioneer.py

# Ignore generated protobuf files
siphon/cdmr/*_pb2.py
src/siphon/cdmr/*_pb2.py

# Don't scan sphinx config
docs/source/conf.py
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[run]
omit = siphon/_version.py,siphon/cdmr/*_pb2.py
omit = src/siphon/_version.py,src/siphon/cdmr/*_pb2.py
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
siphon/_version.py export-subst
src/siphon/_version.py export-subst

*.ipynb diff=jupyternotebook
2 changes: 1 addition & 1 deletion .github/workflows/tests-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
# By running coverage in "parallel" mode and "combining", we can clean up the path names
run: |
export TEST_DATA_DIR=$GITHUB_WORKSPACE/staticdata
python -m coverage run -p -m pytest siphon
python -m coverage run -p -m pytest src/siphon
python -m coverage combine
python -m coverage report
python -m coverage xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:

- name: Run tests
run: |
python -m coverage run -p -m pytest siphon/
python -m coverage run -p -m pytest src/siphon
python -m coverage combine
python -m coverage report
python -m coverage xml
Expand Down
6 changes: 3 additions & 3 deletions .prospector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ ignore-paths:
- doc
- build
- versioneer.py
- siphon/_version.py
- siphon/cdmr/ncStream_pb2.py
- siphon/cdmr/cdmrfeature_pb2.py
- src/siphon/_version.py
- src/siphon/cdmr/ncStream_pb2.py
- src/siphon/cdmr/cdmrfeature_pb2.py
- examples

pylint:
Expand Down
2 changes: 1 addition & 1 deletion .stickler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ linters:
ignore: 'F405'
max-line-length: 95
files:
ignore: ['siphon/cdmr/ncStream_pb2.py', 'siphon/cdmr/cdmrfeature_pb2.py', 'siphon/_version.py']
ignore: ['src/siphon/cdmr/ncStream_pb2.py', 'src/siphon/cdmr/cdmrfeature_pb2.py', 'src/siphon/_version.py']
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ include README.rst
include LICENSE
include CONTRIBUTING.md
include versioneer.py
include siphon/_version.py
include src/siphon/_version.py
recursive-include examples *
recursive-include docs *
recursive-include siphon/tests *
recursive-include src/siphon/tests *
prune docs/build
prune docs/examples
prune docs/api/generated
Expand Down
16 changes: 12 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ docstring-convention = numpy
exclude =
docs
build
siphon/cdmr/ncStream_pb2.py
siphon/cdmr/cdmrfeature_pb2.py
siphon/_version.py
src/siphon/cdmr/ncStream_pb2.py
src/siphon/cdmr/cdmrfeature_pb2.py
src/siphon/_version.py
versioneer.py
select = A B C D E F H I M Q RST S T W B902
ignore = F405 W503 RST902 SIM
Expand All @@ -31,14 +31,22 @@ max-line-length = 95
[metadata]
description-file = README.rst

[options]
package_dir =
= src
packages = find:

[options.packages.find]
where = src

[bdist_wheel]
# This flag says that the code is written to work on both Python 2 and 3.
universal=1

[versioneer]
VCS = git
style = pep440
versionfile_source = siphon/_version.py
versionfile_source = src/siphon/_version.py
versionfile_build = siphon/_version.py
tag_prefix = v
parentdir_prefix = siphon-
Expand Down
5 changes: 2 additions & 3 deletions siphon/__init__.py → src/siphon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"""Tools for accessing atmospheric and oceanic science data on remote servers."""

# Version import needs to come first so everyone else can pull on import
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from . import _version
__version__ = _version.get_versions()['version']
File renamed without changes.
Loading

0 comments on commit 5fec8ab

Please sign in to comment.