Skip to content

Commit

Permalink
Merge pull request #22 from DevCraftClub/build-r-1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gokujo committed May 28, 2024
2 parents 40451cd + 5cb582f commit 0618114
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 31 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: website

# build the documentation whenever there are new commits on main
on:
push:
branches:
- main
# Alternative: only build for tags.
# tags:
# - '*'

# security: restrict permissions for CI jobs.
permissions:
contents: read

jobs:
# Build the documentation and upload the static HTML files as an artifact.
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'

# ADJUST THIS: install all dependencies (including pdoc)
- run: pip install -e .
# ADJUST THIS: build your documentation into docs/.
# We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here.
- run: python docs/make.py

- uses: actions/upload-pages-artifact@v3
with:
path: docs/

# Deploy the artifact to GitHub pages.
# This is a separate job so that only actions/deploy-pages has the necessary permissions.
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ dmypy.json
cython_debug/
.idea
.idea/!/NotKinoPoiskAPI/Data/**/
NotKinoPoiskAPI/Data/**/
NotKinoPoiskAPI/Data/**/!/notkinopoiskapi.egg-info/
notkinopoiskapi.egg-info/
2 changes: 2 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python -m build
twine upload dist/*
26 changes: 18 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
[tool.poetry]
[project]
name = "notkinopoiskapi"
version = "1.0.0"
description = "Неофициальная библиотека для Kinopoisk API Unofficial"
authors = ["Maxim Harder <dev@devcraft.club>"]
license = "GPL-3.0-or-later"
authors = [
{ "name" = "Maxim Harder", "email" = "dev@devcraft.club"}
]
license = { file = "LICENSE" }
readme = "readme.md"
classifiers = [
"License :: OSI Approved :: GNUv3 License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.8"
dependencies = [
"requests",
"python-decouple"
]
keywords = ['api', 'kinopoisk', 'python']

[project.urls]
homepage = "https://github.com/DevCraftClub/NotKinoPoiskAPI"
repository = "https://github.com/DevCraftClub/NotKinoPoiskAPI"

[tool.poetry.dependencies]
python = "^3.8"
requests = "^2.31.0"
python-decouple = "^3.8"
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Неофициальная библиотека для Kinopoisk API Unofficial

Простая библиотека для взаимодействия с Kinopoisk API Unofficial. Полная документация для работы с библиотекой по этому
адресу:
адресу: [NotKinoPoiskAPI (GitHub)](https://devcraftclub.github.io/NotKinoPoiskAPI/NotKinoPoiskAPI/)

## Установка

Expand Down
42 changes: 21 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
from setuptools import setup

setup(
name="notkionpoiskapi",
version="1.0.0",
description="Неофициальная библиотека для Kinopoisk API Unofficial",
long_description=open("README.md", "r").read(),
long_description_content_type="text/markdown",
keywords="api kinopoisk python",
url="https://github.com/DevCraftClub/NotKinoPoiskAPI",
author="Maxim Harder",
author_email="dev@devcraft.club",
packages=["notkionpoiskapi"],
install_requires=[
"requests",
"python-decouple",
],
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
zip_safe=False,
name="notkionpoiskapi",
version="1.0.0",
description="Неофициальная библиотека для Kinopoisk API Unofficial",
long_description=open("readme.md", "r", encoding="utf8").read(),
long_description_content_type="text/markdown",
keywords="api kinopoisk python",
url="https://github.com/DevCraftClub/NotKinoPoiskAPI",
author="Maxim Harder",
author_email="dev@devcraft.club",
install_requires=[
"requests",
"python-decouple",
],
classifiers=[
"License :: OSI Approved :: GNUv3 License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
zip_safe=False,
)

0 comments on commit 0618114

Please sign in to comment.