File tree 4 files changed +48
-40
lines changed
4 files changed +48
-40
lines changed Original file line number Diff line number Diff line change 32
32
run : |
33
33
sudo apt-get update
34
34
sudo apt-get upgrade -y
35
- sudo apt-get install -y build-essential python-setuptools python3-pip
36
- pip3 install setuptools
35
+ sudo apt-get install -y build-essential python3-pip fakeroot build-essential devscripts debhelper
36
+ pip3 install build wheel2deb
37
37
38
38
- name : Checkout
39
39
uses : actions/checkout@v2
@@ -44,26 +44,22 @@ jobs:
44
44
id : get_version
45
45
uses : battila7/get-version-action@v2
46
46
47
- - name : Install nFPM
48
- run : |
49
- go install github.com/goreleaser/nfpm/v2/cmd/[email protected]
50
-
51
47
- name : Build partition-manager
52
48
run : |
53
- mkdir install
54
- python3 setup.py install --root "install/" --prefix "/usr/local" --install-lib "/usr/lib/python3/dist-packages"
49
+ python3 -m build
55
50
56
51
- name : Build deb
57
52
run : |
58
- SEMVER=${{ steps.get_version.outputs.version }}
59
- mkdir nfpm-pkg
60
- nfpm package -p deb --target "nfpm-pkg/"
53
+ wheel2deb -x ./dist --depends python3-yaml
54
+ wheel2deb build
61
55
62
56
- name : " Publish release"
63
- uses : " marvinpinto/action-automatic-releases@d68defdd11f9dcc7f52f35c1b7c236ee7513bcc1 "
57
+ uses : " marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0 "
64
58
with :
65
59
repo_token : " ${{ secrets.GITHUB_TOKEN }}"
66
60
automatic_release_tag : " ${{ steps.get_version.outputs.version }}"
67
61
title : " partition-manager ${{ steps.get_version.outputs.version }}"
68
62
files : |
69
- nfpm-pkg/*.deb
63
+ dist/*.whl
64
+ dist/*.tar.gz
65
+ output/*.deb
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
+ install_requires = [
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"
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