Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.0.9 to support 8.4 #25

Merged
merged 50 commits into from
Jul 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
f05d4e5
savepoint
anthonyjpesce Dec 6, 2021
b74fd87
feat: Python library v1 (#11)
freedmand Dec 8, 2021
3449936
merge develop
anthonyjpesce Dec 9, 2021
78e49c5
fix: memory buffer overflow issue due to incorrect arithmetic (#12)
freedmand Dec 9, 2021
faca42f
trying to get things to work
anthonyjpesce Dec 14, 2021
22f8363
Merge branch 'develop' of github.com:washingtonpost/FastFEC into ne-1…
anthonyjpesce Dec 14, 2021
7a1a2c8
gitignore
anthonyjpesce Dec 14, 2021
de9a37a
seems to work now
anthonyjpesce Dec 14, 2021
21c378b
add the pre commit config
anthonyjpesce Dec 14, 2021
2ab23a7
pre-commit changes
anthonyjpesce Dec 14, 2021
45363bf
pre-commit config
anthonyjpesce Dec 14, 2021
a0fd491
tweakos
anthonyjpesce Dec 15, 2021
7837334
python directory for the tests
anthonyjpesce Dec 15, 2021
0466ea9
one more
anthonyjpesce Dec 15, 2021
4ee0afb
oops
anthonyjpesce Dec 15, 2021
a1efb02
we should run the python setup after zig
anthonyjpesce Dec 15, 2021
e2424cd
formatting again
anthonyjpesce Dec 15, 2021
02b0221
change the way we do pathing to see if that fixes the workflow
anthonyjpesce Dec 15, 2021
b43346e
quick attempt
anthonyjpesce Dec 15, 2021
b36a614
actually commit the fixtures
anthonyjpesce Dec 15, 2021
91fdc8b
formatting
anthonyjpesce Dec 15, 2021
78746ea
fix: write string if float conversion fails on C side
freedmand Dec 15, 2021
e1df06a
fix: write string instead of null on float field conversion from C
freedmand Dec 15, 2021
d5539c6
test...
anthonyjpesce Dec 15, 2021
4b3b392
Merge branch 'ne-1286-python-tests' of github.com:washingtonpost/Fast…
anthonyjpesce Dec 15, 2021
8261f69
cleanup
anthonyjpesce Dec 15, 2021
099c2d1
moar cleanup
anthonyjpesce Dec 15, 2021
8a8ca86
formatting
anthonyjpesce Dec 15, 2021
7889d18
readme
anthonyjpesce Dec 15, 2021
f771223
formatting
anthonyjpesce Dec 15, 2021
d3a48f4
Readme
anthonyjpesce Dec 15, 2021
a72b154
feat: add beta release GitHub workflow
hs4man21 Dec 16, 2021
b59cda7
dylan tweaks
anthonyjpesce Dec 17, 2021
0c001ea
Merge pull request #13 from washingtonpost/ne-1286-python-tests
anthonyjpesce Dec 17, 2021
c81df8b
fix: use yaml scope on beta release
freedmand Dec 21, 2021
a2cbd3b
Merge pull request #14 from washingtonpost/NE-1802-add-beta-release-g…
hs4man21 Dec 21, 2021
a08e63b
Cross-compiled Python package/distribution (#15)
freedmand Jan 19, 2022
7cf49b6
test: remove failing libpcre ubuntu dependency that may not be needed…
freedmand Feb 24, 2022
50117c5
feat: fix filing_id bug with header (#17)
freedmand Feb 24, 2022
10c08b7
Merge branch 'main' into develop
freedmand Feb 27, 2022
a049d88
Add support for version 8.4 (#20)
esonderegger May 18, 2022
a2fcbd1
fix: update apt-get to fix GH fail
chriszs May 19, 2022
78eeca1
Merge pull request #21 from washingtonpost/fix/libcurl-dep-install-fa…
chriszs May 20, 2022
f3e2697
fix: try pinning zig to 0.9.0 in Actions
chriszs Jun 1, 2022
250a94e
fix: additional zig version pinning in Actions
chriszs Jun 1, 2022
b29665c
chore: upgrade zig to 0.9.1
chriszs Jun 1, 2022
a159c4a
docs: update README to reflect correct zig version
chriszs Jun 1, 2022
7d6e4ef
docs: let's say zig 0.9.1, sure why not
chriszs Jun 1, 2022
cb69558
chore: also update zig to 0.9.1 for Python wheels
chriszs Jul 15, 2022
9997ef2
Merge pull request #26 from washingtonpost/fix/move-zig-to-a-new-vers…
chriszs Jul 15, 2022
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
2 changes: 1 addition & 1 deletion .github/workflows/beta-python-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
python-version: "3.x"

- name: Install Zig
run: python -m pip install ziglang==0.9.0 wheel==0.37.1
run: python -m pip install ziglang==0.9.1 wheel==0.37.1

- name: Build wheels
run: python python/make_wheels.py
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.9.0-dev.1675+3d528161c
version: 0.9.1
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::latest
shell: bash
- run: sudo apt install -y libcurl4-openssl-dev
- run: |
sudo apt-get update
sudo apt install -y libcurl4-openssl-dev
- run: zig build
- run: zip -j fastfec-linux-x86_64-latest.zip zig-out/bin/fastfec
- run: mv zig-out/lib/libfastfec.so libfastfec-linux-x86_64-latest.so
Expand All @@ -41,7 +43,7 @@ jobs:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.9.0-dev.1675+3d528161c
version: 0.9.1
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::latest
Expand Down Expand Up @@ -69,7 +71,7 @@ jobs:
- uses: ilammy/msvc-dev-cmd@v1
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.9.0-dev.1675+3d528161c
version: 0.9.1
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-python-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
python-version: "3.x"

- name: Install Zig
run: python -m pip install ziglang==0.9.0 wheel==0.37.1
run: python -m pip install ziglang==0.9.1 wheel==0.37.1

- name: Build wheels
run: python python/make_wheels.py
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/pr-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.9.0-dev.1675+3d528161c
version: 0.9.1
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::latest
shell: bash
- run: sudo apt install -y libcurl4-openssl-dev
- run: |
sudo apt-get update
sudo apt install -y libcurl4-openssl-dev
- run: zig build
- run: zip -j fastfec-linux-x86_64-latest.zip zig-out/bin/fastfec
- run: mv zig-out/lib/libfastfec.so libfastfec-linux-x86_64-latest.so
Expand All @@ -40,7 +42,7 @@ jobs:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.9.0-dev.1675+3d528161c
version: 0.9.1
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::latest
Expand All @@ -67,7 +69,7 @@ jobs:
- uses: ilammy/msvc-dev-cmd@v1
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.9.0-dev.1675+3d528161c
version: 0.9.1
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stable-python-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
python-version: "3.x"

- name: Install Zig
run: python -m pip install ziglang==0.9.0 wheel==0.37.1
run: python -m pip install ziglang==0.9.1 wheel==0.37.1

- name: Build wheels
run: python python/make_wheels.py
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/stable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.9.0-dev.1675+3d528161c
version: 0.9.1
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash
- run: sudo apt install -y libcurl4-openssl-dev
- run: |
sudo apt-get update
sudo apt install -y libcurl4-openssl-dev
- run: zig build
- run: zip -j fastfec-linux-x86_64-${{ steps.get_version.outputs.VERSION }}.zip zig-out/bin/fastfec
- run: mv zig-out/lib/libfastfec.so libfastfec-linux-x86_64-${{ steps.get_version.outputs.VERSION }}.so
Expand All @@ -43,7 +45,7 @@ jobs:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.9.0-dev.1675+3d528161c
version: 0.9.1
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
Expand Down Expand Up @@ -72,7 +74,7 @@ jobs:
- uses: ilammy/msvc-dev-cmd@v1
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.9.0-dev.1675+3d528161c
version: 0.9.1
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ jobs:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.9.0-dev.1675+3d528161c
version: 0.9.1
- name: Install system dependencies
run: sudo apt install -y libcurl4-openssl-dev
run: |
sudo apt-get update
sudo apt install -y libcurl4-openssl-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The short form of flags can be combined, e.g. `-is` would include filing IDs and

### Build system

[Zig](https://ziglang.org/) is used to build and compile the project. Download and install the latest version of Zig (>=9.0.0) by following the instructions on the website (you can verify it's working by typing `zig` in the terminal and seeing help commands).
[Zig](https://ziglang.org/) is used to build and compile the project. Download and install the latest version of Zig (>=0.9.1) by following the instructions on the website (you can verify it's working by typing `zig` in the terminal and seeing help commands).

### Dependencies

Expand All @@ -81,6 +81,7 @@ brew install pkg-config curl
#### Ubuntu

```sh
sudo apt-get update
sudo apt install -y libcurl4-openssl-dev
```

Expand Down
2 changes: 1 addition & 1 deletion python/make_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def write_wheel(out_dir, *, name, version, tag, metadata, description, contents)
# First clear the target directory of any stray files
if os.path.exists(LIBRARY_DIR):
shutil.rmtree(LIBRARY_DIR)
# Compile! Requires ziglang==0.9.0 to be installed
# Compile! Requires ziglang==0.9.1 to be installed
subprocess.call(
[sys.executable, "-m", "ziglang", "build", "-Dlib-only=true", f"-Dtarget={zig_target}", *sys.argv[1:]],
cwd=PARENT_DIR,
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
requires = [
"setuptools",
"wheel",
"ziglang==0.9.0"
"ziglang==0.9.1"
]
2 changes: 1 addition & 1 deletion python/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ pytest-xdist
pytest-mock
black
isort
ziglang==0.9.0
ziglang==0.9.1
-e .
Loading