-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91a4d32
commit 960ade7
Showing
4 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Publish Scroll Renderer to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'scroll-renderer-v*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
name: Publish Scroll Renderer to PyPI | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
id-token: write | ||
defaults: | ||
run: | ||
working-directory: ./scroll-renderer | ||
|
||
steps: | ||
- name: Check out the code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install build dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel build | ||
- name: Build the package | ||
run: | | ||
python -m build --sdist --wheel | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: scroll-renderer/dist | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,13 @@ | |
|
||
from setuptools import setup, find_packages | ||
|
||
|
||
with open("README.md", "r", encoding="utf-8") as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
name='scroll_renderer', | ||
version='0.0.2', | ||
version='0.0.2a', | ||
packages=find_packages(), | ||
install_requires=[ | ||
'numpy', | ||
|
@@ -35,8 +39,18 @@ | |
}, | ||
author='Vesuvius Challenge Team', | ||
author_email='[email protected]', | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url='https://github.com/ScrollPrize/villa', | ||
description='A package for flattening and rendering 3D meshes of segments of the Herculaneum Papyri.', | ||
classifiers=[ | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.11', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Scientific/Engineering', | ||
], | ||
) |