Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change name #3

Merged
merged 22 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pytest
Use pytest-cov to generate coverage reports:

```bash
pytest --cov=Proteus
pytest --cov=Odapt
```

# Building docs
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import importlib.metadata

project = "Proteus"
project = "Odapt"
copyright = "2023, Zoë Bilodeau"
author = "Zoë Bilodeau"
version = release = importlib.metadata.version("proteus")
version = release = importlib.metadata.version("odapt")

extensions = [
"myst_parser",
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Proteus
# Odapt

```{toctree}
:maxdepth: 2
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def pylint(session: nox.Session) -> None:
# This needs to be installed into the package environment, and is slower
# than a pre-commit check
session.install(".", "pylint")
session.run("pylint", "proteus", *session.posargs)
session.run("pylint", "odapt", *session.posargs)


@nox.session
Expand Down Expand Up @@ -99,7 +99,7 @@ def build_api_docs(session: nox.Session) -> None:
"--module-first",
"--no-toc",
"--force",
"../src/proteus",
"../src/odapt",
)


Expand Down
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"


[project]
name = "proteus"
name = "odapt"
authors = [
{ name = "Zoë Bilodeau", email = "[email protected]" },
]
Expand Down Expand Up @@ -49,15 +49,15 @@ docs = [
]

[project.urls]
Homepage = "https://github.com/zbilodea/Proteus"
"Bug Tracker" = "https://github.com/zbilodea/Proteus/issues"
Discussions = "https://github.com/zbilodea/Proteus/discussions"
Changelog = "https://github.com/zbilodea/Proteus/releases"
Homepage = "https://github.com/zbilodea/Odapt"
"Bug Tracker" = "https://github.com/zbilodea/Odapt/issues"
Discussions = "https://github.com/zbilodea/Odapt/discussions"
Changelog = "https://github.com/zbilodea/Odapt/releases"


[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "src/proteus/_version.py"
build.hooks.vcs.version-file = "src/odapt/_version.py"
envs.default.dependencies = [
"pytest",
"pytest-cov",
Expand All @@ -78,7 +78,7 @@ testpaths = [


[tool.coverage]
run.source = ["proteus"]
run.source = ["odapt"]
port.exclude_lines = [
'pragma: no cover',
'\.\.\.',
Expand All @@ -97,7 +97,7 @@ disallow_untyped_defs = false
disallow_incomplete_defs = false

[[tool.mypy.overrides]]
module = "proteus.*"
module = "odapt.*"
disallow_untyped_defs = true
disallow_incomplete_defs = true

Expand Down Expand Up @@ -141,7 +141,7 @@ exclude = []
flake8-unused-arguments.ignore-variadic-names = true
isort.required-imports = ["from __future__ import annotations"]
# Uncomment if using a _compat.typing backport
# typing-modules = ["proteus._compat.typing"]
# typing-modules = ["odapt._compat.typing"]

[tool.ruff.per-file-ignores]
"tests/**" = ["T20"]
Expand Down
10 changes: 10 additions & 0 deletions src/odapt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
Copyright (c) 2023 Zoë Bilodeau. All rights reserved.

Odapt: File conversion package.
"""
from __future__ import annotations

from odapt._version import version as __version__

__all__ = ["__version__"]
File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions src/proteus/__init__.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import importlib.metadata

import proteus as m
import odapt as m


def test_version():
assert importlib.metadata.version("proteus") == m.__version__
assert importlib.metadata.version("odapt") == m.__version__