Skip to content

Commit

Permalink
Rename to revertex
Browse files Browse the repository at this point in the history
  • Loading branch information
gipert committed Dec 6, 2024
1 parent 5f2db49 commit d4e1494
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 29 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: revert
name: revertex

on:
workflow_dispatch:
Expand All @@ -17,7 +17,7 @@ env:

jobs:
build-and-test:
name: Test revert with Python
name: Test revertex with Python
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -35,7 +35,7 @@ jobs:
if: ${{ matrix.os == 'macOS-latest' }}
run: |
brew install opencascade cgal gmp mpfr boost
- name: Get dependencies and install revert
- name: Get dependencies and install revertex
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install --upgrade .[test]
Expand All @@ -58,7 +58,7 @@ jobs:
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install --upgrade .[test]
python -m pytest --cov=revert --cov-report=xml
python -m pytest --cov=revertex --cov-report=xml
- name: Upload Coverage to codecov.io
uses: codecov/codecov-action@v5

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
src/revert/_version.py
src/revertex/_version.py
*.pdf
*.png
*.jpg
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build:
pre_build:
- rm -rf docs/source/api
- sphinx-apidoc --private --module-first --force --output-dir
docs/source/api src/revert src/revert/_version.py
docs/source/api src/revertex src/revertex/_version.py

python:
install:
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cff-version: 1.2.0
title: revert
title: revertex
doi: FILLME
date-released: 2024-06-12
message: "If you use this software, please cite it as below."
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# revert
# revertex

[![PyPI](https://img.shields.io/pypi/v/revert?logo=pypi)](https://pypi.org/project/revert/)
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/legend-exp/revert?logo=git)
[![GitHub Workflow Status](https://img.shields.io/github/checks-status/legend-exp/revert/main?label=main%20branch&logo=github)](https://github.com/legend-exp/revert/actions)
[![PyPI](https://img.shields.io/pypi/v/revertex?logo=pypi)](https://pypi.org/project/revertex/)
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/legend-exp/revertex?logo=git)
[![GitHub Workflow Status](https://img.shields.io/github/checks-status/legend-exp/revertex/main?label=main%20branch&logo=github)](https://github.com/legend-exp/revertex/actions)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Codecov](https://img.shields.io/codecov/c/github/legend-exp/revert?logo=codecov)](https://app.codecov.io/gh/legend-exp/revert)
![GitHub issues](https://img.shields.io/github/issues/legend-exp/revert?logo=github)
![GitHub pull requests](https://img.shields.io/github/issues-pr/legend-exp/revert?logo=github)
![License](https://img.shields.io/github/license/legend-exp/revert)
[![Read the Docs](https://img.shields.io/readthedocs/revert?logo=readthedocs)](https://revert.readthedocs.io)
[![Codecov](https://img.shields.io/codecov/c/github/legend-exp/revertex?logo=codecov)](https://app.codecov.io/gh/legend-exp/revertex)
![GitHub issues](https://img.shields.io/github/issues/legend-exp/revertex?logo=github)
![GitHub pull requests](https://img.shields.io/github/issues-pr/legend-exp/revertex?logo=github)
![License](https://img.shields.io/github/license/legend-exp/revertex)
[![Read the Docs](https://img.shields.io/readthedocs/revertex?logo=readthedocs)](https://revertex.readthedocs.io)

Generate Geant4 event vertices in Python.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ all: apidoc
apidoc: clean-apidoc
sphinx-apidoc --private --module-first --force \
--output-dir "$(SOURCEDIR)/api" \
../src/revert ../src/revert/_version.py
../src/revertex ../src/revertex/_version.py

clean-apidoc:
rm -rf "$(SOURCEDIR)/api"
Expand Down
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

sys.path.insert(0, Path(__file__).parents[2].resolve().as_posix())

project = "revert"
project = "revertex"
copyright = "The LEGEND Collaboration"
version = get_distribution("revert").version
version = get_distribution("revertex").version

extensions = [
"sphinx.ext.githubpages",
Expand All @@ -32,7 +32,7 @@
# Furo theme
html_theme = "furo"
html_theme_options = {
"source_repository": "https://github.com/legend-exp/revert",
"source_repository": "https://github.com/legend-exp/revertex",
"source_branch": "main",
"source_directory": "docs/source",
}
Expand Down
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requires = [
build-backend = "setuptools.build_meta"

[project]
name = "revert"
name = "revertex"
description = "Generate Geant4 event vertices in Python"
authors = [
{ name = "Luigi Pertoldi", email = "[email protected]" },
Expand Down Expand Up @@ -37,17 +37,17 @@ dynamic = [
]

[project.urls]
Homepage = "https://github.com/legend-exp/revert"
"Bug Tracker" = "https://github.com/legend-exp/revert/issues"
Discussions = "https://github.com/legend-exp/revert/discussions"
Changelog = "https://github.com/legend-exp/revert/releases"
Homepage = "https://github.com/legend-exp/revertex"
"Bug Tracker" = "https://github.com/legend-exp/revertex/issues"
Discussions = "https://github.com/legend-exp/revertex/discussions"
Changelog = "https://github.com/legend-exp/revertex/releases"

[tool.setuptools_scm]
write_to = "src/revert/_version.py"
write_to = "src/revertex/_version.py"

[project.optional-dependencies]
all = [
"revert[docs,test]",
"revertex[docs,test]",
]
docs = [
"furo",
Expand Down
File renamed without changes.
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 revert as m
import revertex as m


def test_package():
assert importlib.metadata.version("revert") == m.__version__
assert importlib.metadata.version("revertex") == m.__version__

0 comments on commit d4e1494

Please sign in to comment.