crawler-user-agents 1.0.137 → 1.0.138

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,9 @@
1
1
  name: Upload Package to PyPi
2
+ # the authorization is handled via trusted published, see https://docs.pypi.org/trusted-publishers/creating-a-project-through-oidc/
2
3
  on:
4
+ push:
5
+ branches:
6
+ - 'testpypi'
3
7
  workflow_run:
4
8
  workflows: [CI validation]
5
9
  branches: [master]
@@ -8,15 +12,25 @@ on:
8
12
 
9
13
  permissions:
10
14
  contents: read
11
-
15
+ #
12
16
  jobs:
13
17
  deploy:
14
18
  runs-on: ubuntu-latest
19
+ permissions:
20
+ id-token: write
15
21
  steps:
16
22
  - uses: actions/checkout@v4
23
+ - name: Version bump
24
+ uses: monperrus/pyproject-bump-pypi@main
25
+ with:
26
+ file_to_bump: "./pyproject.toml"
27
+ bump_type: "minor"
28
+
17
29
  - name: Set up Python
18
30
  uses: actions/setup-python@v3
19
31
  with:
20
32
  python-version: '3.x'
33
+ - run: pip install build
34
+ - run: python -m build
21
35
  - name: Publish package
22
- uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
36
+ uses: pypa/gh-action-pypi-publish@release/v1.8
package/MANIFEST.in ADDED
@@ -0,0 +1 @@
1
+ include *.json
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This repository contains a list of of HTTP user-agents used by robots, crawlers, and spiders as in single JSON file.
4
4
 
5
+ * NPM package: <https://www.npmjs.com/package/crawler-user-agents>
6
+ * Go package: <https://pkg.go.dev/github.com/monperrus/crawler-user-agents>
7
+ * PyPi package: <https://pypi.org/project/crawler-user-agents/>
8
+
5
9
  ## Install
6
10
 
7
11
  ### Direct download
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crawler-user-agents",
3
- "version": "1.0.137",
3
+ "version": "1.0.138",
4
4
  "main": "crawler-user-agents.json",
5
5
  "typings": "./index.d.ts",
6
6
  "author": "Martin Monperrus <martin.monperrus@gnieh.org>",
package/pyproject.toml ADDED
@@ -0,0 +1,13 @@
1
+ [project]
2
+ name = "crawler-user-agents"
3
+ version = "0.1"
4
+
5
+ authors = [
6
+ { name="Martin Monperrus", email="martin.monperrus@gnieh.org" },
7
+ ]
8
+
9
+ readme = "README.md"
10
+
11
+ [tool.setuptools.packages.find]
12
+ where = [ "." ]
13
+