Skip to content

Commit

Permalink
init package
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Sourty committed May 25, 2024
1 parent a351c64 commit 0536553
Show file tree
Hide file tree
Showing 1,804 changed files with 2,285 additions and 10,926 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rust

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

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
146 changes: 146 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
/target
Cargo.lock
.DS_Store

*.json

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

*.test
*.onx
*.qonx
*.DS_Store
*.pyc
*.ipynb_checkpoints
*.pickle
*.pkl
*.icloud
cache/
# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
test.ipynb
69 changes: 62 additions & 7 deletions Cargo.lock

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

16 changes: 13 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
[package]
name = "rsantelope"
name = "rslenlp"
version = "0.1.0"
edition = "2021"

[lib]
name = "rsantelope"
name = "rslenlp"
crate-type = ["cdylib"]
path = "rust/lib.rs"

[dependencies]
unidecode = "0.3.0"
rayon = "1.10.0"
pyo3 = { version = "0.21.2", features = ["extension-module"] }
pyo3 = { version = "0.21.2", features = ["extension-module"] }
serde = { version = "1.0.202", features = ["derive"] }
serde_json = { version = "1.0.117" }
bincode = "1.3.3"

[profile.dev]
opt-level = 0

[profile.release]
opt-level = 3
3 changes: 1 addition & 2 deletions Manifest.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
include Cargo.toml
include Cargo.lock
include src/*.rs
recursive include rust/*.rs
2 changes: 2 additions & 0 deletions README.Md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ pip install maturin
maturin develop
```



Binary file removed __pycache__/test.cpython-310.pyc
Binary file not shown.
Binary file removed antelope/.DS_Store
Binary file not shown.
Empty file removed antelope/__init__.py
Empty file.
Binary file removed antelope/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file removed antelope/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
3 changes: 0 additions & 3 deletions antelope/normalizer/__init__.py

This file was deleted.

Binary file not shown.
Binary file removed antelope/normalizer/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file removed antelope/normalizer/__pycache__/clean.cpython-38.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
31 changes: 0 additions & 31 deletions antelope/normalizer/normalize.py

This file was deleted.

Loading

0 comments on commit 0536553

Please sign in to comment.