Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- name: Install dependencies
run: |
pipenv install
pipenv run pip3 install setuptools wheel twine
pipenv run pip3 install build setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pipenv run python3 setup.py sdist bdist_wheel
pipenv run python3 -m build
pipenv run twine upload dist/*
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Install dependencies
run: pipenv install --dev --python=${{ matrix.python-version }}
- name: black
run: pipenv run black meilisearch tests setup.py --check
run: pipenv run black meilisearch tests --check

isort:
name: isort
Expand Down
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "meilisearch"
Expand Down Expand Up @@ -33,6 +34,13 @@ dynamic = ['version']
[tool.setuptools.dynamic]
version = {attr = "meilisearch.version.__version__"}

[tool.setuptools.packages.find]
include = ["meilisearch*"]
exclude = ["docs*", "tests*"]

[tool.setuptools.package-data]
meilisearch = ["py.typed"]

[project.urls]
Meilisearch_Documentation = "https://docs.meilisearch.com/"
Documentation = "https://meilisearch.github.io/meilisearch-python/"
Expand Down Expand Up @@ -63,7 +71,7 @@ extend-exclude = '''
[tool.isort]
profile = "black"
line_length = 100
src_paths = ["meilisearch", "tests", "setup.py"]
src_paths = ["meilisearch", "tests"]

[tool.mypy]
disallow_untyped_defs = true
Expand Down
9 changes: 0 additions & 9 deletions setup.py

This file was deleted.