Skip to content

Commit a74bc8b

Browse files
authored
Merge pull request #2 from quantmind/ls-bump
fix readme
2 parents b33736e + 7720420 commit a74bc8b

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
python-version: [3.6, 3.7, 3.8, 3.9]
20+
python-version: ["3.8", "3.9", "3.10", "3.11"]
2121

2222
steps:
2323
- uses: actions/checkout@v2
@@ -27,8 +27,10 @@ jobs:
2727
python-version: ${{ matrix.python-version }}
2828
- name: Install dev dependencies
2929
run: make install
30+
- name: Lint
31+
run: make lint
3032
- name: test version
31-
run: make test-version
32-
- name: release to pypi
33-
if: matrix.python-version == '3.9'
34-
run: make release-pypi
33+
run: make version
34+
- name: publish
35+
if: ${{ matrix.python-version == '3.11' && github.event.head_commit.message == 'release' }}
36+
run: make publish

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ help:
44
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
55

66
install: ## install packages in virtualenv
7-
@pip install -r requirements-dev.txt
7+
@pip install -U pip poetry
8+
@poetry install
89

910
lint: ## run linters
1011
poetry run ./lint
1112

1213
version: ## display software version
1314
@python -c "import pyslink; print(pyslink.__version__)"
1415

15-
release-pypi: ## release to pypi and github tag
16-
python setup.py sdist
17-
twine upload dist/* --username lsbardel --password $(PYPI_PASSWORD)
16+
publish: ## release to pypi
17+
@poetry publish --build -u lsbardel -p $(PYPI_PASSWORD)

readme.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
pyslink
2-
========
1+
# pyslink
2+
3+
[![PyPI version](https://badge.fury.io/py/pyslink.svg)](https://badge.fury.io/py/pyslink)
4+
[![Python versions](https://img.shields.io/pypi/pyversions/pyslink.svg)](https://pypi.org/project/pyslink)
5+
[![release](https://github.com/quantmind/pyslink/actions/workflows/release.yml/badge.svg)](https://github.com/quantmind/pyslink/actions/workflows/release.yml)
6+
[![Downloads](https://img.shields.io/pypi/dd/pyslink.svg)](https://pypi.org/project/pyslink/)
37

4-
|pyversions| |status|
58

69
Soft link a file/directory with python site-packages directory.
710
Useful during development.
811

9-
Installation via pip::
10-
11-
pip install pyslink
12-
13-
Soft link a package::
14-
15-
pyslink path/to/main/module
16-
17-
18-
.. |pyversions| image:: https://img.shields.io/pypi/pyversions/pyslink.svg
19-
:target: https://pypi.python.org/pypi/pyslink
20-
.. |status| image:: https://img.shields.io/pypi/status/pyslink.svg
21-
:target: https://pypi.python.org/pypi/pyslink
12+
Installation via pip:
13+
```bash
14+
pip install pyslink
15+
```
16+
Soft link a package:
17+
```bash
18+
pyslink path/to/main/module
19+
```

0 commit comments

Comments
 (0)