Skip to content

Commit

Permalink
chore: modern build infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
asdofindia committed Oct 22, 2023
1 parent ed74072 commit 5a86236
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 67 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.11"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
- name: Run tests
run: |
make test
4 changes: 0 additions & 4 deletions .testr.conf

This file was deleted.

12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# LibIndic Payyans


[![Build Status](https://travis-ci.org/libindic/payyans.svg?branch=master)](https://travis-ci.org/libindic/payyans)
[![Coverage Status](https://coveralls.io/repos/github/libindic/payyans/badge.svg?branch=master)](https://coveralls.io/github/libindic/payyans?branch=master)


LibIndic's Payyans module may be used to convert texts encoded in ASCII format
to Unicode and vice-versa. More fonts can be added by placing their maps in
`libindic/payyans/maps` folder.
Expand Down
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[project]
name = "libindic-payyans"
authors = [
{ name = "Santhosh Thottingal", email = "santhosh.thottingal@gmail.com" },
{ name = "Nishan Naseer", email = "nishan.naseer@gmail.com" },
{ name = "Manu S Madhav", email = "manusmad@gmail.com" },
{ name = "Rajeesh K Nambiar", email = "rajeeshknambiar@gmail.com" },
{ name = "Akshay S Dinesh", email = "asdofindia@gmail.com" },
{ name = "Balasankar C", email = "balasankarc@autistici.org" },
{ name = "Jishnu Mohan", email = "jishnu7@gmail.com" },
]
description = "ASCII to Unicode converter"
requires-python = ">=3.7"
license = { text = "LGPL-3.0" }
version = "2.0"
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: DFSG approved",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Programming Language :: Python",
]
dependencies = [
"libindic-normalizer@git+https://github.com/libindic/normalizer.git"
]

[project.urls]
Homepage = "https://libindic.org/payyans"

[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"


[tool.setuptools.package-data]
"*" = ["templates/libindic.payyans.html", "maps/*.map"]

[project.entry-points."libindic.api.rest"]
unicode2ascii = "payyans.expose:unicode2ascii"
ascii2unicode = "payyans.expose:ascii2unicode"

[tool.distutils.bdist_wheel]
universal = true
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

35 changes: 0 additions & 35 deletions setup.cfg

This file was deleted.

10 changes: 0 additions & 10 deletions setup.py

This file was deleted.

0 comments on commit 5a86236

Please sign in to comment.