diff --git a/pyproject.toml b/pyproject.toml index a31d73e..684aa5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,16 +1,17 @@ [build-system] -requires = ["setuptools>=42", "setuptools_scm[toml]>=6.3"] -build-backend = "setuptools.build_meta" +requires = ["flit_scm"] +build-backend = "flit_scm:buildapi" [project] name = "dtool-http" description = "Add HTTP read only dataset support to dtool" readme = "README.rst" -license = {file = "LICENSE"} +license = {text = "MIT"} authors = [ {name = "Tjelvar Olsson", email = "tjelvar.olsson@gmail.com"} ] dynamic = ["version"] +requires-python = ">=3.8" dependencies = [ "dtoolcore>=3.13", "requests", @@ -28,18 +29,22 @@ Documentation = "https://github.com/jic-dtool/dtool-http/blob/master/README.rst" Repository = "https://github.com/jic-dtool/dtool-http" Changelog = "https://github.com/jic-dtool/dtool-http/blob/master/CHANGELOG.rst" +[project.entry-points."dtool.storage_brokers"] +HTTPStorageBroker = "dtool_http.storagebroker:HTTPStorageBroker" +HTTPSStorageBroker = "dtool_http.storagebroker:HTTPSStorageBroker" + +[project.entry-points."dtool.cli"] +dtool_serve_directory = "dtool_http.server:cli" +dtool_publish_dataset = "dtool_http.publish:cli" + +[tool.flit.module] +name = "dtool_http" + [tool.setuptools_scm] version_scheme = "guess-next-dev" local_scheme = "no-local-version" write_to = "dtool_http/version.py" -[tool.setuptools] -packages = ["dtool_http"] - -[project.entry-points."dtool.storage_brokers"] -"HTTPStorageBroker" = "dtool_http.storagebroker:HTTPStorageBroker" -"HTTPSStorageBroker" = "dtool_http.storagebroker:HTTPSStorageBroker" - -[project.entry-points."dtool.cli"] -"dtool_serve_directory" = "dtool_http.server:cli" -"dtool_publish_dataset" = "dtool_http.publish:cli" \ No newline at end of file +[tool.pytest.ini_options] +testpaths = ["tests"] +addopts = "--cov=dtool_http --cov-report=term-missing" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 186f1d5..0000000 --- a/setup.cfg +++ /dev/null @@ -1,10 +0,0 @@ -[flake8] -exclude=env*,.tox,.git,*.egg,build,docs - -[tool:pytest] -testpaths = tests -addopts = --cov=dtool_http -#addopts = -x --pdb - -[cov:run] -source = dtool_http