Skip to content

Commit

Permalink
🚚 Update installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
drearondov committed Oct 29, 2023
1 parent fc62fdd commit 35accb1
Show file tree
Hide file tree
Showing 10 changed files with 109 additions and 21 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@
[![Latest release](https://img.shields.io/github/v/release/drearondov/pygments-rose-pine?style=for-the-badge)](https://github.com/drearondov/pygments-rose-pine/releases/latest)
[![Any color you like](https://img.shields.io/badge/code%20style-black-black?style=for-the-badge)](https://github.com/psf/black)

## Requirements

This package has been tested on Python versions 3.9, 3.10, 3.11 with Python 3.9 beeing the minimum required.

## Installation

The `pygments-rose-pine` package is not currently published to [PyPI](https://pypi.org/).
If, however, you still wish to install this package, the following steps
*should* work to install the [latest release](https://github.com/drearondov/pygments-rose-pine/releases/latest).

```bash
repo="https://github.com/drearondov/pygments-rose-pine"
repo="git@github.com:rose-pine/pygments.git"

# Find the latest release.
latest=$(git ls-remote --tags --refs $repo | # Fetch remote tags.
Expand Down Expand Up @@ -84,6 +88,14 @@ options(radian.color_scheme = "rose-pine")
## Gallery

*Rose Piné*

![Rosé Pine](docs/static/rose-pine.png)

*Rose Piné Moon*

![Rosé Pine Moon](docs/static/rose-pine-moon.png)

*Rose Piné Dawn*

![Rosé Pine Dawn](docs/static/rose-pine-dawn.png)
2 changes: 1 addition & 1 deletion docs/code-of-conduct.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ at `<https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>`_.

Community Impact Guidelines were inspired by `Mozilla's code of conduct enforcement ladder <https://github.com/mozilla/diversity>`_.

For answers to common questions about this code of conduct, see the FAQ at `<https://www.contributor-covenant.org/faq>`_. Translations are available at `<https://www.contributor-covenant.org/translations>`_.
For answers to common questions about this code of conduct, see the FAQ at `<https://www.contributor-covenant.org/faq>`_. Translations are available at `<https://www.contributor-covenant.org/translations>.
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ release <https://github.com/drearondov/pygments-rose-pine/releases/latest>`__.

.. code:: bash
repo="https://github.com/drearondov/pygments-rose-pine"
repo="https://github.com/rose-pine/pygments.git"
# Find the latest release.
latest=$(git ls-remote --tags --refs $repo | # Fetch remote tags.
Expand Down Expand Up @@ -111,7 +111,7 @@ Gallery
:width: 45%

.. image:: static/rose-pine-dawn.png
:width: 45%
:width: 40%


.. |Python versions| image:: https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fdrearondov%2Fpygments-rose-pine%2Fmain%2Fpyproject.toml&style=for-the-badge&logo=python&logoColor=white&color=blue
Expand Down
83 changes: 82 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ coverage = "^7.3.2"
ipython = "^8.16.1"
sphinx-autodoc-typehints = "^1.24.0"
furo = "^2023.9.10"
flake8-docstrings = "^1.7.0"

[tool.poetry.plugins."pygments.styles"]
"rose-pine" = "rosepine:RosePineStyle"
Expand Down
1 change: 1 addition & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Rose Piné for Pygments."""
__author__: str = "Andrea Rondón"
__email__: str = "[email protected]"
__version__: str = "1.0.0"
6 changes: 2 additions & 4 deletions src/rosepine.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@

@dataclass(frozen=True)
class Color:
"""
Absolute colors as defined by rose-pine: https://rosepinetheme.com/palette
"""
"""Absolute colors as defined by rose-pine: https://rosepinetheme.com/palette."""

pine_base = "#191724"
pine_surface = "#1f1d2e"
Expand All @@ -49,7 +47,7 @@ class Color:


class RosePineStyle(Style):
"""Soho vibes for Pygments. Based on the colors of Rose Pine main theme"""
"""Soho vibes for Pygments. Based on the colors of Rose Pine main theme."""

styles: Dict[Any, str] = {
Comment: Color.pine_subtle,
Expand Down
6 changes: 2 additions & 4 deletions src/rosepinedawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@

@dataclass(frozen=True)
class Color:
"""
Absolute colors as defined by rose-pine: https://rosepinetheme.com/palette
"""
"""Absolute colors as defined by rose-pine: https://rosepinetheme.com/palette."""

dawn_base = "#faf4ed"
dawn_surface = "#fffaf3"
Expand All @@ -49,7 +47,7 @@ class Color:


class RosePineDawnStyle(Style):
"""Soho vibes for Pygments. Based on the colors of Rose Pine Dawn theme"""
"""Soho vibes for Pygments. Based on the colors of Rose Pine Dawn theme."""

styles: Dict[Any, str] = {
Comment: Color.dawn_subtle,
Expand Down
6 changes: 2 additions & 4 deletions src/rosepinemoon.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@

@dataclass(frozen=True)
class Color:
"""
Absolute colors as defined by rose-pine: https://rosepinetheme.com/palette
"""
"""Absolute colors as defined by rose-pine: https://rosepinetheme.com/palette."""

moon_base = "#232136"
moon_surface = "#2a273f"
Expand All @@ -49,7 +47,7 @@ class Color:


class RosePineMoonStyle(Style):
"""Soho vibes for Pygments. Based on the colors of Rose Pine Moon theme"""
"""Soho vibes for Pygments. Based on the colors of Rose Pine Moon theme."""

styles: Dict[Any, str] = {
Comment: Color.moon_subtle,
Expand Down
7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,17 @@ deps =
flake8-commas ~= 2.0.0
flake8-docstrings ~= 1.5.0
pep8-naming ~= 0.9.0
mypy ~= 0.760
commands_pre =
commands =
black --check rosepine.py
flake8 --docstring-convention=google rosepine.py
black --check src
flake8 --docstring-convention=google src
mypy \
--disallow-untyped-calls \
--disallow-untyped-defs \
--disallow-incomplete-defs \
--disallow-untyped-decorators \
rosepine.py
bandit --recursive -ll rosepine.py
bandit --recursive -ll src

[testenv:docs]
basepython = python3.11
Expand Down

0 comments on commit 35accb1

Please sign in to comment.