Skip to content

Commit

Permalink
Bumped version to 0.1.0.
Browse files Browse the repository at this point in the history
Added PyPI Publish workflow.
Change namespace for uploading to PyPI
  • Loading branch information
MtCelesteMa committed May 24, 2024
1 parent 0084054 commit 36b1088
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 6 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pypi-publish.yml
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Reiuji is named after [Utsuho Reiuji](https://en.touhouwiki.net/wiki/Utsuho_Reiu

## Installation

Most users won't have to install Reiuji directly. But if you need to do so, it can be installed via pip using the command below:
Most users won't have to install Reiuji directly (see Usage below for more information). But if you need to do so, it can be installed via pip using the command below:
```shell
pip install "git+https://github.com/MtCelesteMa/reiuji.git"
pip install reiuji-nuclearcraft
```

## Features
Expand Down
13 changes: 9 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 36b1088

Please sign in to comment.