Skip to content

Commit

Permalink
feat: rename project to umlizer
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed Jan 17, 2024
1 parent 907cd02 commit 9df2c96
Show file tree
Hide file tree
Showing 23 changed files with 65 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- PyUML version:
- UMLizer version:
- Python version:
- Operating System:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
environment-file: conda/dev.yaml
channels: conda-forge,nodefaults
channel-priority: true
activate-environment: pyuml
activate-environment: umlizer
auto-update-conda: true
conda-solver: libmamba

Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
miniconda-version: "latest"
environment-file: conda/dev.yaml
channels: conda-forge,nodefaults
activate-environment: pyuml
activate-environment: umlizer
auto-update-conda: true
conda-solver: libmamba

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
environment-file: conda/dev.yaml
channels: conda-forge,nodefaults
channel-priority: true
activate-environment: pyuml
activate-environment: umlizer
auto-update-conda: true
conda-solver: libmamba

Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ repos:
name: vulture
entry: vulture --min-confidence 80
language: system
files: "src/pyuml"
files: "src/umlizer"
description: Find unused Python code.
pass_filenames: true
types:
Expand All @@ -89,7 +89,7 @@ repos:
name: mccabe
entry: python -m mccabe --min 10
language: system
files: "src/pyuml"
files: "src/umlizer"
pass_filenames: true
types:
- python
6 changes: 3 additions & 3 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
{
"replacements": [
{
"files": ["src/pyuml/__init__.py"],
"files": ["src/umlizer/__init__.py"],
"from": "return \".*\" # semantic-release",
"to": "return \"${nextRelease.version}\" # semantic-release",
"results": [
{
"file": "src/pyuml/__init__.py",
"file": "src/umlizer/__init__.py",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
Expand Down Expand Up @@ -70,7 +70,7 @@
"assets": [
"pyproject.toml",
"docs/changelog.md",
"src/pyuml/__init__.py"
"src/umlizer/__init__.py"
],
"message": "chore(release): ${nextRelease.version}"
}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# PyUML
# UMLizer

Python tools for UML

- LICENSE: BSD 3 Clause
- Documentation: https://osl-incubator.github.io/pyuml
- Documentation: https://osl-incubator.github.io/umlizer

## Features

Expand All @@ -12,5 +12,5 @@ TBD
## Class Diagram

```bash
$ pyuml class --source ./src/pyuml --target ./docs/uml/class_graph --verbose
$ umlizer class --source ./src/umlizer --target ./docs/uml/class_graph --verbose
```
2 changes: 1 addition & 1 deletion conda/dev.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pyuml
name: umlizer
channels:
- nodefaults
- conda-forge
Expand Down
2 changes: 1 addition & 1 deletion docs/api/references.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Api references

::: pyuml
::: umlizer
4 changes: 2 additions & 2 deletions docs/api/references.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
API references
==============

.. automodule:: pyuml
.. automodule:: umlizer
:members:

.. automodule:: pyuml.pyuml
.. automodule:: umlizer.umlizer
:members:
12 changes: 6 additions & 6 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

---

# [0.3.0](https://github.com/osl-incubator/pyuml/compare/0.2.0...0.3.0) (2023-12-22)
# [0.3.0](https://github.com/osl-incubator/umlizer/compare/0.2.0...0.3.0) (2023-12-22)

### Features

- Separate data.lock per profile and fix small issues ([#8](https://github.com/osl-incubator/pyuml/issues/8)) ([91a8b3d](https://github.com/osl-incubator/pyuml/commit/91a8b3d8b0fa2900fc35e3149352a77d0fd40b2b))
- Separate data.lock per profile and fix small issues ([#8](https://github.com/osl-incubator/umlizer/issues/8)) ([91a8b3d](https://github.com/osl-incubator/umlizer/commit/91a8b3d8b0fa2900fc35e3149352a77d0fd40b2b))

# [0.2.0](https://github.com/osl-incubator/pyuml/compare/0.1.0...0.2.0) (2023-12-15)
# [0.2.0](https://github.com/osl-incubator/umlizer/compare/0.1.0...0.2.0) (2023-12-15)

### Bug Fixes

- Fix release workflow ([#5](https://github.com/osl-incubator/pyuml/issues/5)) ([8ba1407](https://github.com/osl-incubator/pyuml/commit/8ba1407ea27fb6e1a8712608f7f8af4ee1850475))
- Fix release workflow ([#6](https://github.com/osl-incubator/pyuml/issues/6)) ([38e9d7c](https://github.com/osl-incubator/pyuml/commit/38e9d7c5ce45a83f6d50bdc9e98fcb76b6a34caf))
- Fix release workflow ([#5](https://github.com/osl-incubator/umlizer/issues/5)) ([8ba1407](https://github.com/osl-incubator/umlizer/commit/8ba1407ea27fb6e1a8712608f7f8af4ee1850475))
- Fix release workflow ([#6](https://github.com/osl-incubator/umlizer/issues/6)) ([38e9d7c](https://github.com/osl-incubator/umlizer/commit/38e9d7c5ce45a83f6d50bdc9e98fcb76b6a34caf))

### Features

- Implement option for passing password as a stdin ([#4](https://github.com/osl-incubator/pyuml/issues/4)) ([4ab5ba8](https://github.com/osl-incubator/pyuml/commit/4ab5ba8ee54e98b6f580dbd3f7659af77e9a72c3))
- Implement option for passing password as a stdin ([#4](https://github.com/osl-incubator/umlizer/issues/4)) ([4ab5ba8](https://github.com/osl-incubator/umlizer/commit/4ab5ba8ee54e98b6f580dbd3f7659af77e9a72c3))
20 changes: 10 additions & 10 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
In order to be able to contribute, it is important that you understand
the project layout.
This project uses the _src layout_, which means that the package code is located
at `./src/pyuml`.
at `./src/umlizer`.

For my information, check the official documentation:
https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/
Expand All @@ -25,7 +25,7 @@ You can contribute in many ways:

### Report Bugs

Report bugs at https://github.com/osl-incubator/pyuml/issues.
Report bugs at https://github.com/osl-incubator/umlizer/issues.

If you are reporting a bug, please include:

Expand All @@ -47,14 +47,14 @@ it.

### Write Documentation

PyUML could always use more documentation,
whether as part of the official PyUML docs,
UMLizer could always use more documentation,
whether as part of the official UMLizer docs,
in docstrings, or even on the web in blog posts, articles, and such.

### Submit Feedback

The best way to send feedback is to file an issue at
https://github.com/osl-incubator/pyuml/issues.
https://github.com/osl-incubator/umlizer/issues.

If you are proposing a feature:

Expand All @@ -66,20 +66,20 @@ If you are proposing a feature:

## Get Started!

Ready to contribute? Here’s how to set up `pyuml` for local development.
Ready to contribute? Here’s how to set up `umlizer` for local development.

1. Fork the `pyuml` repo on GitHub.
1. Fork the `umlizer` repo on GitHub.

2. Clone your fork locally::

$ git clone [email protected]:your_name_here/pyuml.git
$ git clone [email protected]:your_name_here/umlizer.git

3. Install your local copy into a virtualenv. Assuming you have
virtualenvwrapper installed, this is how you set up your fork for
local development::

$ mkvirtualenv pyuml
$ cd pyuml/
$ mkvirtualenv umlizer
$ cd umlizer/
$ python setup.py develop

4. Create a branch for local development::
Expand Down
6 changes: 3 additions & 3 deletions docs/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# PyUML\n",
"# UMLizer\n",
"\n",
"PyUML is Python library that aims to do ...\n",
"UMLizer is Python library that aims to do ...\n",
"\n",
"## Getting Started\n",
"\n",
Expand All @@ -21,7 +21,7 @@
"metadata": {},
"outputs": [],
"source": [
"import pyuml"
"import umlizer"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
![LOGO](/images/logo.png)

# PyUML
# UMLizer

PyUML is a tool for creating UML diagrams from python source code.
UMLizer is a tool for creating UML diagrams from python source code.

- License: BSD 3 Clause
- Documentation: https://osl-incubator.github.io/pyuml
- Documentation: https://osl-incubator.github.io/umlizer
16 changes: 8 additions & 8 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

## Stable release

To install PyUML, run this command in your
To install UMLizer, run this command in your
terminal:

```bash
$ pip install pyuml
$ pip install umlizer
```

This is the preferred method to install PyUML,
This is the preferred method to install UMLizer,
as it will always install the most recent stable release.

If you don't have [pip](https://pip.pypa.io) installed, this
Expand All @@ -18,20 +18,20 @@ can guide you through the process.

## From sources

The sources for PyUML can be downloaded from
the [Github repo](https://github.com/osl-incubator/pyuml).
The sources for UMLizer can be downloaded from
the [Github repo](https://github.com/osl-incubator/umlizer).

You can either clone the public repository:

```bash
$ git clone https://github.com/osl-incubator/pyuml
$ git clone https://github.com/osl-incubator/umlizer
```

Or download the
[tarball](https://github.com/osl-incubator/pyuml/tarball/main):
[tarball](https://github.com/osl-incubator/umlizer/tarball/main):

```bash
$ curl -OJL https://github.com/osl-incubator/pyuml/tarball/main
$ curl -OJL https://github.com/osl-incubator/umlizer/tarball/main
```

Once you have a copy of the source, you can install it with:
Expand Down
14 changes: 7 additions & 7 deletions docs/mkdocs.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
site_name: PyUML
site_url: https://osl-incubator.github.io/pyuml
repo_url: https://github.com/osl-incubator/pyuml
site_name: UMLizer
site_url: https://osl-incubator.github.io/umlizer
repo_url: https://github.com/osl-incubator/umlizer
docs_dir: ./
site_dir: ../build
# extra_css:
Expand Down Expand Up @@ -123,7 +123,7 @@ markdown_extensions:
- tables
- toc
extra:
project_name: "PyUML"
project_name: "UMLizer"
team:
- name: "Active maintainers"
members:
Expand All @@ -135,16 +135,16 @@ extra:
- icon: fontawesome/brands/twitter
link: https://twitter.com/xmnlab
- icon: fontawesome/brands/github
link: https://github.com/osl-incubator/pyuml
link: https://github.com/osl-incubator/umlizer
support_levels:
supported:
icon: :material-check-decagram:{ .verified }
description: Tested in CI. If this doesn't work for you, please [file an issue](https://github.com/osl-incubator/pyuml/issues/new).
description: Tested in CI. If this doesn't work for you, please [file an issue](https://github.com/osl-incubator/umlizer/issues/new).
bug:
icon: :material-bug:{ .bug }
description: Should work but doesn't because upstream is broken. Supported on a best-effort basis.
unsupported:
icon: :material-cancel:{ .cancel }
description: Unlikely to ever be supported or no upstream support.

copyright: "Copyright © 2022, PyUML Team"
copyright: "Copyright © 2022, UMLizer Team"
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "pyuml"
name = "umlizer"
version = "0.1.0"
description = "Tool for creating UML from project files"
authors = ["Ivan Ogasawara <[email protected]>"]
Expand All @@ -10,12 +10,12 @@ exclude = [
".env*",
]
packages = [
{include = "pyuml", from="src"},
{include = "umlizer", from="src"},
]
include = ["src/pyuml/py.typed"]
include = ["src/umlizer/py.typed"]

[tool.poetry.scripts]
"pyuml" = "pyuml.__main__:app"
"umlizer" = "umlizer.__main__:app"

[tool.poetry.dependencies]
python = ">=3.8.1,<4"
Expand Down
2 changes: 1 addition & 1 deletion src/pyuml/__init__.py → src/umlizer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Top-level package for PyUML."""
"""Top-level package for UMLizer."""
# mypy: disable-error-code="attr-defined"

from importlib import metadata as importlib_metadata
Expand Down
2 changes: 1 addition & 1 deletion src/pyuml/__main__.py → src/umlizer/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""The definition of the action for `python -m` command."""
from pyuml.cli import app
from umlizer.cli import app

if __name__ == '__main__':
app()
File renamed without changes.
4 changes: 2 additions & 2 deletions src/pyuml/cli.py → src/umlizer/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from typer import Context, Option
from typing_extensions import Annotated

from pyuml import __version__, class_graph
from umlizer import __version__, class_graph

app = typer.Typer()

Expand All @@ -24,7 +24,7 @@ def main(
help='Show the version and exit.',
),
) -> None:
"""Run pyuml."""
"""Run umlizer."""
if version:
typer.echo(f'Version: {__version__}')
raise typer.Exit()
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/notebooks/Idea.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"=========== /home/xmn/dev/xmnlab/pyuml/tests/notebooks/class_base.py ===========\n",
"=========== /home/xmn/dev/xmnlab/umlizer/tests/notebooks/class_base.py ===========\n",
"No module named 'dataclass'\n",
"................................................................................\n"
]
Expand Down
6 changes: 3 additions & 3 deletions tests/notebooks/test_pyuml.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Main tests for pyuml."""
"""Main tests for umlizer."""


def test_import() -> None:
"""Test import."""
import pyuml
import umlizer

assert pyuml
assert umlizer

0 comments on commit 9df2c96

Please sign in to comment.