Skip to content

Commit 7b4d92e

Browse files
committed
Add pyproject.toml + rename directories
1 parent 7930b60 commit 7b4d92e

File tree

6 files changed

+52
-4
lines changed

6 files changed

+52
-4
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ Currently this is just proof of concept. I will likely add to this over time.
3737
See `examples` directory for examples of using this.
3838

3939
One of the fundamental aspects of this library is the ability to preload your own custom styles from a dictionary, like so:
40+
4041
```python
4142
from rich.console import Console
42-
from src.string_builder import RichStyles
43+
from rich_string_builder.string_builder import RichStyles
4344

4445
console = Console()
4546

examples/combinations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from src.string_builder import RichStyles
1+
from rich_string_builder.string_builder import RichStyles
22

33

44
def combinations():

examples/custom_styles.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from src.string_builder import RichStyles
1+
from rich_string_builder.string_builder import RichStyles
22

33
COLOR_PALETTE = {
44
"GENERAL": {

pyproject.toml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[build-system]
2+
requires = ["setuptools~=70.0.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "rich-string-builder"
7+
version = "0.0.1"
8+
description = "Text preprocessor for building strings for the rich library"
9+
readme = "README.md"
10+
authors = [
11+
{name = "BD Himes", email = "benjamindhimes@gmail.com"}
12+
]
13+
license = { file = "LICENSE" }
14+
requires-python = ">=3.7"
15+
dependencies = []
16+
17+
[project.optional-dependencies]
18+
dev = [
19+
"rich",
20+
"pytest"
21+
]
22+
23+
[project.urls]
24+
# more details can be found here
25+
homepage = "https://github.com/thewhaleking/rich-string-builder"
26+
Repository = "https://github.com/thewhaleking/rich-string-builder"
27+
28+
[tool.flit.metadata]
29+
classifiers = [
30+
"Development Status :: 3 - Alpha",
31+
"Intended Audience :: Developers",
32+
"License :: OSI Approved :: MIT License",
33+
"Programming Language :: Python :: 3 :: Only",
34+
"Programming Language :: Python :: 3.7",
35+
"Programming Language :: Python :: 3.8",
36+
"Programming Language :: Python :: 3.9",
37+
"Programming Language :: Python :: 3.10",
38+
"Programming Language :: Python :: 3.11",
39+
"Programming Language :: Python :: 3.12",
40+
"Programming Language :: Python :: 3.13",
41+
"Topic :: Software Development :: Libraries",
42+
"Topic :: Text Processing",
43+
"Topic :: Text Processing :: General"
44+
]
45+
46+
[tool.setuptools]
47+
package-dir = {"rich_string_builder" = "rich_string_builder"}
File renamed without changes.

tests/test_string_builder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from src.string_builder import RichStyles
1+
from rich_string_builder.string_builder import RichStyles
22
import pytest
33

44
C = RichStyles.Colors

0 commit comments

Comments
 (0)