Skip to content

Commit

Permalink
Replace Travis with GitHub actions and use Poetry.
Browse files Browse the repository at this point in the history
The Python ecosystem has moved on a bit since I last touched this
project. It no longer makes sense to support Python 2 and type hints are
becoming more common. This is the first commit towards that.
  • Loading branch information
runfalk committed Jun 16, 2022
1 parent db18d6d commit 0e1baf2
Show file tree
Hide file tree
Showing 9 changed files with 223 additions and 95 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
# This avoids having duplicate builds for a pull request
push:
branches:
- master
pull_request:
branches:
- master

jobs:
tests:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.13
- name: Install dev dependencies
run: poetry install
- name: Run pytest
run: poetry run pytest
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

9 changes: 0 additions & 9 deletions MANIFEST.in

This file was deleted.

42 changes: 0 additions & 42 deletions Makefile

This file was deleted.

15 changes: 0 additions & 15 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,6 @@ Pull requests are credited in the change log which is displayed on PyPI and the
documentaion on Read the Docs.


.. |test-status| image:: https://travis-ci.org/runfalk/spans.svg
:alt: Test status
:scale: 100%
:target: https://travis-ci.org/runfalk/spans

.. |test-coverage| image:: https://codecov.io/github/runfalk/spans/coverage.svg?branch=master
:alt: Test coverage
:scale: 100%
:target: https://codecov.io/github/runfalk/spans?branch=master

.. |documentation-status| image:: https://readthedocs.org/projects/spans/badge/
:alt: Documentation status
:scale: 100%
:target: http://spans.readthedocs.org/en/latest/

.. |pypi-version| image:: https://badge.fury.io/py/Spans.svg
:alt: PyPI version status
:scale: 100%
Expand Down
155 changes: 155 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[tool.poetry]
name = "spans"
version = "2.0.0"
description = "Continuous set support for Python"
authors = ["Andreas Runfalk <andreas@runfalk.se>"]
license = "MIT"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Utilities"
]

[tool.poetry.dependencies]
python = "^3.7"

[tool.poetry.dev-dependencies]
pytest = "^7.1.2"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.pytest.ini_options]
addopts = "--doctest-glob='*.rst' --doctest-modules"
doctest_optionflags = "ALLOW_UNICODE ALLOW_BYTES"
norecursedirs = "_build"
testpaths = "spans tests doc README.rst"
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

11 changes: 0 additions & 11 deletions setup.cfg

This file was deleted.

0 comments on commit 0e1baf2

Please sign in to comment.