Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit 8d19a25

Browse files
committed
feat: update Conda package publish
1 parent 00c9331 commit 8d19a25

File tree

8 files changed

+50
-56
lines changed

8 files changed

+50
-56
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ jobs:
3333
if: startsWith(github.ref, 'refs/tags')
3434
uses: m0nhawk/conda-package-publish-action@master
3535
with:
36+
subDir: './conda'
3637
AnacondaUsername: ${{ secrets.ANACONDA_USERNAME }}
3738
AnacondaPassword: ${{ secrets.ANACONDA_PASSWORD }}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# ignore lock file, it's a library
2-
Pipfile.lock
1+
#
2+
grafana_api/version.py
33

44
# Created by .ignore support plugin (hsz.mobi)
55
### Python template

_config.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

conda/conda_setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from setuptools import setup
2+
from grafana_api.version import version
3+
setup(
4+
version=version,
5+
)

conda/meta.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{% set data = load_setup_py_data(setup_file='conda_setup.py') %}
2+
{% set version = data.get('version') %}
3+
4+
package:
5+
name: grafana_api
6+
version: {{ version }}
7+
8+
source:
9+
path: ..
10+
11+
build:
12+
noarch: python
13+
number: 0
14+
script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv
15+
16+
requirements:
17+
host:
18+
- python
19+
- requests
20+
run:
21+
- python
22+
- requests
23+
24+
test:
25+
imports:
26+
- grafana_api
27+
- grafana_api.api
28+
29+
about:
30+
home: https://m0nhawk.github.io/grafana_api/
31+
license: MIT
32+
license_family: MIT
33+
license_file: LICENSE
34+
summary: Yet another Python library for Grafana API
35+
doc_url: https://m0nhawk.github.io/grafana_api/
36+
dev_url: https://m0nhawk.github.io/grafana_api/
37+
38+
extra:
39+
recipe-maintainers:
40+
- m0nhawk

meta.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

setup.cfg

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,4 @@ universal = true
5757
[tool.setuptools_scm]
5858
local_scheme = no-local-version
5959
version_scheme = python-simplified-semver
60-
61-
# [coverage:run]
62-
# branch = True
63-
# omit =
64-
# docs/*
65-
# setup.py
66-
# tests/*
67-
# .vulture/*
60+
write_to = grafana_api/version.py

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
use_scm_version={
66
"local_scheme": "no-local-version",
77
"version_scheme": "python-simplified-semver",
8+
"write_to": "grafana_api/version.py",
89
},
910
)

0 commit comments

Comments
 (0)