Skip to content

Commit

Permalink
Packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPalard committed Feb 2, 2022
1 parent 7eec454 commit 45af71c
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---

name: Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build_ubuntu:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.7"
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- uses: actions/cache@v2
with:
path: ~/.cache/
key: ${{ matrix.os }}
- name: setup
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pytest
- name: run tests
run: |
python -m pytest
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
24 changes: 24 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[metadata]
name = sphinx-lint
version = attr: sphinxlint.__version__
description = Check for stylistic and formal issues in .rst and .py files included in the documentation.
long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8
author = Julien Palard
author_email = [email protected]
url = https://github.com/sphinx-contrib/sphinx-lint
license = MIT License
classifiers =
Development Status :: 5 - Production/Stable
Topic :: Documentation :: Sphinx
Intended Audience :: Developers
License :: OSI Approved :: Python Software Foundation License
Natural Language :: English
Programming Language :: Python :: 3

[options]
py_modules = sphinxlint
python_requires = >= 3.7

[options.entry_points]
console_scripts = sphinx-lint=sphinxlint:main
2 changes: 2 additions & 0 deletions sphinxlint.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"""Sphinx rst linter.
"""

__version__ = "0.1"

import os
import re
import sys
Expand Down

0 comments on commit 45af71c

Please sign in to comment.