Skip to content

Commit

Permalink
configure sdist assets, fix #192 (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin authored Oct 6, 2022
1 parent 7edc339 commit da432b8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,21 @@ jobs:
name: pypi_files
path: dist

- run: ls -lh dist/
- name: list dist files
run: |
ls -lh dist/
echo "`ls dist | wc -l` files"
- name: extract and list sdist file
run: |
mkdir sdist-files
tar -xvf dist/*.tar.gz -C sdist-files
tree -a sdist-files
- name: extract and list wheel file
run: |
ls dist/*cp37-abi3-manylinux*x86_64.whl | head -n 1
python -m zipfile --list `ls dist/*cp37-abi3-manylinux*x86_64.whl | head -n 1`
release:
needs: [build, docs]
Expand Down
19 changes: 19 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@
name = "watchfiles_rust_notify"
version = "0.0.0"
edition = "2021"
license = "MIT"
homepage = "https://github.com/samuelcolvin/watchfiles/watchfiles"
repository = "https://github.com/samuelcolvin/watchfiles/watchfiles.git"
readme = "README.md"
include = [
"/pyproject.toml",
"/README.md",
"/LICENSE",
"/Makefile",
"/src",
"/watchfiles",
"/tests",
"/requirements",
"/.cargo",
"!__pycache__",
"!tests/.mypy_cache",
"!tests/.pytest_cache",
"!*.so",
]

[dependencies]
crossbeam-channel = "0.5.4"
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ Funding = 'https://github.com/sponsors/samuelcolvin'
Source = 'https://github.com/samuelcolvin/watchfiles'
Changelog = 'https://github.com/samuelcolvin/watchfiles/releases'

[tool.maturin]
bindings = 'pyo3'
sdist-include = ['Cargo.lock']

[tool.pytest.ini_options]
testpaths = 'tests'
log_format = '%(name)s %(levelname)s: %(message)s'
Expand Down

0 comments on commit da432b8

Please sign in to comment.