Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pyproject.toml
Browse files Browse the repository at this point in the history
thomasjpfan committed Feb 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6a2ce3f commit c71ebfe
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
@@ -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
28 changes: 4 additions & 24 deletions flyteidl/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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
@@ -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]
@@ -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.