forked from prideout/svg3d
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from janbridley/admin/pypi
Prepare for initial release on PyPI
- Loading branch information
Showing
8 changed files
with
148 additions
and
189 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,14 @@ | ||
<!-- Provide a general summary of your changes in the Title above --> | ||
|
||
## Description | ||
<!-- Describe your changes in detail --> | ||
|
||
## Motivation and Context | ||
<!-- Why is this change required? What problem does it solve? --> | ||
<!-- If it fixes an open issue, please link to the issue here. --> | ||
|
||
## Checklist: | ||
<!-- Please select all items that apply either now or after creating the pull request. --> | ||
<!-- If you are unsure about any of these items, do not hesitate to ask! --> | ||
- [ ] The changes introduced by this pull request are covered by existing or newly introduced tests. | ||
- [ ] I have updated the [changelog](https://github.com/janbridley/svg3d/blob/main/changelog.md). |
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,77 @@ | ||
name: Build and Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
branches: | ||
- "main" | ||
- "breaking" | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Build Distribution | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4.2.2 | ||
with: | ||
persist-credentials: false | ||
- name: Set up Python | ||
uses: actions/setup-python@v5.4.0 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install pypa/build | ||
run: python3 -m pip install build --user | ||
- name: Build a binary wheel and a source tarball | ||
run: python3 -m build | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v4.4.3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
publish-to-testpypi: | ||
name: Publish to TestPyPI | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: testpypi | ||
url: https://test.pypi.org/p/svg3d | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v4.1.8 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Publish distribution to TestPyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
verbose: true | ||
skip-existing: true | ||
|
||
publish-to-pypi: | ||
name: Publish to PyPI | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/svg3d | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v4.1.8 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@v1.12.2 |
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,35 @@ | ||
# Changelog | ||
|
||
The format is based on `Keep a Changelog <http://keepachangelog.com/en/1.0.0/>`__. | ||
This project adheres to `Semantic Versioning <http://semver.org/spec/v2.0.0.html>`__. | ||
|
||
## v0.1.2 | ||
|
||
### Fixed | ||
|
||
- Image links in README.rst | ||
|
||
## v0.1.1 | ||
|
||
### Added | ||
|
||
- Added public ReadtheDocs page. | ||
- Additional examples | ||
|
||
## v0.1.0 | ||
|
||
### Changed: | ||
- Removed `pyrr` dependency by implementing matrix methods | ||
- `Mesh` class is now more verstaile, and supports initialization from `Coxeter` objects | ||
|
||
### Added: | ||
- Added `isometric`, `dimetric`, and `trimetric` convenience functions to `View` class. | ||
- Support meshes with nonuniform degree (e.g. mixed tri-quad meshes). Faces are padded out to the largest polygon's size in the projection step, and are filtered back down before drawing the SVG. | ||
- `get_lookat_matrix` and `get_projection_matrix` methods to replace calls to `pyrr` required by the old version | ||
- Additional tests and CI | ||
- New `Shader` submodule, which supports a few basic lighting models and provides an interface for future development | ||
|
||
### Removed: | ||
- `Camera` class has been replaced with `view.look_at` and `view.projection` | ||
- `Scene` class has been removed in favor of basic Python iterables. | ||
- `extras` from original svg3d |
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 was deleted.
Oops, something went wrong.
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