Skip to content

Commit 24e9b5f

Browse files
committed
move to pyproject.toml
1 parent c742df4 commit 24e9b5f

File tree

8 files changed

+49
-42
lines changed

8 files changed

+49
-42
lines changed

CHANGELOG.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22

33
## [Unreleased]
44

5+
---
6+
7+
## [0.2.0] - 2023-03-01
8+
59
### Changes
6-
- Updated for SlyAPI 0.4
10+
- Updated for SlyAPI 0.4.3
711
- Awaiting `YouTubeAnalytics` is not longer necessary
812
- Methods now take `T|set[T]` for enum parameters
913
- `Dimensions` and `Metrics` are now just plain enums
10-
- the `+` operator has been overloaded to make a `set`
14+
- the `+` operator has been overloaded to make a `set`
15+
16+
## [0.1.0] - 2022-02-26
17+
18+
Initial release.

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
html_theme = 'furo'
6262
html_static_path = ['_static']
63-
html_title = 'SlySheets for Python'
63+
html_title = 'SlyYTAAPI for Python'
6464
html_theme_options = {
6565
"source_repository": "https://github.com/dunkyl/SlyYTAAPI-Python/",
6666
"source_branch": "main",

docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
hide-toc: true
33
---
44

5-
# Welcome to SlySheets for Python's documentation!
5+
# Welcome to SlyYTAAPI for Python's documentation!
66

77
```{include} ../README.md
88
:start-after: <!-- elevator begin -->

docs/ref.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ API Reference
66
:caption: API Reference
77
:recursive:
88

9-
SlySheets
9+
SlyYTAAPI

pyproject.toml

+33-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,37 @@
1+
[project]
2+
name = "SlyYTAAPI"
3+
version = "0.2.0"
4+
description = "No-boilerplate, async and typed YouTube Analytics API access."
5+
readme = "README.md"
6+
requires-python = ">=3.10"
7+
license = { file="LICENSE" }
8+
authors = [{name="Dunkyl 🔣🔣"}]
9+
classifiers = [ "Operating System :: OS Independent" ]
10+
dependencies = [ 'SlyAPI >= 0.4.3' ]
11+
12+
[project.optional-dependencies]
13+
dev = [
14+
# testing
15+
'pytest',
16+
'pytest-asyncio',
17+
18+
# docs
19+
'myst-parser',
20+
'furo',
21+
'sphinxcontrib-trio',
22+
'sphinx-copybutton',
23+
'sphinxext-opengraph'
24+
]
25+
26+
[project.urls]
27+
Homepage = "https://docs.dunkyl.net/SlyYTAAPI-Python/"
28+
Repository = "https://github.com/dunkyl/SlyYTAAPI-Python"
29+
Documentation = "https://docs.dunkyl.net/SlyYTAAPI-Python/"
30+
"Bug Tracker" = "https://github.com/dunkyl/SlyYTAAPI-Python/issues"
31+
132
[build-system]
2-
requires = [ "setuptools>=42", "wheel" ]
3-
build-backend = "setuptools.build_meta"
33+
requires = ["setuptools", "wheel"]
434

535
[tool.pytest.ini_options]
636
asyncio_mode = "auto"
7-
testpaths = ["test"]
37+
testpaths = ["test"]

setup.cfg

-31
This file was deleted.

src/SlyYTAAPI/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys, asyncio, inspect
22

3-
from SlySheets.sheets import Scope
3+
from SlyYTAAPI.analytics import Scope
44
from SlyAPI.flow import *
55

66
async def main(args: list[str]):

src/SlyYTAAPI/analytics.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Dimensions(Enum):
2929
Video = 'video'
3030
# ...
3131

32-
def __add__(self: 'Dimensions', other: 'Dimensions'|set['Dimensions']) -> _AddOperator_Set['Dimensions']:
32+
def __add__(self: 'Dimensions', other: 'Dimensions|set[Dimensions]') -> _AddOperator_Set['Dimensions']:
3333
return _AddOperator_Set((self,)) + other
3434

3535
class Metrics(Enum):
@@ -45,7 +45,7 @@ class Metrics(Enum):
4545
SubsLost = 'subscribersLost'
4646
# ...
4747

48-
def __add__(self: 'Metrics', other: 'Metrics'|set['Metrics']) -> _AddOperator_Set['Metrics']:
48+
def __add__(self: 'Metrics', other: 'Metrics|set[Metrics]') -> _AddOperator_Set['Metrics']:
4949
return _AddOperator_Set((self,)) + other
5050

5151
@dataclass

0 commit comments

Comments
 (0)