Skip to content

Commit

Permalink
updated project layout
Browse files Browse the repository at this point in the history
  • Loading branch information
xrotwang committed Dec 7, 2023
1 parent 5b70a13 commit 39a806f
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 72 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6]
python-version: ["3.10"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -27,9 +27,3 @@ jobs:
- name: Test with pytest
run: |
pytest
- name: "Convert coverage"
run: "python -m coverage xml"
- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v1"
with:
fail_ci_if_error: true
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
visualization.

[![Build Status](https://github.com/clld/clld-glottologfamily-plugin/workflows/tests/badge.svg)](https://github.com/clld/clld-glottologfamily-plugin/actions?query=workflow%3Atests)
[![codecov.io](http://codecov.io/github/clld/clld-glottologfamily-plugin/coverage.svg?branch=master)](http://codecov.io/github/clld/clld-glottologfamily-plugin?branch=master)
[![PyPI](https://img.shields.io/pypi/v/clld-glottologfamily-plugin.svg)](https://pypi.python.org/pypi/clld-glottologfamily-plugin)


Expand Down
12 changes: 4 additions & 8 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ Releasing clld-glottologfamily-plugin
=====================================

- Do platform test via tox:
```
```shell
tox -r
```

- Make sure flake8 passes:
```
```shell
flake8 src
```

Expand All @@ -29,15 +29,12 @@ git tag -a v<VERSION> -m"<VERSION> release"
```shell
python setup.py clean --all
rm dist/*
python setup.py sdist
twine upload dist/*
rm dist/*
python setup.py bdist_wheel
python -m build -n
twine upload dist/*
```

- Push to github:
```
```shell
git push origin
git push --tags
```
Expand All @@ -51,4 +48,3 @@ git push --tags
git commit -a -m "bump version for development"
git push origin
```

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"]
build-backend = "setuptools.build_meta"
73 changes: 72 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,63 @@
[metadata]
license_file = LICENSE
name = clld-glottologfamily-plugin
version = 4.0.1.dev0
author = Robert Forkel
author_email = [email protected]
description = A clld plugin adding language family information from Glottolog
long_description = file: README.md
long_description_content_type = text/markdown
keywords = web pyramid clld
license = Apache 2.0
license_files = LICENSE
url = https://github.com/clld/clld-glottologfamily-plugin
platforms = any
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
License :: OSI Approved :: Apache Software License

[options]
zip_safe = False
packages = find:
package_dir =
= src
python_requires = >=3.8
install_requires =
clld>=7.0
sqlalchemy
zope.interface
pybtex
pyglottolog>=2.0
include_package_data = True

[options.packages.find]
where = src

[options.package_data]
clld_glottologfamily_plugin =
templates/*

[options.extras_require]
dev =
flake8
wheel
build
twine
test =
pytest>=5
pytest-mock
pytest-cov
pytest-clld
coverage>=4.2
webtest

[bdist_wheel]
universal = 1
Expand All @@ -14,6 +72,9 @@ minversion = 5
testpaths = tests
addopts =
--cov
filterwarnings =
ignore::sqlalchemy.exc.SAWarning
ignore::sqlalchemy.exc.RemovedIn20Warning

[coverage:run]
source =
Expand All @@ -22,6 +83,16 @@ source =

[coverage:report]
show_missing = true
skip_covered = true

[easy_install]
zip_ok = false

[tox:tox]
envlist = py38, py39, py310, py311, py312
isolated_build = true
skip_missing_interpreter = true

[testenv]
deps = .[test]
commands = pytest {posargs}
48 changes: 2 additions & 46 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,48 +1,4 @@
from setuptools import setup, find_packages
from setuptools import setup


setup(
name='clld-glottologfamily-plugin',
version='4.0.1.dev0',
description='clld-glottologfamily-plugin',
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='Robert Forkel',
author_email='[email protected]',
url='https://github.com/clld/clld-glottologfamily-plugin',
keywords='web pyramid pylons',
packages=find_packages(where="src"),
package_dir={"": "src"},
include_package_data=True,
zip_safe=False,
install_requires=[
'clld>=7.0',
'sqlalchemy',
'zope.interface',
'pybtex<0.23; python_version < "3.6"',
'pybtex; python_version > "3.5"',
'pyglottolog>=2.0',
],
extras_require={
'dev': ['flake8', 'wheel', 'twine'],
'test': [
'attrs>=19.2',
'pytest>=5.4',
'pytest-mock',
'pytest-clld',
'coverage>=4.2',
'pytest-cov',
'webtest',
],
},
license="Apache 2.0",
)
setup()
7 changes: 0 additions & 7 deletions tox.ini

This file was deleted.

0 comments on commit 39a806f

Please sign in to comment.