Skip to content

Commit

Permalink
move sourmash to src/sourmash
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Nov 1, 2020
1 parent 5cf2215 commit 7707359
Show file tree
Hide file tree
Showing 85 changed files with 19 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ sourmash.egg-info
.coverage
.pytest_cache
.python-version
sourmash/version.py
src/sourmash/version.py
*.DS_Store
.tox
sourmash/_lowlevel*.py
src/sourmash/_lowlevel*.py
.env
Pipfile
Pipfile.lock
Expand Down
8 changes: 1 addition & 7 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
include LICENSE Makefile Dockerfile LICENSE Makefile README.md requirements.txt
include index.ipynb
include sourmash VERSION
recursive-include sourmash_lib *
recursive-include sourmash *
recursive-include src *.rs
recursive-include benches *.rs
include LICENSE Makefile README.md requirements.txt
include Cargo.toml
include include/sourmash.h
prune .eggs
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[build-system]
requires = [
"setuptools >= 42",
"setuptools_scm[toml] >= 3.4.0, <4",
"setuptools >= 48",
"setuptools_scm[toml] >= 4, <5",
"setuptools_scm_git_archive",
"milksnake",
"wheel >= 0.29.0",
]
build-backend = 'setuptools.build_meta'

[tool.setuptools_scm]
write_to = "sourmash/version.py"
git_describe_command = "git describe --dirty --tags --long --match v* --first-parent"
write_to = "src/sourmash/version.py"
git_describe_command = "git describe --dirty --tags --long --match v* --first-parent"

[tool.isort]
known_third_party = ["deprecation", "hypothesis", "mmh3", "numpy", "pkg_resources", "pytest", "screed", "setuptools", "sourmash_tst_utils"]
Expand Down
15 changes: 5 additions & 10 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ project_urls =

[options]
zip_safe = False
platforms = any
packages = find:
#package_dir =
# =src
platforms = any
include_package_data = True
install_requires =
screed>=1.0
Expand All @@ -44,15 +42,12 @@ install_requires =
cachetools>=4,<5
python_requires = >=3.7

[options.packages.find]
#where = src
exclude =
tests
benchmarks

[bdist_wheel]
universal = 1

[options.packages.find]
where = src

# for explanation of %(extra)s syntax see:
# https://github.com/pypa/setuptools/issues/1260#issuecomment-438187625
# this syntax may change in the future
Expand Down Expand Up @@ -100,7 +95,7 @@ norecursedirs =
.asv
.eggs
python_files =
sourmash/*.py
src/sourmash/*.py
tests/*.py
testpaths =
tests
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ def build_native(spec):

setup(
milksnake_tasks=[build_native],
package_dir={"": "src"},
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_hll.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from sourmash.hll import HLL

from . import sourmash_tst_utils as utils
import sourmash_tst_utils as utils

K = 21 # size of kmer
ERR_RATE = 0.01
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sourmash_sketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pytest
import screed

from . import sourmash_tst_utils as utils
import sourmash_tst_utils as utils
import sourmash
from sourmash import MinHash
from sourmash.sbt import SBT, Node
Expand Down
9 changes: 4 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ extras =
storage
changedir = tests
commands = pytest \
--basetemp="{envtmpdir}" \
--cov "{envsitepackagesdir}/sourmash" \
--cov-config "{toxinidir}/tox.ini" \
--junitxml {toxworkdir}/junit.{envname}.xml \
{posargs}
{posargs:.}

[testenv:pypy]
deps =
Expand Down Expand Up @@ -140,12 +139,12 @@ exclude_lines =
^if __name__ == ['"]__main__['"]:$
[coverage:paths]
source = sourmash/
source = src/sourmash/
*/.tox/*/lib/python*/site-packages/sourmash
*/.tox/pypy*/site-packages/sourmash
*/.tox\*\Lib\site-packages\sourmash
*/sourmash
*\sourmash
*/src/sourmash
*\src\sourmash
[travis]
python =
Expand Down

0 comments on commit 7707359

Please sign in to comment.