Skip to content

Commit

Permalink
Fix pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjpfan committed Feb 6, 2024
1 parent 6a2ce3f commit c71ebfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/flyteidl-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install build twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
deploy-to-npm:
runs-on: ubuntu-latest
Expand Down
28 changes: 4 additions & 24 deletions flyteidl/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ requires-python = ">=3.8,<3.13"
dependencies = [
'googleapis-common-protos',
'protoc_gen_swagger',
'protobuf>=4.21.1,<5.0.0'
'protobuf>=4.21.1,<5.0.0',
# Packages in here should rarely be pinned. This is because these
# packages (at the specified version) are required for project
# consuming this library. By pinning to a specific version you are the
Expand Down Expand Up @@ -43,7 +43,7 @@ classifiers = [
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules"
"Topic :: Software Development :: Libraries :: Python Modules",
]

[project.urls]
Expand All @@ -53,26 +53,6 @@ Homepage = "https://github.com/flyteorg/flyte/tree/master/flyteidl"
root = "../"
tag_regex = '^(?:[\w-]+/)?(?P<version>[vV]?\d+(?:\.\d+){0,2}[^\+]*)(?:\+.*)?$'

# https://github.com/pypa/setuptools/issues/3136 describes an extension to
# setuptools that would involve a simpler way to specify this, but while
# that does not happen we have to package the pyi files manually like so:
[tool.setuptools.package-data]
flyteidl = ["*.pyi", "**/*pyi"]

[tool.setuptools.packages.find]
include = ["gen/pb_python/*"]
exclude = [
"_templates",
"tmp",
"boilerplate",
"clients",
"docs",
"jsonschema",
"protos",
"scripts",
"gen/pb-cpp",
"gen/pb-go",
"gen/pb-java",
"gen/pb-js",
"gen/pb-rust",
]
where = ["gen/pb_python"]
include = ["flyteidl*"]

0 comments on commit c71ebfe

Please sign in to comment.