kopia lustrzana https://github.com/bellingcat/auto-archiver
Updated workflow for python-publish.yaml to use poetry (untested), and cleanup of pipenv files.
rodzic
6da837b374
commit
50e8c93477
|
|
@ -1,11 +1,4 @@
|
||||||
# This workflow will upload a Python Package using Twine when a release is created
|
# This workflow uploads a Python Package to PyPI using Poetry when a release is created
|
||||||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
|
|
||||||
|
|
||||||
# This workflow uses actions that are not certified by GitHub.
|
|
||||||
# They are provided by a third-party and are governed by
|
|
||||||
# separate terms of service, privacy policy, and support
|
|
||||||
# documentation.
|
|
||||||
|
|
||||||
name: Pypi
|
name: Pypi
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|
@ -28,17 +21,20 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
|
|
||||||
|
- name: Install Poetry
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
curl -sSL https://install.python-poetry.org | python3 -
|
||||||
|
echo 'export PATH="$HOME/.local/bin:$PATH"' >> $GITHUB_ENV
|
||||||
|
poetry --version
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade --upgrade-strategy=eager pip setuptools wheel twine pipenv
|
poetry install --no-root
|
||||||
python -m pip install -e . --upgrade
|
|
||||||
python -m pipenv install --dev --python 3.10
|
|
||||||
env:
|
|
||||||
PIPENV_DEFAULT_PYTHON_VERSION: "3.10"
|
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build the package
|
||||||
run: |
|
run: |
|
||||||
python -m pipenv run python setup.py sdist bdist_wheel
|
poetry build
|
||||||
|
|
||||||
- name: Publish a Python distribution to PyPI
|
- name: Publish a Python distribution to PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
|
@ -47,4 +43,4 @@ jobs:
|
||||||
verbose: true
|
verbose: true
|
||||||
skip_existing: true
|
skip_existing: true
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
packages_dir: dist/
|
packages_dir: dist/
|
||||||
|
|
|
||||||
50
Pipfile
50
Pipfile
|
|
@ -1,50 +0,0 @@
|
||||||
[[source]]
|
|
||||||
url = "https://pypi.org/simple"
|
|
||||||
verify_ssl = true
|
|
||||||
name = "pypi"
|
|
||||||
|
|
||||||
[packages]
|
|
||||||
gspread = "*"
|
|
||||||
boto3 = "*"
|
|
||||||
argparse = "*"
|
|
||||||
beautifulsoup4 = "*"
|
|
||||||
tiktok-downloader = "*"
|
|
||||||
bs4 = "*"
|
|
||||||
loguru = "*"
|
|
||||||
ffmpeg-python = "*"
|
|
||||||
selenium = "*"
|
|
||||||
snscrape = "*"
|
|
||||||
telethon = "*"
|
|
||||||
google-api-python-client = "*"
|
|
||||||
google-auth-httplib2 = "*"
|
|
||||||
google-auth-oauthlib = "*"
|
|
||||||
oauth2client = "*"
|
|
||||||
pdqhash = "*"
|
|
||||||
pillow = "*"
|
|
||||||
python-slugify = "*"
|
|
||||||
pyyaml = "*"
|
|
||||||
dateparser = "*"
|
|
||||||
python-twitter-v2 = "*"
|
|
||||||
instaloader = "*"
|
|
||||||
tqdm = "*"
|
|
||||||
jinja2 = "*"
|
|
||||||
cryptography = "*"
|
|
||||||
dataclasses-json = "*"
|
|
||||||
yt-dlp = "2024.09.27"
|
|
||||||
vk-url-scraper = "*"
|
|
||||||
requests = {extras = ["socks"], version = "*"}
|
|
||||||
numpy = "1.26.4"
|
|
||||||
warcio = "*"
|
|
||||||
jsonlines = "*"
|
|
||||||
pysubs2 = "*"
|
|
||||||
minify-html = "*"
|
|
||||||
retrying = "*"
|
|
||||||
tsp-client = "*"
|
|
||||||
certvalidator = "*"
|
|
||||||
|
|
||||||
[dev-packages]
|
|
||||||
autopep8 = "*"
|
|
||||||
setuptools-pipfile = "*"
|
|
||||||
|
|
||||||
[requires]
|
|
||||||
python_version = "3.10"
|
|
||||||
Plik diff jest za duży
Load Diff
53
setup.cfg
53
setup.cfg
|
|
@ -1,53 +0,0 @@
|
||||||
[metadata]
|
|
||||||
name = auto_archiver
|
|
||||||
version = attr: auto_archiver.version.__version__
|
|
||||||
author = Bellingcat
|
|
||||||
author_email = tech@bellingcat.com
|
|
||||||
description = Easily archive online media content
|
|
||||||
long_description = file: README.md
|
|
||||||
long_description_content_type = text/markdown
|
|
||||||
keywords = archive, oosi, osint, scraping
|
|
||||||
license = MIT
|
|
||||||
classifiers =
|
|
||||||
Intended Audience :: Developers
|
|
||||||
Intended Audience :: Science/Research
|
|
||||||
License :: OSI Approved :: MIT License
|
|
||||||
Programming Language :: Python :: 3
|
|
||||||
project_urls =
|
|
||||||
Source Code = https://github.com/bellingcat/auto-archiver
|
|
||||||
Bug Tracker = https://github.com/bellingcat/auto-archiver/issues
|
|
||||||
Bellingcat = https://www.bellingcat.com
|
|
||||||
platforms = any
|
|
||||||
|
|
||||||
[options]
|
|
||||||
setup_requires =
|
|
||||||
setuptools-pipfile
|
|
||||||
zip_safe = False
|
|
||||||
package_dir=
|
|
||||||
=src
|
|
||||||
packages=find:
|
|
||||||
find_packages=true
|
|
||||||
python_requires = >=3.10
|
|
||||||
|
|
||||||
[options.package_data]
|
|
||||||
* = *.html
|
|
||||||
|
|
||||||
[options.entry_points]
|
|
||||||
console_scripts =
|
|
||||||
auto-archiver = auto_archiver.__main__:main
|
|
||||||
|
|
||||||
# [options.extras_require]
|
|
||||||
# pdf = ReportLab>=1.2; RXP
|
|
||||||
# rest = docutils>=0.3; pack ==1.1, ==1.3
|
|
||||||
|
|
||||||
[options.packages.find]
|
|
||||||
where=src
|
|
||||||
# include=auto_archiver*
|
|
||||||
# exclude =
|
|
||||||
# examples*
|
|
||||||
# .eggs*
|
|
||||||
# build*
|
|
||||||
# secrets*
|
|
||||||
# tmp*
|
|
||||||
# docs*
|
|
||||||
# src.tests*
|
|
||||||
4
setup.py
4
setup.py
|
|
@ -1,4 +0,0 @@
|
||||||
from setuptools import setup
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
setup()
|
|
||||||
Ładowanie…
Reference in New Issue