-
Notifications
You must be signed in to change notification settings - Fork 4
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 #619 from 1nv0k32/bugfix/hatch-migration-fixes
New versioning and fix for License
- Loading branch information
Showing
4 changed files
with
56 additions
and
37 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 |
---|---|---|
|
@@ -4,6 +4,8 @@ on: | |
push: | ||
branches: | ||
- main | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
labeler: | ||
|
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,42 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Upgrade pip | ||
run: | | ||
pip install --constraint=.github/workflows/constraints.txt pip | ||
pip --version | ||
- name: Install Hatch | ||
run: | | ||
pip install --constraint=.github/workflows/hatch-constraints.txt hatch | ||
hatch --version | ||
- name: Build package | ||
run: | | ||
hatch build | ||
- name: Publish package on TestPyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[project] | ||
name = "human-readable" | ||
version = "1.3.3" | ||
dynamic = ["version"] | ||
description = "Human Readable" | ||
authors = [ | ||
{ name = "staticdev", email = "[email protected]"} | ||
] | ||
license = "MIT" | ||
license = {text = "MIT"} | ||
readme = "README.md" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
|
@@ -17,6 +17,9 @@ classifiers = [ | |
requires-python = ">=3.8" | ||
dependencies = [] | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[project.urls] | ||
homepage = "https://github.com/staticdev/human-readable" | ||
repository = "https://github.com/staticdev/human-readable" | ||
|
@@ -200,5 +203,5 @@ exclude = [ | |
] | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
requires = ["hatchling", "hatch-vcs"] | ||
build-backend = "hatchling.build" |