Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
athornton committed Jun 29, 2023
1 parent 8fd1ce3 commit 68e10bb
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# github-proxy-auth
# giftless-github-proxy-auth

This is a [Giftless](https://giftless.datopian.com) [authentication
module](https://giftless.datopian.com/en/latest/auth-providers.html#understanding-authentication-and-authorization-providers)
Expand All @@ -7,7 +7,7 @@ repository they're trying to store Git LFS assets for.

# Installing

`pip install github-proxy-auth`, or check out the repository and do a
`pip install giftless-github-proxy-auth`, or check out the repository and do a
`pip install -e .`

It's only really useful in the context of a Giftless authenticator,
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
name = "github-proxy-auth"
name = "giftless-github-proxy-auth"
description = "Giftless module to proxy GitHub auth"
license = { file = "LICENSE" }
readme = "README.md"
keywords = ["github","proxy","authentication","authorization","auth"]
keywords = ["giftless", "github","proxy","authentication","authorization","auth"]
# https://pypi.org/classifiers/
classifiers = [
"Development Status :: 4 - Beta",
Expand All @@ -23,7 +23,7 @@ dependencies = []
dynamic = ["version"]

[project.urls]
Source = "https://github.com/lsst-sqre/github-proxy-auth"
Source = "https://github.com/lsst-sqre/giftless-github-proxy-auth"

[build-system]
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=6.2"]
Expand All @@ -34,7 +34,7 @@ build-backend = "setuptools.build_meta"
[tool.coverage.run]
parallel = true
branch = true
source = ["github_proxy_auth"]
source = ["giftless_github_proxy_auth"]

[tool.coverage.paths]
source = ["src", ".tox/*/site-packages"]
Expand Down Expand Up @@ -74,7 +74,7 @@ exclude = '''
[tool.isort]
profile = "black"
line_length = 79
known_first_party = ["github_proxy_auth", "tests"]
known_first_party = ["giftless_github_proxy_auth", "tests"]
skip = ["docs/conf.py"]

[tool.pytest.ini_options]
Expand Down
3 changes: 3 additions & 0 deletions src/giftless_github_proxy_auth/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .auth import GiftlessGitHubProxyAuthenticator

__all__ = ["GiftlessGitHubProxyAuthenticator"]
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .identity import Identity


class GitHubProxyAuthenticator(giftless.auth.Authenticator):
class GiftlessGitHubProxyAuthenticator(giftless.auth.Authenticator):
"""When a request is received, check to see whether that request is
authenticated with a personal access token that would give write access
to the repository the request is for.
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions src/github_proxy_auth/__init__.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/object_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import github_proxy_auth
import giftless_github_proxy_auth


def test_object_creation() -> None:
obj = github_proxy_auth.GitHubProxyAuthenticator()
obj = giftless_github_proxy_auth.GiftlessGitHubProxyAuthenticator()
assert obj is not None
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ deps =
-r{toxinidir}/requirements/main.txt
-r{toxinidir}/requirements/dev.txt
commands =
pytest --cov=github_proxy_auth --cov-branch --cov-report= -vv {posargs}
pytest --cov=giftless_github_proxy_auth --cov-branch --cov-report= -vv {posargs}

[testenv:coverage-report]
description = Compile coverage from each test run.
Expand All @@ -21,7 +21,7 @@ commands = coverage report
[testenv:typing]
description = Run mypy.
commands =
mypy src/github_proxy_auth tests
mypy src/giftless_github_proxy_auth tests

[testenv:lint]
description = Lint codebase by running pre-commit (Black, isort, Flake8).
Expand Down

0 comments on commit 68e10bb

Please sign in to comment.