-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added PyPI Publish workflow. Change namespace for uploading to PyPI
- Loading branch information
1 parent
0084054
commit 36b1088
Showing
3 changed files
with
39 additions
and
6 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,28 @@ | ||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
pypi-publish: | ||
name: Publish to PyPI | ||
runs-on: ubuntu-latest | ||
environment: release | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build Package | ||
run: python -m build | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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 |
---|---|---|
|
@@ -3,29 +3,34 @@ requires = ["setuptools >= 61.0"] | |
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "reiuji" | ||
version = "0.1.0-dev" | ||
name = "reiuji_nuclearcraft" | ||
version = "0.1.0" | ||
dependencies = [ | ||
"pydantic", | ||
"ortools", | ||
"nbt" | ||
] | ||
requires-python = ">=3.12" | ||
authors = [ | ||
{name = "Celeste Ma", email = "[email protected]"} | ||
{name = "Celeste Ma", email = "[email protected]"} | ||
] | ||
description = "A library for designing NuclearCraft multiblocks." | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
keywords = ["nuclearcraft", "multiblock", "design", "minecraft"] | ||
classifiers = [ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Other Audience", | ||
"Topic :: Games/Entertainment", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3.12" | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
include = ["reiuji*"] | ||
namespaces = false | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/MtCelesteMa/reiuji" | ||
"Bug Tracker" = "https://github.com/MtCelesteMa/reiuji/issues" |