-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to pyproject.toml from setup.py (#73)
* Switch to pyproject.toml from setup.py Fixes #66
- Loading branch information
Showing
6 changed files
with
56 additions
and
51 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
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 |
---|---|---|
|
@@ -10,18 +10,14 @@ on: | |
push: | ||
tags: | ||
- "v*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
|
@@ -31,9 +27,8 @@ jobs: | |
- name: Install packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get upgrade -y | ||
sudo apt-get install -y build-essential python-setuptools python3-pip | ||
pip3 install setuptools | ||
sudo apt-get install -y build-essential python3-pip | ||
pip3 install build | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
@@ -44,26 +39,16 @@ jobs: | |
id: get_version | ||
uses: battila7/get-version-action@v2 | ||
|
||
- name: Install nFPM | ||
run: | | ||
go install github.com/goreleaser/nfpm/v2/cmd/[email protected] | ||
- name: Build partition-manager | ||
run: | | ||
mkdir install | ||
python3 setup.py install --root "install/" --prefix "/usr/local" --install-lib "/usr/lib/python3/dist-packages" | ||
- name: Build deb | ||
run: | | ||
SEMVER=${{ steps.get_version.outputs.version }} | ||
mkdir nfpm-pkg | ||
nfpm package -p deb --target "nfpm-pkg/" | ||
python3 -m build | ||
- name: "Publish release" | ||
uses: "marvinpinto/action-automatic-releases@d68defdd11f9dcc7f52f35c1b7c236ee7513bcc1" | ||
uses: "marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "${{ steps.get_version.outputs.version }}" | ||
title: "partition-manager ${{ steps.get_version.outputs.version }}" | ||
files: | | ||
nfpm-pkg/*.deb | ||
dist/*.whl | ||
dist/*.tar.gz |
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,3 +1,39 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "mariadb-sequential-partition-manager" | ||
maintainers = [ | ||
{name = "J.C. Jones", email = "[email protected]"}, | ||
] | ||
version = "0.4.0" | ||
description = "Manage DB partitions based on sequential IDs" | ||
license = {file = "LICENSE.txt"} | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", | ||
"Programming Language :: Python :: 3", | ||
] | ||
keywords = ["database", "mariadb"] | ||
dependencies = [ | ||
"pyyaml" | ||
] | ||
requires-python = ">=3.8" | ||
readme = "README.md" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["partitionmanager"] | ||
|
||
[project.optional-dependencies] | ||
pymysql = ["PyMySQL >= 1.0.2"] | ||
|
||
[project.urls] | ||
Repository = "http://github.com/letsencrypt/mariadb-sequential-partition-manager" | ||
|
||
[project.scripts] | ||
partition-manager = "partitionmanager.cli:main" | ||
|
||
[tool.ruff] | ||
line-length = 99 # default is 88 | ||
target-version = "py38" | ||
|
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,4 @@ | ||
mariadb-sequential-partition-manager: | ||
maintainer_name: "Let's Encrypt" | ||
maintainer_email: "[email protected]" | ||
extended_desc: "Manage DB partitions based on sequential IDs" |