Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
cbc6bc0
Python 3.9 support
hannahherbig Nov 19, 2020
7a7a5d9
Add Python 3.10 support
christianbundy Oct 27, 2021
bfebdf9
drop Python 3.5
kmike Dec 27, 2021
25a19ef
Merge branch 'fix-ci' into christian/python-3.10
kmike Dec 27, 2021
29aadfe
Merge pull request #131 from christianbundy/christian/python-3.10
kmike Dec 27, 2021
c9152d9
bring back Python 2.7 windows compatibility (revert a wrong change)
kmike Dec 27, 2021
3a20ee0
an attempt to set up GH actions for running tests
kmike Dec 27, 2021
af74aff
fetch submodules; test cython code, not generated cpp code
kmike Dec 27, 2021
61c0d3d
enable macOS tests
kmike Dec 27, 2021
2a51829
remove tests from travis config (they're moved to GH actions)
kmike Dec 27, 2021
62e580f
fix GH actions job names
kmike Dec 27, 2021
acd58bf
try to move windows tests to github actions
kmike Dec 27, 2021
7ff6a66
revert update_cpp.sh script path change
kmike Dec 27, 2021
6a9faca
no need to install coverage (it's unused at the moment)
kmike Dec 27, 2021
95c764a
GH actions: run all jobs
kmike Dec 27, 2021
574cba3
try fixing windows 2.7 build
kmike Dec 27, 2021
620c08b
better syntax?
kmike Dec 27, 2021
195fe5c
try fixing windows 2.7 build
kmike Dec 27, 2021
fbc3b07
Give up on Python 2.7 + Windows
kmike Dec 27, 2021
4e4e6d3
replace travis badge with GH actions
kmike Dec 27, 2021
6927575
Merge pull request #138 from scrapinghub/fix-ci
kmike Dec 27, 2021
06c025c
Fix python version checks in install script
Gerrit-K Jan 17, 2022
b285fda
Merge pull request #141 from Gerrit-K/fix-python-version-check
kmike Jan 18, 2022
6e6fe78
Add missing quote in .manylinux-install.sh
Gerrit-K Mar 15, 2022
58b514e
Add GitHub workflow for building and publishing
Gerrit-K Mar 15, 2022
0d71d2d
Merge pull request #143 from Gerrit-K/patch-1
fgregg Mar 21, 2022
4c8c6f4
Fix PyPI token reference
Gerrit-K Mar 21, 2022
a379099
Run pytest against built wheels
Gerrit-K Mar 21, 2022
19fe2d0
Skip failing PyPy builds
Gerrit-K Mar 21, 2022
4d1c493
Merge pull request #144 from Gerrit-K/travis-to-github
fgregg Mar 22, 2022
19981dd
bump the version to 0.9.8
fgregg Mar 23, 2022
ef48ab6
allow for duplicates in pypi upload
fgregg Mar 23, 2022
10ec638
temporarily disable release check for pypi upload
fgregg Mar 23, 2022
9c87959
restore release check for pypi upload
fgregg Mar 23, 2022
5af4b8a
Delete .travis.yml
fgregg Mar 23, 2022
3935d72
remove appveyor
fgregg Mar 23, 2022
3e08ba0
Delete .manylinux-cython.sh
fgregg Mar 23, 2022
58f5fce
Delete .manylinux-install.sh
fgregg Mar 23, 2022
ddeed81
remove appveyor badge
fgregg Mar 23, 2022
3617b05
Merge pull request #145 from scrapinghub/remove-travis
fgregg Mar 23, 2022
477a049
upgrade cibuildwheel for a py3.11 compatible release
fgregg Feb 1, 2023
25104dc
add py3.11 to test matrices
fgregg Feb 1, 2023
be0f16c
exclude py3.6 from test matrix for ubuntu
fgregg Feb 1, 2023
1c114f2
v0.9.9 release
fgregg Feb 1, 2023
9d53792
skip cp311-win32 builds
fgregg Feb 1, 2023
8d08ceb
also skip cp311-win_amd64
fgregg Feb 1, 2023
84e9a76
Update tox.ini
fgregg Feb 1, 2023
0450b6c
Add support for python 3.12 and drop python 2.7 support
jameshilliard Oct 3, 2023
0761d87
Update build_and_upload.yml
fgregg Dec 16, 2023
a60f834
Update tests.yml
fgregg Dec 16, 2023
6708631
Merge branch 'master' into python-312
fgregg Dec 16, 2023
f43e8e6
Merge pull request #153 from jameshilliard/python-312
fgregg Dec 16, 2023
7cd8735
Update build_and_upload.yml
fgregg Dec 16, 2023
f7c0165
Update setup.py
fgregg Dec 19, 2023
df2857f
Define _POSIX_C_SOURCE for crfsuite source files
karcherm Jun 12, 2024
4bf558b
Use gcc-specific _compile method for triplet-gcc as well
karcherm Jun 12, 2024
a69cb07
Bump actions/download-artifact
dependabot[bot] Sep 3, 2024
5f4ea2b
Merge pull request #163 from scrapinghub/dependabot/github_actions/do…
fgregg Sep 26, 2024
414c826
Update build_and_upload.yml
fgregg Sep 26, 2024
f8a40d2
modernize code a bit, modernize packaging, and make package installab…
fgregg Sep 27, 2024
9fbb235
don't run update_cpp anymore
fgregg Sep 27, 2024
89f309f
try diffent kind of import
fgregg Sep 27, 2024
d6af921
require py38
fgregg Sep 27, 2024
f408ab9
upgrde cibuildwheel
fgregg Sep 27, 2024
c6d25ad
Merge pull request #165 from scrapinghub/modernizing
fgregg Sep 30, 2024
49caf20
Merge branch 'master' into allow-triplet-gcc
fgregg Sep 30, 2024
e6d1d0c
Merge branch 'master' into fix-gcc14-build
fgregg Sep 30, 2024
c0a5f95
Merge pull request #160 from karcherm/allow-triplet-gcc
fgregg Sep 30, 2024
adfb0bd
Merge pull request #159 from karcherm/fix-gcc14-build
fgregg Sep 30, 2024
4db469a
build linux aarch64 wheels, closes #162
fgregg Sep 30, 2024
75c3081
add broken tests.
Jul 22, 2020
4014eb0
make default string encoding utf-8 to handle non-ascii X's and y's
Jul 22, 2020
248699e
set up quemu
fgregg Sep 30, 2024
77b4717
bump version
fgregg Sep 30, 2024
0ca3292
compatible upload and download artifacts?
fgregg Oct 1, 2024
a1df056
overwrite
fgregg Oct 1, 2024
1b2865b
upload and download upgrades
fgregg Oct 1, 2024
e81d4fa
typo
fgregg Oct 1, 2024
3b3de4b
Bump pypa/gh-action-pypi-publish (#166)
dependabot[bot] Sep 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length=160
extend-ignore = E203
71 changes: 71 additions & 0 deletions .github/workflows/build_and_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Build and upload to PyPI

on:
push:
pull_request:
release:
types:
- published

jobs:
build_wheels:
name: "Build wheels on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: "actions/checkout@v4"
with:
submodules: true
- name: "Set up QEMU"
if: matrix.os == 'ubuntu-latest'
uses: "docker/setup-qemu-action@v3"
with:
platforms: arm64
- name: "Build wheels"
uses: "pypa/[email protected]"
env:
CIBW_SKIP: "pp*" # FIXME
CIBW_ARCHS_LINUX: "auto aarch64"
CIBW_TEST_REQUIRES: "pytest"
CIBW_TEST_COMMAND: "pytest {project}/tests --doctest-modules"
- uses: "actions/upload-artifact@v4"
with:
path: "./wheelhouse/*.whl"
name: wheel-${{ matrix.os }}

make_sdist:
name: "Build source distribution"
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v4"
with:
submodules: true
- name: "Build source distribution"
run: "pipx run build --sdist"
- uses: "actions/upload-artifact@v4"
with:
path: "./dist/*.tar.gz"
name: sdist

upload_to_pypi:
name: "Upload to PyPI"
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
needs:
- build_wheels
- make_sdist
steps:
- uses: "actions/download-artifact@v4"
with:
path: dist
merge-multiple: true
- uses: "pypa/[email protected]"
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
print_hash: true
verbose: true
skip_existing: true
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: tests

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

jobs:
tests:
name: "Python ${{ matrix.python-version }} ${{ matrix.os }}"
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-latest, windows-latest]
exclude:
- os: ubuntu-latest
python-version: "3.6"
fail-fast: false

steps:
- uses: "actions/checkout@v4"
with:
submodules: true
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade virtualenv tox tox-gh-actions

- name: "Run tox targets for ${{ matrix.python-version }}"
run: "python -m tox"
6 changes: 0 additions & 6 deletions .manylinux-cython.sh

This file was deleted.

49 changes: 0 additions & 49 deletions .manylinux-install.sh

This file was deleted.

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

This file was deleted.

5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changes
=======

0.9.9 (2023-02-01)
------------------

* Python 3.11 Support

0.9.7 (2020-03-15)
------------------

Expand Down
15 changes: 2 additions & 13 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
python-crfsuite
===============

.. image:: https://travis-ci.org/scrapinghub/python-crfsuite.svg?branch=master
:target: https://travis-ci.org/scrapinghub/python-crfsuite

.. image:: https://ci.appveyor.com/api/projects/status/uaq4sw8tc0oojr4v?svg=true
:target: https://ci.appveyor.com/project/kmike/python-crfsuite-mhi5h
.. image:: https://github.com/scrapinghub/python-crfsuite/actions/workflows/tests.yml/badge.svg
:target: https://github.com/scrapinghub/python-crfsuite/actions/workflows/tests.yml

.. image:: https://img.shields.io/pypi/v/python-crfsuite.svg?style=flat-square
:target: https://pypi.python.org/pypi/python-crfsuite
Expand Down Expand Up @@ -53,14 +50,6 @@ Contributing

Feel free to submit ideas, bugs reports, pull requests or regular patches.

In order to run tests, install Cython_ (> 0.24.1) and tox_, then type

::

./update_cpp.sh; tox

from the source checkout.

Please don't commit generated cpp files in the same commit as other files.

.. _Cython: http://cython.org/
Expand Down
45 changes: 0 additions & 45 deletions appveyor.yml

This file was deleted.

1 change: 0 additions & 1 deletion pycrfsuite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from __future__ import absolute_import
from ._pycrfsuite import *
Loading