Skip to content

Commit

Permalink
Merge pull request #23 from hemantapkh/dependency_loosen
Browse files Browse the repository at this point in the history
v1.25.6: Use loose dependency
  • Loading branch information
hemantapkh authored Jul 15, 2024
2 parents 3b044a2 + 0e73358 commit f2ebcd5
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 49 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish Package

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:

- name: Clone the repo
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: |
pip install build
- name: Build distribution
run: python -m build

- name: Publish the package
uses: pypa/[email protected]
31 changes: 0 additions & 31 deletions .github/workflows/python-publish.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
env/
py1337x/__pycache__/
dist/
1337x.egg-info/
1337x.egg-info/
poetry.lock
35 changes: 35 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[tool.poetry]
name = "1337x"
version = "1.2.6"
description = "Unofficial API of 1337x.to"
authors = ["Hemanta Pokharel <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/hemantapkh/1337x"
documentation = "https://github.com/hemantapkh/1337x/blob/main/README.md"
urls = { "Issue tracker" = "https://github.com/hemantapkh/1337x/issues" }
keywords = ["1337x", "torrents"]
packages = [
{ include = "py1337x" }
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Utilities"
]


[tool.poetry.dependencies]
python = "^3.8"
requests = "^2.32.3"
beautifulsoup4 = "^4.12.3"
requests-cache = "^1.2.1"
cloudscraper = "^1.2.71"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
17 changes: 0 additions & 17 deletions requirements.txt

This file was deleted.

0 comments on commit f2ebcd5

Please sign in to comment.