Skip to content

Commit 16013a3

Browse files
committed
chore: setup release process
1 parent b0579fa commit 16013a3

File tree

6 files changed

+20
-2
lines changed

6 files changed

+20
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ build
66
*.so
77
.eggs
88
*.egg-info
9+
dist
910

1011
# editor related
1112
.vscode

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
format:
22
yapf **/*.py -i
3+
4+
release:
5+
python3 setup.py sdist bdist_wheel
6+
twine upload --repository-url https://upload.pypi.org/legacy/ dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# py-sourcemap
2+
23
A tiny [source-map-mappings](https://github.com/fitzgen/source-map-mappings) bindings for python using [PyO3](https://github.com/PyO3/pyo3)

py_sourcemap/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from .py_sourcemap import SourcemapParser
22

3+
name = 'py_sourcemap'
4+
35
__all__ = ["SourcemapParser"]

requirement-dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
yapf==0.23.0
2+
twine==1.11.0
3+
bump==1.0.0

setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
from setuptools.command.install import install
33

44

5+
with open("README.md", "r") as fh:
6+
long_description = fh.read()
7+
8+
59
class PostInstallCommand(install):
610
"""Post-installation for installation mode."""
711

@@ -13,13 +17,16 @@ def run(self):
1317
install.run(self)
1418

1519

16-
install_requires = []
20+
install_requires = ['wheel']
1721
tests_require = install_requires + ['nose']
1822

1923
setup(
2024
name='py-sourcemap',
21-
version='0.1',
25+
version='0.1.9',
2226
packages=['py_sourcemap'],
27+
description='A tiny source-map-mappings bindings for python using PyO3',
28+
long_description=long_description,
29+
url='https://github.com/LeetCode-OpenSource/py-sourcemap',
2330
classifiers=[
2431
'Development Status :: 4 - Beta',
2532
'Environment :: Console',
@@ -30,6 +37,7 @@ def run(self):
3037
'Operating System :: POSIX',
3138
'Programming Language :: Python',
3239
'Programming Language :: Rust',
40+
'License :: OSI Approved :: MIT License',
3341
],
3442
install_requires=install_requires,
3543
tests_require=tests_require,

0 commit comments

Comments
 (0)