File tree 2 files changed +49
-5
lines changed
2 files changed +49
-5
lines changed Original file line number Diff line number Diff line change
1
+ # Derived from https://github.com/cta-observatory/project-template-python-pure/blob/main/.github/workflows/pypi.yml
2
+ name : Deploy to PyPi
3
+
4
+ on :
5
+ push :
6
+ tags :
7
+ - ' v*'
8
+
9
+ jobs :
10
+ deploy :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+
15
+ # make sure we have version info
16
+ - run : git fetch --tags
17
+
18
+ - name : Set up Python
19
+ uses : actions/setup-python@v4
20
+ with :
21
+ python-version : " 3.9"
22
+
23
+ - name : Install dependencies
24
+ run : |
25
+ python --version
26
+ pip install -U build
27
+ python -m build
28
+
29
+ - name : Publish package
30
+ uses : pypa/gh-action-pypi-publish@release/v1
31
+ with :
32
+ user : __token__
33
+ password : ${{ secrets.pypi_test_token }}
34
+ # remove next line for actual publishing to real pypi
35
+ repository_url : https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" setuptools>=65" ]
2
+ requires = [" setuptools>=65" , " setuptools_scm[toml]>=6.2 " ]
3
3
build-backend = " setuptools.build_meta"
4
4
5
+ [tool .setuptools ]
6
+ packages =[" v2dl5" ]
7
+
8
+ [tool .setuptools_scm ]
9
+ write_to = " v2dl5/_version.py"
10
+
5
11
[project ]
6
12
name = " v2dl5"
13
+ dynamic = [" version" ]
7
14
description = " High-level analysis for VERITAS with gammapy"
8
15
readme = " README.md"
9
16
license = { file =" LICENSE" }
@@ -12,9 +19,11 @@ authors = [
12
19
{
name =
" Gernot Maier" ,
email =
" [email protected] " },
13
20
]
14
21
classifiers = [
22
+ " Intended Audience :: Science/Research" ,
15
23
" Programming Language :: Python :: 3" ,
16
- " License :: OSI Approved :: BSD-3-Clause " ,
24
+ " License :: OSI Approved :: BSD License " ,
17
25
" Operating System :: OS Independent" ,
26
+ " Topic :: Scientific/Engineering :: Astronomy" ,
18
27
]
19
28
requires-python = " >=3.9"
20
29
dependencies = [
@@ -28,12 +37,12 @@ dependencies = [
28
37
"repository" = " https://github.com/GernotMaier/V2DL5"
29
38
"bug tracker" = " https://github.com/GernotMaier/V2DL5/issues"
30
39
40
+ [project .scripts ]
41
+ v2dl5-1d-reflected-region = " v2dl5.scripts.1d_reflected_region:main"
42
+
31
43
[tool .black ]
32
44
line_length = 100
33
45
34
46
[tool .isort ]
35
47
profile = " black"
36
48
filter_files = true
37
-
38
-
39
- [tool .setuptools .packages .find ]
You can’t perform that action at this time.
0 commit comments