Skip to content

Commit

Permalink
1.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorat committed Mar 5, 2024
1 parent c8f4bcd commit ad8351e
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 26 deletions.
59 changes: 35 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,47 @@ on:
types: [created]

jobs:
deploy_pip:
runs-on: ubuntu-20.04
release-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: build release distributions
run: |
# NOTE: put your own distribution build steps here.
python -m pip install build
python -m build
- name: upload windows dists
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

pypi-publish:
runs-on: ubuntu-latest
needs:
- release-build
permissions:
id-token: write

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.6'

- name: Install pip build tools
run: |
sudo apt-get install -y pandoc asciidoctor
python -m pip install --upgrade pip
pip install "setuptools>=53.0" wheel twine
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: pypi Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload --verbose --skip-existing dist/*
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

deploy_docker:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: docker build and push
uses: elgohr/Publish-Docker-Github-Action@master
with:
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ numpy-quaternion
numba
cvxpy>=1.1.6
tabulate>=0.8.7
build>=1.0.3

# Note issues with torch 1.5.0 and ap-gem or r2d2
torch>=1.4.0
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def read_doc(filepath):
setuptools.setup(
# description
name='kapture-localization',
version="0.1.8",
version="1.1.9",
author="naverlabs",
author_email="[email protected]",
description="kapture-localization: localization pipelines based on kapture.",
Expand All @@ -59,7 +59,7 @@ def read_doc(filepath):
],

# dependencies
python_requires='>=3.6',
python_requires='>=3.8',
install_requires=[
'kapture>=1.1.8,<1.2.0',
'numpy>=1.16',
Expand All @@ -69,12 +69,14 @@ def read_doc(filepath):
'torch>=1.4.0',
'tabulate>=0.8.7',
'opencv-python',
'build>=1.0.3',
],
extras_require={
'dev': ['pytest'],
},
# sources
packages=setuptools.find_packages(),
data_files=[(".", ["README.adoc"])],
scripts=[file
for dir in ["tools", 'pipeline']
for file in glob(os.path.join(HERE, dir, '*.py'))],
Expand Down

0 comments on commit ad8351e

Please sign in to comment.