File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish to PyPI
2
+
3
+ on : push
4
+ jobs :
5
+ build-and-publish :
6
+ name : Build and publish to PyPI
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@master
10
+ - name : Install pypa/build
11
+ run : >-
12
+ python -m
13
+ pip install
14
+ build
15
+ --user
16
+ - name : Build a binary wheel and a source tarball
17
+ run : >-
18
+ python -m
19
+ build
20
+ --sdist
21
+ --wheel
22
+ --outdir dist/
23
+ .
24
+ - name : Publish distribution to PyPI
25
+ if : startsWith(github.ref, 'refs/tags')
26
+ uses : pypa/gh-action-pypi-publish@master
27
+ with :
28
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ __pycache__/
8
8
* .swo
9
9
10
10
keras_nlp.egg-info /
11
+ dist /
11
12
12
13
.coverage
13
14
.coverage. *
Original file line number Diff line number Diff line change 14
14
15
15
"""Setup script."""
16
16
17
+ import pathlib
18
+
17
19
from setuptools import find_packages
18
20
from setuptools import setup
19
21
22
+ HERE = pathlib .Path (__file__ ).parent
23
+ README = (HERE / "README.md" ).read_text ()
24
+
20
25
setup (
21
26
name = "keras-nlp" ,
22
27
description = (
23
28
"Industry-strength Natural Language Processing extensions for Keras."
24
29
),
30
+ long_description = README ,
31
+ long_description_content_type = "text/markdown" ,
25
32
version = "0.1.0" ,
26
33
url = "https://github.com/keras-team/keras-nlp" ,
27
34
author = "Keras team" ,
You can’t perform that action at this time.
0 commit comments