Commit Graph

145 Commits

Author SHA1 Message Date
accd0650b8 Update release for python3.12 windows (#1438)
Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
2024-01-19 15:56:47 +01:00
8f9b945c75 Stale bot. (#1404) 2023-12-05 14:11:37 +01:00
985d49ae64 fix: remove useless token (#1371) 2023-10-19 14:29:01 +02:00
aed491df8c Fixing the progressbar. (#1353)
* Fixing the progressbar.

* Upgrade deps.

* Update cargo audit

* Ssh this action.

* Fixing esaxx by using slower rust version.

* Trying the new esaxx version.

* Publish.

* Get cache again.
2023-10-05 15:33:58 +02:00
d2010d5165 Move to maturing mimicking move for safetensors. + Rewritten node bindings. (#1331)
* Move to maturing mimicking move for `safetensors`.

* Tmp.

* Fix sdist.

* Wat?

* Clippy 1.72

* Remove if.

* Conda sed.

* Fix doc check workflow.

* Moving to maturin AND removing http + openssl mess (smoothing transition
moving to `huggingface_hub`)

* Fix dep

* Black.

* New node bindings.

* Fix docs + node cache ?

* Yarn.

* Working dir.

* Extension module.

* Put back interpreter.

* Remove cache.

* New attempt

* Multi python.

* Remove FromPretrained.

* Remove traces of `fromPretrained`.

* Drop 3.12 for windows?

* Typo.

* Put back the default feature for ignoring links during simple test.

* Fix ?

* x86_64 -> x64.

* Remove warning for windows bindings.

* Excluse aarch.

* Include/exclude.

* Put back workflows in correct states.
2023-08-28 16:24:14 +02:00
f2952020d5 Python 38 arm (#1330) 2023-08-23 16:29:16 +02:00
6c350d88fe Re-using scritpts from safetensors. (#1328) 2023-08-23 15:37:38 +02:00
b35d33f981 Release all at once for simplicity. (#1320) 2023-08-14 13:49:45 +02:00
862046ac94 CD backports (#1318)
* CD backports

follow
huggingface/safetensors#317

* fix node bindings?

`cargo check` doesnt work on my local configuration from `tokenizers/bindings/node/native`
i don't think it will be a problem but i have difficulty telling

* backport #315

* safetensors#317 back ports
2023-08-10 18:52:22 +02:00
348ed70e58 [doc build] Use secrets (#1273) 2023-06-09 12:58:27 +02:00
a03330607b Update all GH Actions with dependency on actions/checkout from v[1,2] to v3 to notably improve performance (retrieve only the commit being checked-out) (#1256) 2023-05-22 14:50:00 +02:00
daf3fcc976 Rvert main hiccup. 2023-05-15 18:01:29 +02:00
b58227c7f1 Never gonna make you cry 2023-05-12 16:28:57 +02:00
02ad59edc1 Never gonna run around and desert you 2023-05-12 16:27:06 +02:00
8d07696c38 Never gonna let you down 2023-05-12 16:24:26 +02:00
d19bc63c67 Merge pull request #1212 from huggingface/fix-node-release
Fix node release
2023-04-06 16:25:29 +02:00
a714aac6f6 revert changes 2023-04-06 14:07:46 +00:00
ceb73dbd29 publish npm 2023-04-06 13:35:29 +00:00
42b110587c Fix conda release (#1211)
* runs-on: ubuntu-latest

* update jobs

* remove uploads

* upload conda package, remove python-release CI

* revert changes

* revart whitespace removal
2023-04-06 12:30:14 +02:00
fbd8d6188e update for testing 2023-04-06 10:29:42 +00:00
daf8aebd76 Adding python 3.8 for M1 (#1147) 2023-01-16 16:40:46 +01:00
5a94a2b6e7 Add missing build targets (#1145)
* M1 3.11 was not out neither windows amd64.

* python@v4.

* Actually upload.

* Update needs.

* Preparing the actual PR.
2023-01-15 10:18:08 +01:00
bfa842e063 Adding stale bot ? (#1123)
* Adding stale bot ?

* Clippy.
2022-12-19 13:50:48 +01:00
1649d74536 Fixing conda ssl location (#1124)
* Fixing conda build ?

* Reduce the scope to speedup testing.

* Reduce more.

* Trying to link to conda lib.

* Trying to enable `pkg-config` on the codna env.

* Really publish.

* Update conda builds.

* Remove 3.11

* Putting releases back onto release track.
2022-12-19 13:50:36 +01:00
67080e163a Include license file in Rust crate (#1115)
* Include license file in Rust crate

* Ignore security warning.

* Also for python.

* Upgrading ubuntu version.

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
2022-11-30 23:17:56 +01:00
ffcf5a4136 Revert "Update pr docs actions (#1101)"
This reverts commit 99c06c82e0.
2022-11-16 11:41:38 +01:00
bbae829a72 Adding rust audit. (#1099)
* Adding rust audit.

* Update clap version + derive_builder (they clashed).

* Ignoring specific CVE which can be ignored

https://github.com/Azure/iot-identity-service/issues/481

* Updating python lock.

* Revert `derive-builder` update.

* Adding back help msg.
2022-11-09 12:59:36 +01:00
99c06c82e0 Update pr docs actions (#1101) 2022-11-09 11:09:52 +01:00
11bb2e00f2 Add python 3.11 to manylinux buildwheels (#1096)
* Add python 3.11 to manylinux buildwheels

* Fixing clippy.

* Node clippy.

* Python clippy.

* Changelog + version number update.

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
2022-11-07 08:45:04 +01:00
96a9e5715c New version. (#1082)
* New version.

The actual release will happen *before* PyO3 0.17.2 because
the tests were ran before than.

* Manylinux2014 necessary now with Rust 1.64.
2022-10-06 15:45:56 +02:00
4ef0afbeb6 Update old gh actions, remove deprecated doc building. (#1069) 2022-10-05 17:59:46 +02:00
6113666624 Updating python formatting. (#1079)
* Updating python formatting.

* Forgot gh action.

* Skipping isort to prevent circular imports.

* Updating stub.

* Removing `isort` (it contradicts `stub.py`).

* Fixing weird stub black/isort disagreeement.
2022-10-05 15:29:33 +02:00
c174b5bd34 Adding m1 build to the release process for Python. (#1055)
* Adding m1 build to the release process for Python.

* typo.
2022-08-25 11:06:03 +02:00
519cc13be0 Upgrade pyo3 to 0.16 (#956)
* Upgrade pyo3 to 0.15

Rebase-conflicts-fixed-by: H. Vetinari <h.vetinari@gmx.com>

* Upgrade pyo3 to 0.16

Rebase-conflicts-fixed-by: H. Vetinari <h.vetinari@gmx.com>

* Install Python before running cargo clippy

* Fix clippy warnings

* Use `PyArray_Check` instead of downcasting to `PyArray1<u8>`

* Enable `auto-initialize` of pyo3 to fix `cargo test
--no-default-features`

* Fix some test cases

Why do they change?

* Refactor and add SAFETY comments to `PyArrayUnicode`

Replace deprecated `PyUnicode_FromUnicode` with `PyUnicode_FromKindAndData`

Co-authored-by: messense <messense@icloud.com>
2022-05-05 15:48:40 +02:00
37957f67f1 Fix typo in doc-build GH workflow 2022-04-21 16:42:04 +02:00
dad9c6c0d2 Revert dev changes 2022-04-21 16:08:22 +02:00
95b5d066d5 Update doc build gh workflow to install rust 2022-04-21 09:20:20 +02:00
fd005a7c4e Add doc-builder gh workflows 2022-04-18 09:50:31 +02:00
23a22da18c Update the builder to use earlier windows version (2022) is not understood. (#969)
* Update the builder to use earlier windows version (2022) is not
understood.

* No node for windows.

* Ready to deploy.
2022-03-31 15:00:11 +02:00
0eb7455fe5 Preparing 0.12 release. (#967)
* Preparing `0.12` release.

* Fix click version: https://github.com/psf/black/issues/2964
2022-03-31 11:06:33 +02:00
03e10b606d Publishing a crate does not require a specific OS. 2022-02-28 11:52:52 +01:00
a291d7d4a0 Small fix for publishing rust 2022-02-28 11:50:35 +01:00
1d29a5179c Adding rust release CI. 2022-02-28 11:30:46 +01:00
2c9d039ed0 Update doc versions, + downgrade 3.10 for conda. 2022-01-17 10:22:10 +01:00
cabbecb96c add python3.10 release (#877)
* add missing python3.9 classifier

* add python3.10 release

* run tests on 3.10

* Revert "run tests on 3.10"

This reverts commit ceed64249e54b6ec622b06c59bf47da7c6dfc1b0.
2022-01-12 09:42:13 +01:00
38a85b2112 Last touches for conda hopefully
- Missng env activation for many linux + upload
2021-12-24 08:05:09 +01:00
943f4ef469 Preparing for 0.11.0 Re-release. (#856)
* Starting from master again.

Upgrade libssl everywhere on quay

Extra is ubuntu based (running the quay in a container).

making only extra run + attempt to fix ssl update.

Extra with newer openssl versions.

`-y`.

Use checkoint@v2 + remove `-` from environment name.

Debugging back the conda release..

Attempt to use `base` env.

3.7 requires `activate-environement: true.

MacOS and windows don't run on manylinux.

Remove yum on windows/macOs.

Miniconda doesn't like manylinux2014 anymore ?

Attempting different approach for manylinux + conda.

Use wget.

Extra bracet.

Executing $filename

Activate the env.

Activate the env on eevery step that requires it.

Openssl-devel.

Activating env for extracting version ?

Retest all workflows.

Manylinux2010 requires checkout@v1

Run on tag for extra and conda again.

openssl-devel.

* Putting back into deploy state.

* Adding links in CHANGELOG.

* Remove clippy from changelog.
2021-12-23 16:43:48 +01:00
b240ccb68a Updating doc with real links. (#851)
* Updating doc with real links.

* Remove cache to make it build ?
2021-12-17 17:50:24 +01:00
c1100ec542 Clippy fixes. (#846)
* Clippy fixes.

* Drop support for Python 3.6

* Remove other 3.6

* Re-enabling caches for build (5h + seems too long and issue seems
solved)

https://github.com/actions/virtual-environments/issues/572

* `npm audit fix`.

* Fix yaml ?

* Pyarrow issue fixed: https://github.com/huggingface/datasets/pull/2268

* Installing dev libraries.

* Install python dev elsewhere ?

* Typo.

* No sudo.

* ...

* Testing the GH again.

* Maybe v2 will fix ?

* Fixing tests on MacOS Python 3.8+
2021-12-15 15:55:48 +01:00
0a37bd8d55 Attempt at fixing Conda builds
Ref #585
2021-09-08 08:56:58 +02:00