File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Publish to PyPI
1+ name : Publish Python 🐍 distributions 📦 to PyPI
2+
23on :
34 push :
4- tags :
5- - v*.*.*
5+ branch :
6+ - release
67
78jobs :
8- publish :
9- runs-on : ubuntu-latest
9+ build-n-publish :
10+ name : Build and publish Python 🐍 distributions 📦 to PyPI
11+ runs-on : ubuntu-20.04
12+
1013 steps :
11- - uses : actions/checkout@v2
12- - name : Read python version
13- uses : juliangruber/read-file-action @v1
14+ - uses : actions/checkout@master
15+ - name : Set up Python 3.7
16+ uses : actions/setup-python @v1
1417 with :
15- path : ./.python-version
16- - uses : actions/setup-python@v2
18+ python-version : 3.7
19+ - name : Install pypa/build
20+ run : >-
21+ python -m
22+ pip install
23+ build
24+ --user
25+ - name : Build a binary wheel and a source tarball
26+ run : >-
27+ python -m
28+ build
29+ --sdist
30+ --wheel
31+ --outdir dist/
32+
33+ - name : Publish distribution 📦 to PyPI
34+ uses : pypa/gh-action-pypi-publish@master
1735 with :
18- python-version : ${{ steps.package.outputs.content }}
19- - name : Install Poetry
20- run : curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
21- - name : Add Poetry to path
22- run : echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
23- - name : Install venv
24- run : poetry install
25- - name : Run tests
26- run : poetry run pytest
27- - name : Publish package
28- run : poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_KEY }}
36+ password : ${{ secrets.PYPI_API_KEY }}
Original file line number Diff line number Diff line change 1- 3.7 .13
1+ 3.8 .13
Original file line number Diff line number Diff line change 1+ __version__ = '0.2.2'
Original file line number Diff line number Diff line change 1- [tool .poetry ]
2- name = " lgg"
3- version = " 0.2.2"
4- description = " A simple yet fancy logger for Python scripts"
5- authors = [" Ayoub Assis <assis.ayoub@gmail.com>" ]
6- license = " MIT License"
7- readme = " README.md"
8-
9- homepage = " https://github.com/blurry-mood/python-logger"
10- repository = " https://github.com/blurry-mood/python-logger"
11-
12- include = [
13- " LICENSE"
14- ]
15- keywords = [
16- " Python" , " Logger" , " Fancy Logger"
17- ]
18-
19- [tool .poetry .dependencies ]
20- python = " ^3.7"
21-
22- [tool .poetry .dev-dependencies ]
23- pytest = " ^7.1.2"
24- flake9 = " ^3.8.3"
25- pylint = " ^2.13.9"
26-
271[build-system ]
28- requires = [" poetry-core>=1.0.0 " ]
29- build-backend = " poetry.core.masonry.api "
2+ requires = [" setuptools " ]
3+ build-backend = " setuptools.build_meta "
Original file line number Diff line number Diff line change 1+ [metadata]
2+ name = lgg
3+ version = attr: lgg.version.__version__
4+ author = Ayoub Assis
5+ author_email = assis.ayoub@gmail.com
6+ url = https://github.com/the-beee/python-logger
7+ description = A simple yet fancy logger for Python scripts
8+ long_description = file: README.md
9+ long_description_content_type = text/markdown
10+ keywords = Python, Logger, Fancy Logger
11+ license = MIT License
12+ classifiers =
13+ License :: OSI Approved :: BSD License
14+ Programming Language :: Python :: 3
15+
16+ [options]
17+ packages = find:
18+ zip_safe = True
19+ include_package_data = True
20+
21+ [options.extras_require]
22+ dev =
23+ flake8 ==4.0.1
24+ pytest ==7.1.2
25+ flake9 ==3.8.3
26+ pylint ==2.13.9
27+
28+ [options.package_data]
29+ * = README.md
You can’t perform that action at this time.
0 commit comments