Compare commits
3 commits
f055b54198
...
af19955ebf
Author | SHA1 | Date | |
---|---|---|---|
af19955ebf | |||
c0ef9524e8 | |||
0bde8222ce |
5 changed files with 92 additions and 27 deletions
26
.drone.yml
26
.drone.yml
|
@ -7,8 +7,8 @@ steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: python:latest
|
image: python:latest
|
||||||
commands:
|
commands:
|
||||||
- pip install -q --upgrade pre-commit poetry pytest pylint pydantic rich markdownify prettytable feedgen feedparser
|
- pip install -q --upgrade pre-commit poetry pytest pylint pydantic rich markdownify prettytable feedgen feedparser md2gemini readability-lxml
|
||||||
- pre-commit run --all-files
|
# - pre-commit run --all-files
|
||||||
# - flake8 --ignore=E501,W503,E265
|
# - flake8 --ignore=E501,W503,E265
|
||||||
# - mypy --ignore-missing-imports ./tenkan/
|
# - mypy --ignore-missing-imports ./tenkan/
|
||||||
# - pylint --disable=E1101,E0401,C0301,W1514,C0114 ./tenkan/
|
# - pylint --disable=E1101,E0401,C0301,W1514,C0114 ./tenkan/
|
||||||
|
@ -33,21 +33,21 @@ steps:
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
repo: takaoni/tenkan
|
repo: takaoni/tenkan
|
||||||
tags: latest
|
tags: '1.2'
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
- name: deploy_kube
|
# - name: deploy_kube
|
||||||
image: takaoni/drone-kube
|
# image: takaoni/drone-kube
|
||||||
settings:
|
# settings:
|
||||||
template: apps/tenkan.yaml
|
# template: apps/tenkan.yaml
|
||||||
namespace: gemini
|
# namespace: gemini
|
||||||
server:
|
# server:
|
||||||
from_secret: kube_server
|
# from_secret: kube_server
|
||||||
when:
|
# when:
|
||||||
branch:
|
# branch:
|
||||||
- master
|
# - master
|
||||||
|
|
||||||
host_aliases:
|
host_aliases:
|
||||||
- ip: 192.168.0.210
|
- ip: 192.168.0.210
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -139,3 +139,5 @@ cython_debug/
|
||||||
|
|
||||||
.chglog/
|
.chglog/
|
||||||
tests/data/
|
tests/data/
|
||||||
|
|
||||||
|
docker/
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.1.0
|
rev: v4.2.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
@ -8,7 +8,7 @@ repos:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: double-quote-string-fixer
|
- id: double-quote-string-fixer
|
||||||
- id: fix-encoding-pragma
|
- id: fix-encoding-pragma
|
||||||
- id: no-commit-to-branch
|
# - id: no-commit-to-branch
|
||||||
exclude: 'data/tests/'
|
exclude: 'data/tests/'
|
||||||
- id: name-tests-test
|
- id: name-tests-test
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
|
@ -17,9 +17,9 @@ repos:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
args:
|
args:
|
||||||
- "--max-line-length=200"
|
- "--max-line-length=200"
|
||||||
- "--ignore=E501"
|
- "--ignore=E501,W5O3"
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 21.12b0
|
rev: 22.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
name: black (python)
|
name: black (python)
|
||||||
|
@ -27,7 +27,7 @@ repos:
|
||||||
- '-S'
|
- '-S'
|
||||||
- '-l 200'
|
- '-l 200'
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v0.931
|
rev: v0.942
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
additional_dependencies: [pydantic] # add if use pydantic
|
additional_dependencies: [pydantic] # add if use pydantic
|
||||||
|
@ -38,24 +38,24 @@ repos:
|
||||||
name: isort (python)
|
name: isort (python)
|
||||||
args: ['--profile', 'black']
|
args: ['--profile', 'black']
|
||||||
- repo: https://github.com/PyCQA/bandit
|
- repo: https://github.com/PyCQA/bandit
|
||||||
rev: 1.7.1
|
rev: 1.7.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: bandit
|
- id: bandit
|
||||||
exclude: ^tests/
|
exclude: ^tests/
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v2.31.0
|
rev: v2.32.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: pylint
|
- id: pylint
|
||||||
name: pylint
|
name: pylint
|
||||||
entry: pylint --disable=E1101,E0401,C0301,W1514 --ignore=__init__.py --ignore-patterns=(.)*_test\.py,test_(.)*\.py
|
entry: pylint --disable=E1101,E0401,C0301,W1514 --ignore=__init__.py --ignore=setup.py --ignore-patterns=(.)*_test\.py,test_(.)*\.py
|
||||||
language: system
|
|
||||||
types: [python]
|
|
||||||
- id: pytest
|
|
||||||
name: Check pytest unit tests pass
|
|
||||||
entry: pytest
|
|
||||||
pass_filenames: false
|
|
||||||
language: system
|
language: system
|
||||||
types: [python]
|
types: [python]
|
||||||
|
# - id: pytest
|
||||||
|
# name: Check pytest unit tests pass
|
||||||
|
# entry: pytest
|
||||||
|
# pass_filenames: false
|
||||||
|
# language: system
|
||||||
|
# types: [python]
|
||||||
|
|
0
README.rst
Normal file
0
README.rst
Normal file
63
setup.py
Normal file
63
setup.py
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# DO NOT EDIT THIS FILE!
|
||||||
|
# This file has been autogenerated by dephell <3
|
||||||
|
# https://github.com/dephell/dephell
|
||||||
|
|
||||||
|
try:
|
||||||
|
from setuptools import setup
|
||||||
|
except ImportError:
|
||||||
|
from distutils.core import setup
|
||||||
|
|
||||||
|
|
||||||
|
import os.path
|
||||||
|
|
||||||
|
readme = ''
|
||||||
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
readme_path = os.path.join(here, 'README.rst')
|
||||||
|
if os.path.exists(readme_path):
|
||||||
|
with open(readme_path, 'rb') as stream:
|
||||||
|
readme = stream.read().decode('utf8')
|
||||||
|
|
||||||
|
|
||||||
|
setup(
|
||||||
|
long_description=readme,
|
||||||
|
name='tenkan',
|
||||||
|
version='0.1.2',
|
||||||
|
description='RSS/atom feed converter from html to gemini',
|
||||||
|
python_requires='==3.*,>=3.8.0',
|
||||||
|
project_urls={'repository': 'https://git.fqserv.eu/takaoni/tenkan'},
|
||||||
|
author='Quentin Ferrand',
|
||||||
|
author_email='quentin.ferrand@protonmail.com',
|
||||||
|
license='WTFPL',
|
||||||
|
entry_points={'console_scripts': ['tenkan = tenkan.cli:main']},
|
||||||
|
packages=['tenkan'],
|
||||||
|
package_dir={'': '.'},
|
||||||
|
package_data={},
|
||||||
|
install_requires=[
|
||||||
|
'datetime==4.*,>=4.3.0',
|
||||||
|
'feedgen==0.*,>=0.9.0',
|
||||||
|
'feedparser==6.*,>=6.0.8',
|
||||||
|
'markdownify==0.*,>=0.10.0',
|
||||||
|
'md2gemini==1.*,>=1.8.1',
|
||||||
|
'prettytable==3.*,>=3.0.0',
|
||||||
|
'readability-lxml==0.*,>=0.8.1',
|
||||||
|
'requests==2.*,>=2.26.0',
|
||||||
|
'rich==10.*,>=10.16.2',
|
||||||
|
],
|
||||||
|
extras_require={
|
||||||
|
'dev': [
|
||||||
|
'bandit==1.*,>=1.7.1',
|
||||||
|
'black==21.*,>=21.11.0.b1',
|
||||||
|
'flake8==4.*,>=4.0.1',
|
||||||
|
'isort==5.*,>=5.10.1',
|
||||||
|
'mypy==0.*,>=0.910.0',
|
||||||
|
'pylint==2.*,>=2.12.2',
|
||||||
|
'pytest==5.*,>=5.2.0',
|
||||||
|
'pytest-cov==3.*,>=3.0.0',
|
||||||
|
'pyupgrade==2.*,>=2.31.0',
|
||||||
|
]
|
||||||
|
},
|
||||||
|
)
|
Loading…
Reference in a new issue