Skip to content

Commit b1842a4

Browse files
committed
Merge branch 'windows-deploy'
2 parents 56e8a91 + f88115c commit b1842a4

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,29 @@
22

33
[![CircleCI](https://circleci.com/gh/LeetCode-OpenSource/py-sourcemap.svg?style=svg)](https://circleci.com/gh/LeetCode-OpenSource/py-sourcemap)
44
[![Build Status](https://travis-ci.com/LeetCode-OpenSource/py-sourcemap.svg?branch=master)](https://travis-ci.com/LeetCode-OpenSource/py-sourcemap)
5+
[![Build status](https://ci.appveyor.com/api/projects/status/ubn6tpgyryapy319/branch/master?svg=true)](https://ci.appveyor.com/project/Brooooooklyn/py-sourcemap/branch/master)
6+
57

68
A tiny [source-map-mappings](https://github.com/fitzgen/source-map-mappings) bindings for python using [PyO3](https://github.com/PyO3/pyo3)
9+
10+
# Platform Support
11+
12+
### Operating Systems
13+
14+
| Linux | macOS | Windows x32 | Windows x64 |
15+
| ------ | ----- | ----------- | ----------- |
16+
|||||
17+
18+
### Python
19+
20+
| Python3.5 | Python3.6 | Python3.7 |
21+
| --------- | --------- | --------- |
22+
||||
23+
24+
# Usage
25+
```python
26+
from py_sourcemap import SourcemapParser
27+
28+
sourcemap_parser = SourcemapParser("./tests/index.js.map")
29+
sourcemap_parser.original_location_for(0, 195302) # (original_line, original_column, source_file_name, function_name_in_source)
30+
```

appveyor.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ install:
4646
- "%PYTHON%\\python.exe -m pip install wheel setuptools-rust"
4747
- "%PYTHON%\\python.exe -m pip install -r requirement-dev.txt"
4848

49+
cache:
50+
- target
51+
4952
build_script:
5053
- "%PYTHON%\\python.exe compile.py build"
5154
- ls build\lib\py_sourcemap
@@ -67,3 +70,15 @@ after_test:
6770
# 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct
6871
# interpreter
6972
- "ls build\\lib\\py_sourcemap"
73+
74+
deploy:
75+
provider: GitHub
76+
description: $(APPVEYOR_REPO_TAG_NAME)
77+
auth_token:
78+
secure: WOwBw2Tzivslwkbev6rJfhZfUbcfRvENwqQZfRZBL5R6L+Cb0y2tv5lyobrZiWPq
79+
artifact: ./build/lib/py_sourcemap/*.pyd
80+
draft: false
81+
prerelease: false
82+
on:
83+
branch: master # release from master branch only
84+
appveyor_repo_tag: true # deploy on tag push only

0 commit comments

Comments
 (0)