Skip to content

Commit 0827bdc

Browse files
committed
Fix pyproject.toml
1 parent acd8548 commit 0827bdc

2 files changed

Lines changed: 33 additions & 40 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,44 @@
1+
---
12
name: CI
23

3-
on:
4+
"on":
45
push:
5-
branches: [ master, main ]
6+
branches: [master, main]
67
pull_request:
7-
branches: [ master, main ]
8+
branches: [master, main]
89

910
jobs:
1011
test:
1112
runs-on: ubuntu-latest
1213
strategy:
1314
matrix:
14-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1516

1617
steps:
17-
- uses: actions/checkout@v4
18-
19-
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version: ${{ matrix.python-version }}
23-
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install -e .
28-
pip install ruff pytest
29-
30-
- name: Run ruff format check
31-
run: ruff format --check .
32-
33-
- name: Run ruff lint
34-
run: ruff check .
35-
36-
- name: Run tests
37-
run: |
38-
# Run pytest if test files exist, otherwise just import the module
39-
if [ -d "tests" ] || find . -name "*test*.py" -type f | grep -q .; then
40-
pytest
41-
else
42-
python -c "import sphinxcontrib.googleanalytics; print('Module import successful')"
43-
fi
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -e .
29+
pip install ruff pytest
30+
31+
- name: Run ruff format check
32+
run: ruff format --check .
33+
34+
- name: Run ruff lint
35+
run: ruff check .
36+
37+
- name: Run tests
38+
run: |
39+
# Run pytest if test files exist, otherwise just import the module
40+
if [ -d "tests" ] || find . -name "*test*.py" -type f | grep -q .; then
41+
pytest
42+
else
43+
python -c "import sphinxcontrib.googleanalytics; print('Module import successful')"
44+
fi

pyproject.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "sphinxcontrib-googleanalytics"
77
version = "0.4"
8-
license = {text = "BSD"}
8+
license = "BSD-3-Clause"
99
authors = [{name = "Domen Kozar", email = "domen@dev.si"}]
1010
maintainers = [{name = "Jelmer Vernooij", email = "jelmer@jelmer.uk"}]
1111
description = "Sphinx extension googleanalytics"
@@ -15,7 +15,6 @@ classifiers = [
1515
"Environment :: Console",
1616
"Environment :: Web Environment",
1717
"Intended Audience :: Developers",
18-
"License :: OSI Approved :: BSD License",
1918
"Operating System :: OS Independent",
2019
"Programming Language :: Python",
2120
"Topic :: Documentation",
@@ -31,15 +30,8 @@ Repository = "https://github.com/sphinx-contrib/googleanalytics"
3130
[tool.setuptools]
3231
zip-safe = false
3332
include-package-data = true
34-
namespace-packages = ["sphinxcontrib"]
3533
platforms = ["any"]
3634

3735
[tool.setuptools.packages]
3836
find = {namespaces = false}
3937

40-
[tool.distutils.egg_info]
41-
tag-build = "dev"
42-
tag-date = true
43-
44-
[tool.aliases]
45-
release = "egg_info -RDb ''"

0 commit comments

Comments
 (0)