File tree 3 files changed +28
-0
lines changed 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1
1
language : minimal
2
2
3
+ before_install :
4
+ - make env
5
+ - source env/conda/bin/activate sphinx-verilog-domain
6
+
3
7
stages :
4
8
- name :
9
+ - Build
5
10
- Deploy
6
11
7
12
jobs :
13
+ - stage : Build
14
+ name : " Build"
15
+ script :
16
+ - make build
17
+
8
18
- stage : Deploy
9
19
name : " PyPI"
10
20
before_deploy :
Original file line number Diff line number Diff line change @@ -18,3 +18,18 @@ REQUIREMENTS_FILE := requirements.txt
18
18
ENVIRONMENT_FILE := environment.yml
19
19
20
20
include third_party/make-env/conda.mk
21
+
22
+ # Build the package locally
23
+
24
+ build : $(CONDA_ENV_PYTHON )
25
+ $(IN_CONDA_ENV ) python setup.py sdist bdist_wheel && twine check dist/*
26
+
27
+ build-clean :
28
+ rm -rf env/downloads/conda-pkgs
29
+ rm -rf build dist * .egg-info
30
+ find -name * .pyc -delete
31
+ find -name __pycache__ -delete
32
+
33
+ .PHONY : build build-clean
34
+
35
+ clean :: build-clean
Original file line number Diff line number Diff line change 1
1
sphinx
2
2
lark-parser
3
+
4
+ # To validate package building
5
+ twine
You can’t perform that action at this time.
0 commit comments