File tree 6 files changed +56
-51
lines changed
6 files changed +56
-51
lines changed Original file line number Diff line number Diff line change 17
17
- name : Install Linting Tools
18
18
run : |
19
19
python -m pip install --upgrade pip
20
- pip install --user pylint==3.1.0 pytest ruff
20
+ pip install --user pylint==3.1.0 pytest ruff validate-pyproject[all]
21
21
22
22
- name : Install Partition Manager
23
23
run : |
35
35
run : |
36
36
python -m ruff --output-format=github
37
37
38
+ - name : Checking pyproject
39
+ run : |
40
+ validate-pyproject pyproject.toml
41
+
38
42
test :
39
43
runs-on : ubuntu-latest
40
44
Original file line number Diff line number Diff line change 10
10
push :
11
11
tags :
12
12
- " v*"
13
+ workflow_dispatch :
13
14
14
15
jobs :
15
16
release :
16
17
name : release
17
18
runs-on : ubuntu-latest
18
19
19
20
steps :
20
- - name : Setup Go
21
- uses : actions/setup-go@v2
22
- with :
23
- go-version : 1.17
24
-
25
21
- name : Setup python
26
22
uses : actions/setup-python@v2
27
23
with :
31
27
- name : Install packages
32
28
run : |
33
29
sudo apt-get update
34
- sudo apt-get upgrade -y
35
- sudo apt-get install -y build-essential python-setuptools python3-pip
36
- pip3 install setuptools
30
+ sudo apt-get install -y build-essential python3-pip
31
+ pip3 install build
37
32
38
33
- name : Checkout
39
34
uses : actions/checkout@v2
@@ -44,26 +39,16 @@ jobs:
44
39
id : get_version
45
40
uses : battila7/get-version-action@v2
46
41
47
- - name : Install nFPM
48
- run : |
49
- go install github.com/goreleaser/nfpm/v2/cmd/[email protected]
50
-
51
42
- name : Build partition-manager
52
43
run : |
53
- mkdir install
54
- python3 setup.py install --root "install/" --prefix "/usr/local" --install-lib "/usr/lib/python3/dist-packages"
55
-
56
- - name : Build deb
57
- run : |
58
- SEMVER=${{ steps.get_version.outputs.version }}
59
- mkdir nfpm-pkg
60
- nfpm package -p deb --target "nfpm-pkg/"
44
+ python3 -m build
61
45
62
46
- name : " Publish release"
63
- uses : " marvinpinto/action-automatic-releases@d68defdd11f9dcc7f52f35c1b7c236ee7513bcc1 "
47
+ uses : " marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0 "
64
48
with :
65
49
repo_token : " ${{ secrets.GITHUB_TOKEN }}"
66
50
automatic_release_tag : " ${{ steps.get_version.outputs.version }}"
67
51
title : " partition-manager ${{ steps.get_version.outputs.version }}"
68
52
files : |
69
- nfpm-pkg/*.deb
53
+ dist/*.whl
54
+ dist/*.tar.gz
Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ repos:
26
26
- pyyaml
27
27
- pytest
28
28
- setuptools
29
-
29
+ - repo : https://github.com/abravalheri/validate-pyproject
30
+ rev : v0.16
31
+ hooks :
32
+ - id : validate-pyproject
30
33
- repo : local
31
34
hooks :
32
35
- id : pytest
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" hatchling" ]
3
+ build-backend = " hatchling.build"
4
+
5
+ [project ]
6
+ name = " mariadb-sequential-partition-manager"
7
+ maintainers = [
8
+ {
name =
" J.C. Jones" ,
email =
" [email protected] " },
9
+ ]
10
+ version = " 0.4.0"
11
+ description = " Manage DB partitions based on sequential IDs"
12
+ license = {file = " LICENSE.txt" }
13
+ classifiers = [
14
+ " Development Status :: 4 - Beta" ,
15
+ " License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)" ,
16
+ " Programming Language :: Python :: 3" ,
17
+ ]
18
+ keywords = [" database" , " mariadb" ]
19
+ dependencies = [
20
+ " pyyaml"
21
+ ]
22
+ requires-python = " >=3.8"
23
+ readme = " README.md"
24
+
25
+ [tool .hatch .build .targets .wheel ]
26
+ packages = [" partitionmanager" ]
27
+
28
+ [project .optional-dependencies ]
29
+ pymysql = [" PyMySQL >= 1.0.2" ]
30
+
31
+ [project .urls ]
32
+ Repository = " http://github.com/letsencrypt/mariadb-sequential-partition-manager"
33
+
34
+ [project .scripts ]
35
+ partition-manager = " partitionmanager.cli:main"
36
+
1
37
[tool .ruff ]
2
38
line-length = 99 # default is 88
3
39
target-version = " py38"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ mariadb-sequential-partition-manager :
2
+ maintainer_name : " Let's Encrypt"
3
+ maintainer_email :
" [email protected] "
4
+ extended_desc : " Manage DB partitions based on sequential IDs"
You can’t perform that action at this time.
0 commit comments