File tree 3 files changed +61
-16
lines changed 3 files changed +61
-16
lines changed Original file line number Diff line number Diff line change 25
25
26
26
- name : Upgrade pip
27
27
run : |
28
- pip install --constraint=.github/workflows/constraints.txt pip
29
- pip --version
30
-
31
- - name : Install Poetry
32
- run : |
33
- pip install --constraint=.github/workflows/constraints.txt poetry
34
- poetry --version
28
+ pip install --upgrade pip
29
+ pip install hatch
35
30
36
31
- name : Check if there is a parent commit
37
32
id : check-parent-commit
@@ -44,18 +39,17 @@ jobs:
44
39
45
40
with :
46
41
version-command : |
47
- bash -o pipefail -c "poetry version | awk '{ print \$2 }' "
42
+ bash -o pipefail -c "hatch version"
48
43
49
44
- name : Bump version for developmental release
50
45
if : " ! steps.check-version.outputs.tag"
51
46
run : |
52
- poetry version patch &&
53
- version=$(poetry version | awk '{ print $2 }') &&
54
- poetry version $version.dev.$(date +%s)
47
+ version=$(hatch version) &&
48
+ hatch version $version.dev.$(date +%s)
55
49
56
50
- name : Build package
57
51
run : |
58
- poetry build --ansi
52
+ hatch build
59
53
60
54
- name : Publish package on PyPI
61
55
if : steps.check-version.outputs.tag
Original file line number Diff line number Diff line change
1
+ [project ]
2
+ name = " protosym"
3
+ version = " 0.0.2"
4
+ requires-python = " >=3.8"
5
+ license = " BSD-3-clause"
6
+ description = " ProtoSym"
7
+ readme = " README.rst"
8
+ authors = [
9
+ {
name =
" Oscar Benjamin" ,
email =
" [email protected] " },
10
+ ]
11
+ classifiers = [
12
+ " Programming Language :: Python :: 3.8" ,
13
+ " Programming Language :: Python :: 3.9" ,
14
+ " Programming Language :: Python :: 3.10" ,
15
+ " Programming Language :: Python :: 3.11" ,
16
+ " Programming Language :: Python :: 3.12" ,
17
+ ]
18
+
19
+ [project .optional-dependencies ]
20
+ all = [
21
+ " numpy" ,
22
+ " sympy" ,
23
+ " llvmlite" ,
24
+ ]
25
+
26
+ [build-system ]
27
+ requires = [" hatchling" ]
28
+ build-backend = " hatchling.build"
29
+
30
+ [tool .hatch .build ]
31
+ include = [
32
+ " src" ,
33
+ " docs" ,
34
+ " tests" ,
35
+ " benchmarks" ,
36
+
37
+ " requirements-*.txt" ,
38
+
39
+ " noxfile.py" ,
40
+ " quicktest.sh" ,
41
+
42
+ " README.rst" ,
43
+ " CONTRIBUTING.rst" ,
44
+ " CODE_OF_CONDUCT.rst" ,
45
+ " LICENSE.rst" ,
46
+
47
+ " pyproject.toml" ,
48
+ ]
49
+
50
+ [tool .hatch .build .targets .wheel ]
51
+ packages = [
52
+ " src/protosym" ,
53
+ ]
54
+
1
55
[tool .poetry ]
2
56
name = " protosym"
3
57
version = " 0.0.2"
@@ -109,7 +163,3 @@ module = [
109
163
]
110
164
follow_imports = " skip"
111
165
ignore_missing_imports = true
112
-
113
- [build-system ]
114
- requires = [" poetry-core>=1.0.0" ]
115
- build-backend = " poetry.core.masonry.api"
Original file line number Diff line number Diff line change 2
2
llvmlite
3
3
numpy
4
4
pytest
5
+ pytest-cov
5
6
coverage[toml]
6
7
pygments
7
8
xdoctest[colors]
You can’t perform that action at this time.
0 commit comments